![](templates/Classic/images/spacer.gif) |
Jaiven Wanderer
Joined: 03 Oct 2007 Posts: 66
|
Posted: 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) |
|
|
![](templates/Classic/images/spacer.gif) |
Jaiven Wanderer
Joined: 03 Oct 2007 Posts: 66
|
Posted: 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 |
|
|
![](templates/Classic/images/spacer.gif) |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
![](templates/Classic/images/spacer.gif) |
|
|