|
whose_pants Newbie
Joined: 18 Jan 2003 Posts: 1 Location: USA
|
Posted: Sat Jan 18, 2003 1:06 am
Help! Please! |
Hey! I'm kinda slow so if someone wouldn't mind helping me, I'd really appreciate it. I wanna figure out how to make it send random commands in. Umm. I want a 5 second delay between each entry or whatever.
The commands I want randomly entered are:
Hold looser
Hold tighter
Hold lower
I want a 5-6 second delay. Yeah, I have NO idea how to do it. I dunno if it's even possible but I figured someone would be nice enough to help me. If you don't mind. *smile* Could you explain it to me as you would to a 3 year old? *grin* I'm not too smart. Thanks! *hugs* |
|
|
|
Apollyon Wanderer
Joined: 02 Oct 2001 Posts: 76 Location: USA
|
Posted: Sat Jan 18, 2003 5:10 am |
just use your own commands to trigger off the different things you want to happen
for instance when you hold tighter it probably says something like:
You tighten your grip on your weapon.
just make a trigger like
#trigger {^You tighten your grip on your weapon} {#wait 5000; hold lower}
#trigger {^You lower the grip on your weapon.} {#wait 5000; hold looser}
#trigger {^You losen the grip you have on your weapon.} {#wait 5000; hold tighter}
that would create an infinite loop with a 5000 ms, or 5 second wait inbetween all commands. like i said those are all hypothetical outputs from your mud, and i put the little 6 thingy in there so if someone spams you with tells of:
DumbAssMudder tells you, 'You losen the grip you have on your weapon.'
it won't set off your triggers
p.s. i bet there is a #loop command, but that would probably be internally checked by zmud and warned against as an infinite loop |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Jan 18, 2003 2:58 pm |
Since #WAIT is not recommended, I would use instead an alarm:
#ALARM {*5} {#CASE %random {Hold looser} {Hold tighter} {Hold lower}}
When this command is entered into the command line it creates an alarm (a special trigger that uses times as patterns). This alarm is set to fire every 5 seconds (*5), and execute a random command found in the #CASE statement.
Kjata |
|
|
|
|
|