Hey there!
I’m trying to learn how to use conditions in FE8, and i’m having difficulty using IFET and IFEQ together. Ideally, I would like to have something occur the turn after another event is triggered.
[spoiler=“Event Data”]
TurnBasedEvents:
TURN 0x10 testing [2,0] 0x0
END_MAIN
MiscBasedEvents:
AREA 0x7 SpawnBaddies [0,5] [14,14]
END_MAIN
testing:
IFET 0x7
IFEQUAL 0xA0 0xC 0x1
LOAD1 0x1 testload
ENIF 0xA0
ENDA
SpawnBaddies:
CAM1 [7,10]
LOAD1 0x1 Swarm
STAL 70
ENUT 0x7
ENDA
testload:
UNIT Ephraim General 0x0 Level(5,Ally,True) [14,1] 0b 0x0 0x0 0x0 [IronLance, Vulnerary,0x0,0x0] [0x0,0x0,0x0,0x0]
UNIT
Swarm:
UNIT 0xAA 0x52 0x0 0xD [14,11] 0b 0x0 0x1 Zmove1 [0xAD,0x0,0x0,0x0] [0x0,0xA,0x2,0x0]
UNIT 0xAA 0x52 0x0 0xD [14,14] 0b 0x0 0x0 0x0 [0xAD,0x0,0x0,0x0] [0x0,0xA,0x2,0x0]
UNIT 0xAA 0x52 0x0 0xD [10,14] 0b 0x0 0x0 0x0 [0xAD,0x0,0x0,0x0] [0x0,0xA,0x2,0x0]
UNIT 0xAA 0x52 0x0 0xD [12,14] 0b 0x0 0x0 0x0 [0xAD,0x0,0x0,0x0] [0x0,0xA,0x2,0x0]
UNIT 0xAA 0x52 0x0 0xD [14,13] 0b 0x0 0x1 Zmove2 [0xAD,0x0,0x0,0x0] [0x0,0xA,0x2,0x0]
UNIT
[/spoiler]
I know there are probably other ways that I can do this, what with the AFEV code, but I would really like to learn to use conditions so that I can better design chapters.
As far as I understand, the IFET command puts a value (either 0 or 1) in the Memory slot 0xC, at least according to the Language Raws in my EA folder. I can’t seem to get the unit in “testing” to load, despite the SpawnBaddies event going off and spawning units.
Does anyone have an idea of what I might be doing wrong?