 |
Solaras Wanderer
Joined: 11 Mar 2002 Posts: 93
|
Posted: Tue Apr 20, 2004 9:04 am
Triggers and #CONDITION |
I am trying to lower the amount of dupilicate style
triggers I have and I thought I would try the #COND
statement.. but apparently it didnt work as planned.
I was wondering if this was a viable way to utilise
#COND or if there is a better way.
What I attempted was to take the #REGEX line and use
that as the main trigger line, followed by any one of
the #COND lines... but like I said it doesnt seem to
work as hoped under testing and I am not sure if its
just something I did wrong or if its really not meant
to do this.
#REGEX {You focus your mind intently on curing your mental maladies.} {} "Cure|Cured|Focus Stuff"
#COND {You aren't such a complete idiot anymore.} {#IF (@CureStupid) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Stupid 0;#VARIABLE Cure/Cured/CureStupid 0;#T- "Cure|Goldenseal|Stupidity|Stupid Watching"};cureall} {within|param=1|regex}
#COND {You can handle the idea of open spaces again.} {#IF (@CureAgorophobia) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Agorophobia 0;#VARIABLE Cure/Cured/CureAgorophobia 0};cureall} {within|param=1|regex}
#COND {Small spaces no longer frighten you.} {#IF (@CureClaustrophobia) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Claustrophobia 0;#VARIABLE Cure/Cured/CureClaustrophobia 0};cureall} {within|param=1|regex}
#COND {(.*)you are no longer demented.} {#IF (@CureDementia) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Dementia 0;#VARIABLE Cure/Cured/CureDementia 0};cureall} {within|param=1|regex}
#COND {You are no longer dizzy.} {#IF (@CureDizzyness) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Dizzyness 0;#VARIABLE Cure/Cured/CureDizzyness 0};cureall} {within|param=1|regex}
#COND {Your nerves suddenly calm down.} {#IF (@CureEpilepsy) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Epilepsy 0;#VARIABLE Cure/Cured/CureEpilepsy 0};cureall} {within|param=1|regex}
#COND {Your hallucinations cease to plague you.} {#IF (@CureHallucinations) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Hallucinations 0;#VARIABLE Cure/Cured/CureHallucinations 0};cureall} {within|param=1|regex}
#COND {The curse of Miramar, the Just leaves you} {#IF (@CureJustice) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Justice 0;#VARIABLE Cure/Cured/CureJustice 0};cureall} {within|param=1|regex}
#COND {The awful loneliness leaves you.} {#IF (@CureLonliness) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Lonliness 0;#VARIABLE Cure/Cured/CureLonliness 0};cureall} {within|param=1|regex}
#COND {You no longer enjoy pain.} {#IF (@CureMasochism) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Masochism 0;#VARIABLE Cure/Cured/CureMasochism 0};cureall} {within|param=1|regex}
#COND {You shake your head, wondering what you ever saw} {#IF (@CurePacifism) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Pacifism 0;#VARIABLE Cure/Cured/CurePacifism 0};cureall} {within|param=1|regex}
#COND {Aaaahhh. No one is out to get you after all.} {#IF (@CureParanoia) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Paranoia 0;#VARIABLE Cure/Cured/CureParanoia 0};cureall} {within|param=1|regex}
#COND {Prudence rules your psyche once again.} {#IF (@CureReckless) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Reckless 0;#VARIABLE Cure/Cured/CureReckless 0};cureall} {within|param=1|regex}
#COND {Your shyness has been cured. You can now face the world boldly.} {#IF (@CureDigitalis) {#VARIABLE Cure/FocusB 0;#VARIABLE Cure/"Affliction Buttons"/Digitalis 0;#VARIABLE Cure/Cured/CureDigitalis 0};cureall} {within|param=1|regex} |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Apr 20, 2004 5:10 pm |
Only one #CONDITION (per trigger) can be active at any given time.
It looks like all these patterns need to be active simultaneously, so they should be individual #TRIGGERs. |
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|