Blushy
03-13-2008, 11:17 PM
The behavior of the Char.stance variable in Lich seems to be odd. It often reports that I am in offensive stance when in fact I am in defensive stance. Here is a little excerpt of a log illustrating what's happening. I have the script that I am debugging set to echo a line which contains the current value of Char.stance every my character is attacked:
>stance for
You are now in a forward stance.
>
A mongrel kobold swings a handaxe at you!
With blinding speed, you dodge the attack!
>
[calcdodge: 3.0 25 -54 forward evade]
>
A mongrel kobold swings a handaxe at you!
You barely dodge the attack!
>
[calcdodge: 3.0 25 -54 forward evade]
>stance neu
You are now in a neutral stance.
>
A mongrel kobold swings a handaxe at you!
AS: +73 vs DS: +225 with AvD: +41 + d100 roll: +25 = -86
A clean miss.
>
[calcdodge: 3.0 25 -54 neutral not]
>stance guar
You are now in a guarded stance.
>
A mongrel kobold looks a little dubious about her situation.
>
A mongrel kobold heads east.
>
A mongrel kobold swings a handaxe at you!
With blinding speed, you dodge the attack!
>
[calcdodge: 3.0 25 -54 guarded evade]
>stance def
You are now in a defensive stance.
>
A mongrel kobold looks a little dubious about her situation.
>
A mongrel kobold just arrived.
>
A mongrel kobold swings a handaxe at you!
AS: +73 vs DS: +265 with AvD: +41 + d100 roll: +67 = -84
A clean miss.
>
[calcdodge: 3.0 25 -54 offensive not]
>
A mongrel kobold swings a handaxe at you!
You dodge just in the nick of time!
>
[calcdodge: 3.0 25 -54 offensive evade]
A mongrel kobold swings a handaxe at you!
AS: +73 vs DS: +265 with AvD: +41 + d100 roll: +97 = -54
A clean miss.
>
[calcdodge: 3.0 25 -54 offensive not]
See, it's reporting it properly when I'm in stances other than defensive, but when I'm in defensive stance, the value of Char.stance seems to be equal to 'offensive'.
Anbody else notice this? Any thoughts/advice/corrections? Is this a bizarre artifact of the way infomonitor.lic works?
>stance for
You are now in a forward stance.
>
A mongrel kobold swings a handaxe at you!
With blinding speed, you dodge the attack!
>
[calcdodge: 3.0 25 -54 forward evade]
>
A mongrel kobold swings a handaxe at you!
You barely dodge the attack!
>
[calcdodge: 3.0 25 -54 forward evade]
>stance neu
You are now in a neutral stance.
>
A mongrel kobold swings a handaxe at you!
AS: +73 vs DS: +225 with AvD: +41 + d100 roll: +25 = -86
A clean miss.
>
[calcdodge: 3.0 25 -54 neutral not]
>stance guar
You are now in a guarded stance.
>
A mongrel kobold looks a little dubious about her situation.
>
A mongrel kobold heads east.
>
A mongrel kobold swings a handaxe at you!
With blinding speed, you dodge the attack!
>
[calcdodge: 3.0 25 -54 guarded evade]
>stance def
You are now in a defensive stance.
>
A mongrel kobold looks a little dubious about her situation.
>
A mongrel kobold just arrived.
>
A mongrel kobold swings a handaxe at you!
AS: +73 vs DS: +265 with AvD: +41 + d100 roll: +67 = -84
A clean miss.
>
[calcdodge: 3.0 25 -54 offensive not]
>
A mongrel kobold swings a handaxe at you!
You dodge just in the nick of time!
>
[calcdodge: 3.0 25 -54 offensive evade]
A mongrel kobold swings a handaxe at you!
AS: +73 vs DS: +265 with AvD: +41 + d100 roll: +97 = -54
A clean miss.
>
[calcdodge: 3.0 25 -54 offensive not]
See, it's reporting it properly when I'm in stances other than defensive, but when I'm in defensive stance, the value of Char.stance seems to be equal to 'offensive'.
Anbody else notice this? Any thoughts/advice/corrections? Is this a bizarre artifact of the way infomonitor.lic works?