[FE8] Need explanation on how the AI decides when to use summoning


#1

I know that it’s the AI1 0x14 and that the summoned units are at 0x8D1F54.
Also the AI will always summon at Turn1.

What I need to know is how the game determines when to summon again.
Even at 50 max units, the AI will try to summon even if it can’t
however it won’t summon for some turns after each summoning.

Has anyone any insight on this?
Does it check for turns or for the available IDs of the summoned units? Or something else?


#2

:thinking:

The AI can summon? I’m pretty sure only the Demon King’s special AI can summon, not normal summoners.


#3

Pretty sure anything with the AI1 set to 0x14 could summon.


#4

The AI cannot summon in vanilla FE8U. (Except the Demon King AI but that has weird properties and isn’t what you would want.) AI1 0x14 is Demon King AI.


#5

I don’t think there’s a vanilla AI for summoner as there are no enemy Summoners to begin with.


#6

I’ve looked at this before. It definitely always summons on turn 1, but there are some routines I couldn’t make sense of that may determine whether it summons again.

AI1 0x14 - 085A8A7C - Summon Units
0x085A8A70: 05 04 50 00	@Data0
0x085A8A74: 05 03 00 00 @Data1
54 1F 8D 08 @Data2 (unpointed to?)
01 00 FF 00 00 00 00 00 F9 11 04 08 70 8A 5A 08 @Summon the units in Data0?
00 02 FF 01 00 00 00 00 8A AA 03 02 00 00 00 00 @If memory==0, GOTO 1
01 00 FF 00 00 00 00 00 CD 13 04 08 00 00 00 00 @A routine (Nightmare staff??)
03 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 @GOTO 0
1C 00 FF 01 00 00 00 00 00 00 00 00 00 00 00 00 @LABEL 1
01 00 FF 00 00 00 00 00 05 14 04 08 74 8A 5A 08 @Pathfinding for summoning?
00 02 FF 02 00 00 00 00 8A AA 03 02 00 00 00 00 @Same condition as before (can or can't summon more?). GOTO 2
01 00 FF 00 00 00 00 00 85 15 04 08 00 00 00 00 @A new routine?
03 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 @GOTO 0
1C 00 FF 02 00 00 00 00 00 00 00 00 00 00 00 00 @LABEL 2
05 64 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 @Attack in Range
03 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 @```

#7

FE8J has been patched to see if it can be transplanted. It was made by Area of NGG library.