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
nawat
Newbie


Joined: 25 Sep 2002
Posts: 2

PostPosted: Wed Sep 25, 2002 5:10 pm   

problem with trigger and loop
 
i want to make a trigger that will automatically kill the npcs
here are the pattern
[ 3 ] druids concentrate and talk to the stone walls.
i also want to it to make a loop so that i will kill all those three
druids i've try
#action {[ %d ] druids concentrate and talk to the stone walls.} {#loo %1 {kill druid}}
but it doesn't work
anyone can help me?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Sep 25, 2002 6:40 pm   
 
[ and ] are special characters, so you have to precede them with a ~ to tell zMUD to treat them like ordinary characters. Also, you need to put parentheses around the parts of the trigger phrase you want to use as numbered parameters.

#action {~[ (%d) ~] druids concentrate and talk to the stone walls.} {#loo %1 {kill druid}}


LightBulb
Senior Member
Reply with quote
nawat
Newbie


Joined: 25 Sep 2002
Posts: 2

PostPosted: Thu Sep 26, 2002 11:10 am   
 
thank you very much i really appreciated it
and another thing i want to know is how to
walk automically and then if u find a npcs
i will kill them automically too.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Sep 26, 2002 5:07 pm   
 
See almost any of the many topics on "bots". Use the Search link at the top of the page.

LightBulb
Senior Member
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