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
Jaiven
Wanderer


Joined: 03 Oct 2007
Posts: 66

PostPosted: Sat Jun 23, 2012 12:21 am   

Trigger for missing mobs in a room
 
TRIGGER: They aren't here.
#if (@AutoRunner=1) {
#var Mob_Array %delitem( @target, @Mob_Array)
#add Total_Mobs -1
#if (@Total_Mobs=0) {NoMobs}
#if (@Total_Mobs>0) {YesMobs}
}

I can't figure out why this one isn't working. Any help would be appreciated (this time I'm sure I have all of it in there lol)
Reply with quote
Jaiven
Wanderer


Joined: 03 Oct 2007
Posts: 66

PostPosted: Sat Jun 23, 2012 12:22 am   
 
oh it is giving this error when the trigger goes off
ERROR: Trigger "They aren't here." fired but did not compile
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jun 23, 2012 1:12 am   
 
no idea, so I'll just guess that it's a formatting issue. As an aside, you can get rid of one of those #if commands, with NoMobs being called in the false block of the second #if.
_________________
EDIT: I didn't like my old signature
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