|
cstegmann Beginner
Joined: 30 Sep 2004 Posts: 14
|
Posted: Tue Jan 18, 2005 6:24 pm
Conditional Within 1 line trigger |
Hi there, i have this trigger here. (if any of you play achaea you'll know what this is).
#TRIGGER {You focus your mind intently on curing your mental maladies.} {#if (@Focusing = 1) {#untrigger acp_focusing;#var Focusing 0;#var FocusBalance 0;#alarm "acp_focustimer" +5 {#var FocusBalance 1;acp_heal};acp_curingwith focus}} "ACP|Focus"
#COND {^%dh, %dm} {#if (@FocusBalance = 0) {acp_unafflict stupidity;acp_unafflict anorexia;acp_unafflict confusion;acp_unafflict masochism;acp_unafflict recklessness;acp_unafflict weakness;acp_unafflict epilepsy;acp_unafflict claustrophobia;acp_unafflict agoraphobia;acp_unafflict shyness;acp_unafflict dizziness;acp_unafflict loneliness;acp_unafflict pacifism}} {within|param=1}
basically the condition checks a flag when there's a prompt right after the trigger and if it's 0 then it'll reset some stuff per aliases, if not it won't. Now for some reason it messed up on me and kept triggering no matter if there was a line inbetween the trigger and the prompt or not.
Does anyone know why this could be?
Thanks, Chris |
|
|
|
Falan Wanderer
Joined: 17 Aug 2004 Posts: 98 Location: OK, USA
|
Posted: Wed Jan 19, 2005 4:53 am |
Did you try #COND options {prompt|nocr|within|param=1}?
|
|
_________________ zMUD 7.05a |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Jan 19, 2005 12:51 pm |
I don't think you will get this to work exactly the way you want. The 'line counter' has difficulty with prompts. Prompts don't end the line, so the counter doesn't advance. Since the counter hasn't advanced, if there was exactly one line between the trigger and the prompt then the counter will still be on 1 and it will still consider the prompt to be within 1 line.
|
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Jan 19, 2005 11:38 pm |
Try adding the prompt option to the #COND.
Like:
#TRIGGER {You focus your mind intently on curing your mental maladies.} {...}
#COND {^%dh, %dm} {...} {within|param=1|prompt} |
|
_________________ Kjata |
|
|
|
|
|