BATTLEGROUND ACTIONS (BG)
RECEIVER
During combat, you may check/set/get parameters on actions taken by a monster stack. These receivers may be used/called only in the !?BG 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.
During combat, you may check/set/get parameters on taken action | ||||||||||||||||||||||||||||||||||||||||
OPTIONS | ||||||||||||||||||||||||||||||||||||||||
A$; | Type of an action:
| |||||||||||||||||||||||||||||||||||||||
D$; | Destination position (magic to monster, walk or attack to) | |||||||||||||||||||||||||||||||||||||||
E$; | Get a destination monster stack (destination position is used). -1 if no monster stack at that position |
|||||||||||||||||||||||||||||||||||||||
H$; | Number of a hero owner (-1=no hero) | |||||||||||||||||||||||||||||||||||||||
N$; | Number of current stack (0...41) | |||||||||||||||||||||||||||||||||||||||
Q?$; | Current attacking side (0=left or 1=right) Check only! |
|||||||||||||||||||||||||||||||||||||||
S$; | Number of a Spell to Cast (See
Format
SP) Comments: If a monster casts a spell before an action (enchanter magic or Troll resurrection), it goes before trigger. |