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
bart796
Beginner


Joined: 28 Sep 2010
Posts: 13

PostPosted: Tue Sep 28, 2010 7:14 am   

Help with setting a trigger in zmud
 
I am trying to set a trigger to go off every 8 minutes. I just want it to send a set of simple commands to the mud nothing fancy basically i want it to tell my guy to go somewhere and come back every 8 minutes and repeat till i turn the trigger off but i cant figure out how to setup timers...essentially i need a 100% noob guide lol
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Tue Sep 28, 2010 7:46 am   
 
well the best method for timers is #ALARM
The time length can be expressed in seconds, minutes, hours or more... you said every 8 minutes... that works out to -8:00
To make it easy to turn off we should give it a name "everyEight"

#ALARM "everyEight" -8:00 {stuff you want to do}

Then you want to make an easy method of toggling it on and off, I would suggest an #ALIAS
Then you need to test weather the setting is even turned on, since we named it this is easy to do with and #IF the %trigger function.
And to turn the setting on and off with #T+/-

#ALIAS ate {#IF (%trigger(everyEight)) {#T- everyEight} {#t+ everyEight}}
_________________
Discord: Shalimarwildcat
Reply with quote
bart796
Beginner


Joined: 28 Sep 2010
Posts: 13

PostPosted: Tue Sep 28, 2010 10:52 am   
 
ok my question is where do i use this alarm command...i looked for how to use it on the website and i found how to make use of it but not where to put it...thanks for the help so far but a bit more explanation is needed before im on the same page as you haha
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Tue Sep 28, 2010 8:00 pm   
 
the way i set it up, you should imput it on the command line
_________________
Discord: Shalimarwildcat
Reply with quote
bart796
Beginner


Joined: 28 Sep 2010
Posts: 13

PostPosted: Tue Sep 28, 2010 8:07 pm   
 
so command line is where i type to send commands to the mud so i just essentially copy and paste that command right there add what i want my char to do and bam every 8 minutes it shuld do that? what im trying to do ill make easier basically all i need this alarm to do is send the command "get haz" which will trigger my trigger which has about 250 commands in it. Tedious tasking of walking from here to there killing this guy looting and recall and i just dont want to have to intitiate that every 8 minutes heh

EDIT:: ok lol ive edited this post 6 times now i just realized how that command works and realized it is a trigger it made a trigger with the pattern of -8:00 so i can just add all the commands i want thanks a lot man seriously this is a major time saver!!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Tue Sep 28, 2010 8:44 pm   
 
no prob
_________________
Discord: Shalimarwildcat
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