LuckyStephy Newbie
Joined: 15 Jul 2011 Posts: 2
|
Posted: Fri Jul 15, 2011 12:53 pm
Caravan Runner, script not working |
Okay, so I play the mud Imperian and I've been needing a Caravan Runner script for awhile. Well...I found one but I've ran into a problem. I can set the path for the caravan, but when I tell the caravan to go, no direction comes up. As you can tell, this is in XML format.
Any help would be greatly appreciated.
Code: |
<class name="Caravans" id="50">
<alias name="cargo" id="51">
<value>lead caravan %pop(path)</value>
</alias>
<alias name="cargoto" id="52">
<value>#t+ caravan_start;#if (%1) {path find %1;#var @caravan_target %1} {map path @caravan_target}</value>
</alias>
<var name="path" type="StringList" id="53"/>
<trigger priority="50" id="54">
<pattern>^You lead a caravan %w.</pattern>
<value>#if (%item( @path, 1)) {#ec %ansi( 7)Path remaining: %expandlist( @path, ", ").;lead caravan %pop(path)} {#ec %ansi( 7)Path completed.}</value>
</trigger>
<trigger name="caravan_start" priority="70" enabled="false" id="55">
<pattern>^Path: (*)$</pattern>
<value>#VAR path %replace(%1, ", ", "|")
#t- caravan_start</value>
</trigger>
<trigger priority="4680" id="56">
<pattern>The hairs on your neck tingle from an unknown presence.</pattern>
<value>caravanoff</value>
</trigger>
<alias name="caravanoff" id="57">
<value>#var path {}</value>
</alias>
</class>
|
|
|