Hello fellow modders,
today I'm experiencing a problem that is driving me crazy. The game handles the states in State.ids incorrectly...
For example, my enemy mage has 2 stunning spells, but I want her to cast the second spell in the chain only if the target is not stunned yet.
So, this is the code:
IF HPLT(Protagonist,90) HaveSpell(WIZARD_POWER_WORD_STUN) See(NearestEnemyOf(Myself)) THEN RESPONSE #100 Spell(NearestEnemyOf(Myself),WIZARD_POWER_WORD_STUN) Continue() END IF See(NearestEnemyOf(Myself)) HaveSpell(WIZARD_BIGBYS_CLENCHED_FIST) !StateCheck(Player1,STATE_STUNNED) THEN RESPONSE #100 Spell(NearestEnemyOf(Myself),WIZARD_BIGBYS_CLENCHED_FIST) Continue() END
The problem is that even if the target gets stunned with the first spell (Power word stun), the game fails to recognize this state [ !StateCheck(Player1,STATE_STUNNED ] in the next script chain and reads TRUE even if it's not....
what is the problem? thanks