BATTLE, HERO ACTIONS (BH)
RECEIVER

During combat, you may check/set/get parameters on the action taken by a hero. These receivers may be used/called only in the !?BG (!?BR) trigger section.

Note: Now a usage of !!BG, !!BM, !!BH, !!BU, !!BF in complete AI battle is controlled in the ERM interpreter and you will get the corresponding error message.

!!BH#:XXXX; You may check/set/get some parameters of a hero at # side (0=left, 1=right).

OPTIONS

C#1/#2/#3/#4; Cast a spell
   #1 - Spell number (See Format SP)
   #2 - Position to cast
   #3 - Hero Skill level (0...3)
   #4 - Check 4 Target Monster existing (alive)
M$; Disable (1) or (re)enable (0) to cast spell
Comments:
If you re-enable spell casting after a spell has been cast, the player still can't cast it immediately. The spell book will only become accessible when the next creature stack belonging to that player gets a turn, or, if the same stack gets morale and can act again immediately.
N?$; Get or check a number of the hero (-1=no hero)
Q#1/#2/#3; Put a hex of Quick Sand or a Land Mine at a position
   #1 - Type (0=Quick Sand, 1=Land Mine)
   #2 - Position
   #3 - Redraw (1) or not (0)
Comments:
For Q command the position will be checked automatically
for whether you can place a magic obstacle or not.

Grid of the battlefield