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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Dantaar
Newbie


Joined: 29 May 2004
Posts: 2
Location: USA

PostPosted: Wed Jun 30, 2004 10:31 am   

Trying to figure out a trigger
 
I'm trying to setup a trigger for an area that is 10 rooms long, north and south. You start at the southern most point, then you go north 9 times. What I'm trying to do is create a trigger that has me attack a mob in the first room, keep using a command(an attack called berserk), then, when it is dead, go to the next room(north) and kill that mob, and then do the same thing in the next room, until it reaches room 10, and then it goes back south.

Anybody know how to do this?
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Wed Jun 30, 2004 11:49 am   
 
sure, but there are things we first need to know. How often to use the berserk command, what text you receive when the mob dies, what command you want to use to attack.
In general, it would work like this:

#alias AreaClear {#var Roomcount 0;n}
#var Rooms {n;kill <mobname>|n;kill <mobname>|n;kill <mobname>|n;kill <mobname>|n;kill <mobname>|n;kill <mobname>|n;kill <mobname>|n;kill <mobname>|n;kill <mobname>|.n10s}
#trigger {You hear * death cry.} {#add Roomcount 1;#exec %item(@Rooms,@Roomcount);berserk}
#trigger {You berserk and attack} {berserk}
Reply with quote
Dantaar
Newbie


Joined: 29 May 2004
Posts: 2
Location: USA

PostPosted: Wed Jun 30, 2004 12:36 pm   
 
The command I'm using to kill the mobs is called berserk, and you don't have to designate a target.

The Amazing Amazon is DEAD!!


above is just an example of the very first mob dieing, the rest of the mobs have different names but the same death message

It's more or less random how many berserks it'll take to kill one mob, because the damage fluxuated like a mad man.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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