|
sepe Novice
Joined: 09 Feb 2002 Posts: 39 Location: USA
|
Posted: Tue Mar 12, 2002 4:45 am
A wait / delay in an alias and trigger |
first I assume the command would be the same in both so I'll go from there.
I got an alias that I need a 1.5 sec delay and I've tried both the #alarm and #cond commands with no success. It seems the command is just ignored.
here is my script
slice meat
cook meat
#COND {} {eat meat} {Wait|Param=2000}
examine corpse
What I want is the slice and cook meat to happen instantly, a 2 second delay then the eat meat then examine corpse commands. What I get instead is the slice cook and examine commands instantly, and nothing else.
I also tried
#ALARM +0.5 {eat meat}
instead of the #cond command, but got same results. It's gotta be something VERY simple I'm doing wrong, help please.
Dazed glazed and having fun |
|
|
|
Haloway13 Beginner
Joined: 10 Mar 2002 Posts: 12 Location: USA
|
Posted: Tue Mar 12, 2002 6:21 am |
Try this:
#alias feed {slice meat;cook meat;#wa 1500;eat meat}
Tim |
|
|
|
sepe Novice
Joined: 09 Feb 2002 Posts: 39 Location: USA
|
Posted: Tue Mar 12, 2002 6:23 am |
Ahh but the #WA command causes all aliases and triggers and such to be delayed too, not just that one? Don't it?
Dazed glazed and having fun |
|
|
|
Haloway13 Beginner
Joined: 10 Mar 2002 Posts: 12 Location: USA
|
Posted: Tue Mar 12, 2002 8:08 am |
Hmmm. Is there a message that is displayed once you start to cook the meat? If so you could do a:
#trigger {Your meat starts cooking.} {#wa 1500;eat meat...}
Does that make sense?
Tim |
|
|
|
bgunther Novice
Joined: 20 Dec 2001 Posts: 39 Location: USA
|
Posted: Tue Mar 12, 2002 12:01 pm |
Hmm... does it have to be 1.5 seconds? Will 2 seconds do? Alarm works with whole seconds... doesn't allow for tenths of seconds.
Assuming 2 seconds will do:
#alias eatmeat {slice meat;cook meat;#alarm +2 {eat meat;examine corpse}}
Thats designed to be entered from the command line, you can just cut and paste it... change the alias name to whatever you want. If you type it in, those are curly braces {}, NOT parentheses ()
Bob, aka Kayd on SWMud and a few others. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Tue Mar 12, 2002 1:32 pm |
If you are not using the beta version, then you can't use trigger states (#COND) or floating point values for the alarm pattern. If you are using the beta version, you can use the floating point values for an alarm pattern, but you still can't do it with trigger states since they are for triggers, not for an alias. So, your solution would involve using alarms and it depends on if you have the beta version or not:
Version 6.16:
#ALIAS feed {slice meat;cook meat;#ALARM {+2} {eat meat;examine corpse}}
Version 6.20+:
#ALIAS feed {slice meat;cook meat;#ALARM {+1.5} {eat meat;examine corpse}}
I have tested both and they seem to work fine.
Kjata |
|
|
|
sepe Novice
Joined: 09 Feb 2002 Posts: 39 Location: USA
|
Posted: Wed Mar 13, 2002 12:27 am |
OK Now I guess I'm just entering it wrong, I cut and pasted what you wrote but no go, BTW I'm using ver 6.16
When I goto Aliases it looks like this...sorry I never use the command line to create aliases triggers or anything.
slice meat
cook meat
#ALARM {+2} {
eat meat
examine corpse
}
Dazed glazed and having fun |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Mar 13, 2002 1:02 am |
Yes, that's correct. So, how is it not working?
Kjata |
|
|
|
|
|