
Prototype: GemRB.SetModalState(Slot, Value[, spell])

Description: Sets a player character's modal state. The modal states are listed in ie_modal.py. 

Parameters: Slot  - actor index in game structure
            Value - New modal state
            Spell - the spell resource associated with the state

If spell is not given, a default value from modal.2da will be used.

Return value: N/A

Examples: 
 GemRB.SetModalState (pc, MS_TURNUNDEAD)
The above example makes the player start the turn undead action.

See also: SetPlayerStat, SetPlayerName
