How do I check whether an NPC is tired? I am sure this is one of these "did't look close enough" questions, but I don't seem to find it. It's not available in state.ids for "StateCheck(O:Object*,I:State*State)" (at least I didn't see it.)
Thank you for any hint!
Fatigue is handled as a stat (see stats.ids) so you can use
CheckStatGT(Player1,6,FATIGUE)
The value corresponds to fatigmod.2da. I believe a character does not actually show as fatigued until they start accruing penalties--according to fatigmod.2da, this should happen at a value > 6.
I think. :)
I saw the "fatigue" in stats.ids but I had no idea how to call it as a trigger. Thank you, CamDawg, I will try this. :)
And if you can confirm/deny when fatigue is actually triggered (i.e. the icon appearing on the portrait and the NPC whining), let us know. :)
What about making character fatigued: can it be done via spell or is there Action that will make him/her fatigued?
Yep, #93 (0x5d) Stat: Fatigue Modifier [93] (http://iesdp.gibberlings3.net/opcodes/bg2tob.htm).
What exactly are the penalties for fatigued characters? I have tried to incurr to-hit penalties to characters via fatigue, but I don't remember anything happened apart from a fatigue portrait icon appearing on their record.
-Galactygon
For every 4 hours after the fatigue's appearance, the character receives a -1 luck penalty (-1 to all rolls).