Nezha2007-11-05 06:23:07
I am having a hard time with mush. Im programming in lua and i seem to always find something like this --
The value should have reset.. i can even see it -- bal_focus 1
But somehow, the old value is being called in the very next prompt: bal_focus 2
Ive been going crazy trying to find whats wrong with it.
1. something is resetting the value to 2 -- which is highly unlikely as there are no triggers that will do it at that time
2. The old value is being read. the prompttrigger in which all healing takes place, and the trigger for the unaffliction line is not so insync.. -- the prompt trigger uses the old value while the unaffliction trigger was already resetting it..
meh! this should not happen....
i wonder how this can be resolved..
QUOTE
You are paralysed and unable to do that.
3108h, 4730m, 5133e, 10p esSixkp-
bal_focus 2
bal_focusmind 1
You begin focusing your mind on your motor skills.
3108h, 4480m, 5133e, 10p esSixkp-
bal_focus 0
bal_focusmind 1
You may eat or smoke another herb.
3108h, 4480m, 5133e, 10p esSixkp-
bal_focus 0
bal_focusmind 1
Your muscles unlock; you are no longer paralysed.
bal_focus 1
3108h, 4480m, 5133e, 10p esSixk- --- PromptTrigger fires here
bal_focus 2
bal_focusmind 1
You focus your mind on your motor skills but find you are already mobile.
UnFocusTrigger 1
3108h, 4230m, 5133e, 10p esSixk-
bal_focus 1
bal_focusmind 1
3108h, 4980m, 5133e, 10p esSixk-
3108h, 4730m, 5133e, 10p esSixkp-
bal_focus 2
bal_focusmind 1
You begin focusing your mind on your motor skills.
3108h, 4480m, 5133e, 10p esSixkp-
bal_focus 0
bal_focusmind 1
You may eat or smoke another herb.
3108h, 4480m, 5133e, 10p esSixkp-
bal_focus 0
bal_focusmind 1
Your muscles unlock; you are no longer paralysed.
bal_focus 1
3108h, 4480m, 5133e, 10p esSixk- --- PromptTrigger fires here
bal_focus 2
bal_focusmind 1
You focus your mind on your motor skills but find you are already mobile.
UnFocusTrigger 1
3108h, 4230m, 5133e, 10p esSixk-
bal_focus 1
bal_focusmind 1
3108h, 4980m, 5133e, 10p esSixk-
The value should have reset.. i can even see it -- bal_focus 1
But somehow, the old value is being called in the very next prompt: bal_focus 2
Ive been going crazy trying to find whats wrong with it.
1. something is resetting the value to 2 -- which is highly unlikely as there are no triggers that will do it at that time
2. The old value is being read. the prompttrigger in which all healing takes place, and the trigger for the unaffliction line is not so insync.. -- the prompt trigger uses the old value while the unaffliction trigger was already resetting it..
meh! this should not happen....
i wonder how this can be resolved..
Faymar2007-11-05 06:42:03
What does the values of 0, 1 and 2 of bal_focus mean?
Nezha2007-11-05 06:55:59
The values means the current state of paralysis -- like this
You are paralysed and unable to do that. -- bal_focus 2 (means i need to do focus body)
You begin focusing your mind on your motor skills. -- bal_focus 0 (already focusing, no need to focus again)
Your muscles unlock; you are no longer paralysed -- bal_focus 1 (focus body complete, can focus again if need be)
The problem is, there is only one way the value will be set to 2. It is when 'You are paralysed and unable to do that. ' is detected.. and it can be seen that it was set to 1 when the muscles unlocked... how is it that it remained in 2.. arrrggghhh!!!
You are paralysed and unable to do that. -- bal_focus 2 (means i need to do focus body)
You begin focusing your mind on your motor skills. -- bal_focus 0 (already focusing, no need to focus again)
Your muscles unlock; you are no longer paralysed -- bal_focus 1 (focus body complete, can focus again if need be)
The problem is, there is only one way the value will be set to 2. It is when 'You are paralysed and unable to do that. ' is detected.. and it can be seen that it was set to 1 when the muscles unlocked... how is it that it remained in 2.. arrrggghhh!!!
Faymar2007-11-05 09:07:46
Well, perhaps there is something wrong with your prompt script? There is nothing wrong with the trigger about you not being paralysed anymore, as far as I can see, since it sets bal_focus to 1.
I personally use a table to store my afflictions, and a variable to store the balances. When you send the command to focus, I set the balance to 0.5, that way if I couldn't cure it will reset to 1 from a timer. If I am focusing, the focus balance variable will be 0, and when I am done focusing it will revert to 1. All my affliction tables are checked from the prompt.
I personally use a table to store my afflictions, and a variable to store the balances. When you send the command to focus, I set the balance to 0.5, that way if I couldn't cure it will reset to 1 from a timer. If I am focusing, the focus balance variable will be 0, and when I am done focusing it will revert to 1. All my affliction tables are checked from the prompt.