|
undergod Wanderer
Joined: 27 Jun 2001 Posts: 82
|
Posted: Sat Jan 19, 2002 3:53 am
Mussed up alarm trigger |
Anyone have any idea why this won't work?
#trigger {You start resting} {#alarm {+300} {wake}}
Whenever it fires, it makes a new trigger like:
#trigger {+300} {wake} |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Jan 19, 2002 4:28 am |
That actually is correct. Alarms are a special type of trigger. If you select the options tab for it you see Alarm listed as its type.
|
|
|
|
undergod Wanderer
Joined: 27 Jun 2001 Posts: 82
|
Posted: Sat Jan 19, 2002 4:29 am |
Will the {+300} trigger disappear after it fires once?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Jan 19, 2002 4:56 am |
quote:
Will the {+300} trigger disappear after it fires once?
The problem you're having involves the curly braces around the +300. They're not needed in an #alarm trigger (though I'm not sure if they're harmless or not). If you have a complex expression, you can use the parentheses or use a user-defined function.
EDIT: #TRIGGER triggers don't get deleted (if I recall correctly, temporary triggers use the #TEMP command)
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|