Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
LuckyStephy
Newbie


Joined: 15 Jul 2011
Posts: 2

PostPosted: 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>
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net