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


Joined: 21 Dec 2001
Posts: 7
Location: USA

PostPosted: Sat Dec 22, 2001 9:20 am   

Flags and movement triggers
 
In the bot that I'm building, I was wondering how I would go about flagging a room for a trigger. Say something like: I enter the store then sell an item. When the item is sold in that room, I'd like to #walk to another room and heal. After the healing flag is set, I'd like to #walk to another room and attack a mob. Then if I'm injured, another flag goes off and I have to #walk to the healing room and heal again.
Reply with quote
PrestoPimp
Apprentice


Joined: 18 Sep 2001
Posts: 175
Location: USA

PostPosted: Sat Dec 22, 2001 9:33 am   
 
#TR {Room Name to sell in} {sell @itemtosell;*dirs to healing room*}

Two options for healing room.. you can wait for a period of time.. 1 secondx 1000 so it would be a trigger like:

#TR {Healing Room name} {#wait *number of seconds*000;*dirs to room with mob in it*}
Or you could set up a prompt trigger to if you are at maxhealth then u go to the mob room.. whicher u choose. I would suggest that so when you get done killing the mob, you put a trigger in like:
#TR {Mob Name is DEAD!!} {#IF (@currenthp < @maxhp) {dirs to heal room}

and so on for the prompt.. you get the ideal.. :)

For tomarrow is another day, and other days come but 6 times a week.
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