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


Joined: 26 Aug 2006
Posts: 1

PostPosted: Sat Aug 26, 2006 11:00 pm   

trigger question
 
Hello i really new to this and im wondering how i can make a trigger do a command in zmud and not the mud? Say if i lose my weapon on the ground, i can make a trigger that picks that up. But how can i make a trigger to control that trigger, so that i can for instance type, nopickup to disable that first trigger and i wont pick up my weapon if i lose it?

Triggerhappy
Reply with quote
Qiz
Novice


Joined: 14 Aug 2006
Posts: 34
Location: Sweden

PostPosted: Sat Aug 26, 2006 11:07 pm   
 
You don't make a trigger to control your trigger, you change the value of a variable and check it's status in the trigger.

1. add a variable, for example: #VAR pickup 1
2. just create your pickup trigger normally
3. at the beginning of the trigger (execution, not pattern) insert (without the double quotes) "#IF (pickup) {" which is followed by what was previously in the trigger execution part)
4. add a '}' (without the single quotes) to the end of the trigger execution part.
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