 |
HollyC Novice
Joined: 10 Apr 2003 Posts: 45 Location: USA
|
Posted: Thu Apr 15, 2004 4:39 am
Are these the same or different? |
In Achaea, I had the following class folder in my healing script to handle insomnia/falling asleep. There was a variable called 'insomnia' with a default value of 0 in another folder, and in this particular folder, that variable was handled as follows:
#CLASS {Holly|healing|waking}
#ALIAS wu {wake}
#TRIGGER {You are asleep and can do nothing} {insomnia = 0;sleeping = 1;down = 1;wu}
#TRIGGER {You are incredibly tired and fall asleep immediately} {insomnia = 0;sleeping = 1;down = 1;wu}
#TRIGGER {You feel incredibly tired suddenly, and fall asleep immediately.} {insomnia = 0;sleeping = 1;down = 1;wu}
#TRIGGER {You feel incredibly tired, and fall asleep immediately.} {insomnia = 0;sleeping = 1;down = 1;wu}
#TRIGGER {The chimera's dragon head exhales a cloud of gas at you, and you feel} {insomnia = 0;sleeping = 1;down = 1;wu}
#TRIGGER {You eat a black cohosh root.} {insomnia = 1}
#TRIGGER {You suddenly feel incapable of falling asleep.} {insomnia = 1}
#TRIGGER {Your mind relaxes and you feel as if you could sleep.} {insomnia = 0}
#TRIGGER {Your insomnia has cleared up.} {insomnia = 0}
#TRIGGER {Your insomnia has been cured by the goldenseal.} {insomnia = 0}
#CLASS 0
But in a recent spar, the script kept eating cohosh repeatedly, throwing the remainder of the queueing system completely askew. So I decided to try and make some changes. In the folder that had the variable, 'insomnia,' I changed the name of that variable to 'cansleep' and retained the default value of 0. Now here's where the subtle differences (at least I THINK and HOPE they are) lie. The new folder looks like this:
#CLASS {Holly|healing|waking}
#ALIAS wu {wake}
#TRIGGER {You are asleep and can do nothing} {cansleep = 1;sleeping = 1;down = 1;wu}
#TRIGGER {You are incredibly tired and fall asleep immediately} {cansleep = 1;sleeping = 1;down = 1;wu}
#TRIGGER {You feel incredibly tired suddenly, and fall asleep immediately.} {cansleep = 1;sleeping = 1;down = 1;wu}
#TRIGGER {You feel incredibly tired, and fall asleep immediately.} {cansleep = 1;sleeping = 1;down = 1;wu}
#TRIGGER {The chimera's dragon head exhales a cloud of gas at you, and you feel} {cansleep = 1;sleeping = 1;down = 1;wu}
#TRIGGER {Your mind relaxes and you feel as if you could sleep.} {cansleep = 1}
#TRIGGER {Your insomnia has cleared up.} {cansleep = 1}
#TRIGGER {Your insomnia has been cured by the goldenseal.} {cansleep = 1}
#TRIGGER {You eat a black cohosh root.} {cansleep = 0}
#TRIGGER {You suddenly feel incapable of falling asleep.} {cansleep = 0}
#CLASS 0
The idea is that anything that strips the insomnia defense or puts me to sleep, sets the CANSLEEP variable to 1 (TRUE), and eating cohosh sets it back to ZERO (FALSE); effectively reversing the roles of the various triggers.
However, I am not sure that this is different enough that it would prevent the original problem (of continuously eating cohosh) from happening again. The idea is that since CANSLEEP *begins* at a default value of 0, eating cohosh for the first time KEEPS it at zero instead of SETTING it to 1. However, once insomnia is stripped and cohosh must be eaten anew, I worry if the problem is ripe to crop up again.
Are these two folders sufficiently different to make a "difference" (pun intended), or is the new cansleep just the same old product with a new name?
Holly :) |
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Apr 15, 2004 5:53 am |
Assuming you made the necessary changes to all affected triggers, there will probably be no difference.
None of these triggers 'eat cohosh', so they aren't where the problem is. |
|
|
|
 |
HollyC Novice
Joined: 10 Apr 2003 Posts: 45 Location: USA
|
Posted: Thu Apr 15, 2004 2:38 pm |
:) Thank you for pointing out the one major detail I left out.
Before this adjustment, I had a healing macro that included the following:
#If (@insomnia=0) {ecoh}
where 'ecoh' means to take one cohosh out of my rift and eat it.
After the adjustment, that part of the macro is now as follows:
#If (@cansleep=1) {ecoh}
It now eats cohosh if the new cansleep variable returns TRUE, instead of insomnia returning FALSE, and since cansleep begins as false (it's the default value), and eating cohosh KEEPS it at false (can't sleep, so cansleep stays at 0 instead of insomnia going to 1), I think it might stabilize, at least until after the first time I take a sleep-inducing attack (which is usually delivered twice at a time; the first time to strip the insomnia defense (cansleep is now true), the second time causing the person to fall asleep).
Holly |
|
|
|
 |
|
|
|
|
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
|
|