|
Simuplayer Newbie
Joined: 23 Jan 2002 Posts: 4 Location: USA
|
Posted: Tue Jan 29, 2002 6:13 am
New to this, a stupid question. |
I know this isnt a bright question, but I am completely new to zMUD.
Im looking to write a spell casting script.
prep sw 5
pause 5 seconds
cast
What is the command to pause?
Thanks for any help,
-JD |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Jan 29, 2002 6:48 am |
quote:
I know this isnt a bright question, but I am completely new to zMUD.
Im looking to write a spell casting script.
prep sw 5
pause 5 seconds
cast
What is the command to pause?
Thanks for any help,
-JD
The command you want is #ALARM, which is a type of trigger. Here are some examples:
#ALARM +5 {prep sw 5} \this alarm will delete itself after firing
#ALARM -5 {prep sw 5} \this alarm will not delete, and I believe will fire once every minute on the :05 second mark
#ALARM *5 {prep sw 5} \this alarm will not delete, and will fire every 5 seconds beginning with the next second ending with a 5 or 0
#ALARM -{0|2|4|6|7|9} {prep sw 5} \don't use this trigger. This alarm will not delete and will fire at the top of each minute (x:00), as well at the :02, :04, :06:, :07, and :09 marks
You can also use variables in place of the timer durations. Aside from any errors to be corrected later, that's the gist of #ALARM.
li'l shmoe of Dragon's Gate MUD |
|
|
|
itsmarty Novice
Joined: 29 Jan 2002 Posts: 37 Location: USA
|
Posted: Wed Feb 06, 2002 6:30 am |
Do you know how I'd use an alarm within a trigger? I have a working autoroller but I'd like it to pause 3 seconds between firing.
Right now it rolls, echoes the total of all stats, and if it doesn't match my desired total it rolls again. I'd like the pause in between totalling and rolling again.
Thanks for any help.
#TRIGGER {pattern}
{
#MATH amount %1+%2+%3+%4+%5+%6+%7+%8
#echo @amount
#if @amount<X {reroll}
}
Martin
DR:TF |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Wed Feb 06, 2002 6:47 am |
I'm assuming you want the reroll to
be delayed by 3 seconds:
#TRIGGER {pattern}
{
#MATH amount %1+%2+%3+%4+%5+%6+%7+%8
#echo @amount
#if @amount<X {#ALARM +3 {reroll}}
}
TonDiening
Uses 6.16 |
|
|
|
itsmarty Novice
Joined: 29 Jan 2002 Posts: 37 Location: USA
|
Posted: Wed Feb 06, 2002 2:17 pm |
That looks great, thanks. I'll try it this evening.
Martin
DR:TF |
|
|
|
|
|