For some reason there’s no GAST/Gas Trap programmed in Event Assembler for FE8 that I’m aware of.
You can add them with FEBuilder, but if someone just wants to script events with Event Assembler without using FEBuilder, here’s the macro:
#define GasTrap(XX,YY,direction) "BYTE 0x05; BYTE XX; BYTE YY; BYTE direction; BYTE 0x01; BYTE 0x01"
XX: Position X
YY: Position Y
direction: direction of the gas
0 = From right to left
1 = From left to right
2 = From top to bottom
3 = From bottom to top
And here are som macros for changing AI
#define ChangeAI(AI1,AI2,chara) "SVAL 0x01 ((AI1*100)+AI2);CHAI chara"
#define ChangeAIXY(AI1,AI2,posX,posY) "SVAL 0x01 ((AI1*100)+AI2);CHAI [posX,posY]"
#define SetAI(unitid,ai1,ai2)"SVAL 0x1 ai1|(ai2<<8); CHAI unitid"
#define SetAI(x,y,ai1,ai2) "SVAL 0x1 ai1|(ai2<<8); CHAI [x,y]"
ai1: AI Byte 1
ai2: AI Byte 2
unitid: Character
x: Position X of the unit
y: Position Y of the unit
Apparently you can only change the first 2 bytes of the AI in FE8, I don’t know if you can change bytes 3 and 4.
And another thing I found out is that the lower amount of gold you can give with a chest is 256, anything below that is treated as an item.