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
albo
Apprentice


Joined: 27 Mar 2008
Posts: 106

PostPosted: Sun Sep 25, 2011 6:52 am   

I'm having problems to get this #alarm throw out this #if
 
This little trigger fires after you enter a room and sends you on the path which i've stored in the string list variables there.

Once it gets to the end of the line, i'd like for it to simply refill the variable @mobnow with the variable @mobpath and continue on grooving.

Code:
<trigger priority="10270" id="1027">
  <pattern>Exits:</pattern>
  <value>#ALARM "mobrun" +3 {#if (%numitems( @mobnow)="0") {
    mobnow=@mobpath
    #exec %pop( mobnow)
    } {#exec %pop( mobnow)}} moblook
</value>
</trigger>



I want to say that has worked before.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Mon Sep 26, 2011 3:25 pm   
 
Try taking 0 out of quotes.
Reply with quote
albo
Apprentice


Joined: 27 Mar 2008
Posts: 106

PostPosted: Mon Sep 26, 2011 11:57 pm   
 
Ok, I took the quotes off the 0 there and that worked for me once.

I am kinda busy tonight so I may not get to test it extensively.

Thanks Daern!!
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