Enemy units vanishing and reappearing somewhere else

[code]Bad:
UNIT Jerme Assassin Jerme Level(1, Enemy, 0) [12,15] [12,15] [WindSword] AttackInRange
UNIT 0x6C Myrmidon Jerme Level(8, Enemy, 1) [11,15] [11,15] [SteelSword] AttackInRange
UNIT 0x6C Soldier Jerme Level(8, Enemy, 1) [9,15] [9,15] [IronSpear] SeizeThrone
UNIT 0x6C Archer Jerme Level(5, Enemy, 1) [8,15] [8,15] [IronBow] SeizeThrone
UNIT 0x6C Brigand Jerme Level(5, Enemy, 0) [14,16] [14,16] [Hammer] SeizeThrone
UNIT 0x6C Mage Jerme Level(5, Enemy, 1) [12,0] [12,0] [Fire] SeizeThrone
UNIT 0x6C Mage Jerme Level(5, Enemy, 1) [11,0] [11,0] [Fire] SeizeThrone
UNIT 0x6C Myrmidon Jerme Level(5, Enemy, 1) [20,10] [20,10] [IronSword]SeizeThrone
UNIT 0x6C Soldier Jerme Level(5, Enemy, 1) [10,0] [10,0] [SteelSpear]SeizeThrone
UNIT 0x6C Archer Jerme Level(5, Enemy, 1) [19,11] [19,11] [IronBow]SeizeThrone
UNIT 0x6C Monk Jerme Level(5, Enemy, 1) [0,10] [0,10] [Lightning, LightRune] SeizeThrone
UNIT 0x6C Fighter Jerme Level(5, Enemy, 1) [2,9] [2,9] [HandAxe] SeizeThrone
UNIT 0x6C Myrmidon Jerme Level(4, Enemy, 1) [11,7] [11,7] [SlimSword] SeizeThrone
UNIT 0x6C Brigand Jerme Level(3, Enemy, 1) [13,10] [13,10] [IronAxe] AttackInRange
UNIT 0x6C Archer Jerme Level(5, Enemy, 1) [9,10] [9,10] [IronBow] AttackInRange
UNIT 0x6C Soldier Jerme Level(9, Enemy, 1) [3,15] [3,15] [SteelSpear] SeizeThrone
UNIT 0x6C Mercenary Jerme Level(4, Enemy, 1) [2,12] [2,12] [SteelSword] SeizeThrone
UNIT 0x6C Mercenary Jerme Level(2, Enemy, 1) [4,16] [4,16] [SteelSword] AttackInRange
UNIT

Otters:
UNIT 0x6C Wyv Jerme Level(3, Enemy, 1) [18,16] [17,16] [SteelSpear] BetterGuard
UNIT

O2:
UNIT 0x6C Cleric Jerme Level(3, Ally, 1) [18,16] [19,16] [Shine, Mend, Elixir] BetterGuard
UNIT

O3:
UNIT 0x6C Soldier Jerme Level(6, Ally, 1) [18,16] [18,15] [Javelin] BetterGuard
UNIT

(in events)

Opening_event:
MUS1 0x23
LOU1 NpcFriends
ENUN
FADU 10
OOBB
LOU1 OpeningUnits
ENUN
CAM1 Lyn
CURF Lyn
TEX1 0x085C
REMA
STAL 20
MOVE Eliwood [5,15]
MOVE Heath [5,16]
ENUN
TEX1 0x085D
REMA
TEX1 0x86F
REMA
FADI 10
BACG 0x15
FADU 10
TEX1 0x876
FADI 10
ASMC 0x7A8B9
LOU1 NpcFriends
ENUN
LOU1 SectionUnits
ENUN
STAL 30
REMA
CAM1 Lucius
MOVE Lucius LouisApproach
STAL 10
ENUN
FADI 10
BACG 0x12
FADU 10
TEX1 0x085E
MUEN 0x5
STAL 10
SOUN 0x2E9
FADI 16
BACG 0x5B
FADU 15
TEX1 0x85F
REMA
TEX1 0x86D
REMA
STAL 20
SOUN 0xAB
STAL 10
StartRumble
STAL 50
EndRumble
SOUN 0xAB
STAL 20
MUS1 0x20
LOU1 LoyisGuys
ENUN
TEX1 0x86E
REMA
LOU1 Twins
ENUN
IFUF 0x00 0x14 Guy
MOVE Guy [18,6]
ENIF 0x14
IFUF 0x00 0x15 Fiora
MOVE Fiora [17,5]
ENIF 0x15
ENUN
TEX1 0x875
REMA
CURF Guy
TEX1 0x87A
REMA
STAL 15
CAM1 [12,12]
SOUN 0xAB
FAWI 15
LOU1 Bad
ENUN
FAWU 10
LOU1 Otters // here is otter
ENUN
LOU1 O2
ENUN
LOU1 O3
ENUN // last enemy
CURF Jerme
TEX1 0x873
REMA
CAM1 Eliwood
TEX1 0x872
REMA
MOVE Heath [13,11]
MOVE Lyn [12,9]
MOVE Eliwood [11,9]
ENUN
CAM1 Fiora
TEX1 0x871
REMA
CAM1 [7,4]
CURF [5,2]
TEX1 0x870
REMA
STAL 10
FADI 10
ASMC 0x7A8B9
LOU1 Good
ENUN
LOU1 Bad
ENUN
LOU1 NpcFriends2
ENUN
TurnAlly(Lucius}
ENUN
ENUF 0x3E
FADU 10
ENDA[/code]

so this is what happens in the game

so right now i’m about to load Otters (which is just 1 unit)

cool, that worked fine, now let’s load O2 (cleric)

wat. That myrmidon just vanished and went over there…

and then he vanished again and another myrmidon took the place of O3 (which was the soldier)

what the hell is going on here. I haven’t reached the enemy limit, there’s like not even 30 enemy units in total. my code is fine and everything. But 1 random unit is just disapearing and reapearing on his own. And the cleric doesn’t even show up.

WHY GAME

what happens if you remove those LOU1s or try loading units in isolation (this isn’t trying to be a hint or anything, I’m legitimately curious)

i commented out otters and tried O2, then i tried the same with O3

and more confusing stuff happened

that mirmydon next to the boss STILL vanishes and reappears.

the cleric (O2) nor the soldier (O3) NEVER even appear. only the fucking Wyvern works.

replacing the cleric or soldier with a wyvern just repeats the original sequence I showed

and deleting the myrmidon that vanishes doesn’t fix the problem because the soldier next to him in the corridor just vanishes and reappears in the room instead

Here’s a thought - Have you tried using a different char number, or loading them at a different point in the event (just for experiment)? I have absolutely no idea what’s going on, but my gut tells me there’s something fishy happening behind the scenes that I’d need to check directly (so let’s instead try this very roundabout method of troubleshooting that may reveal the problem)

E:

I suppose another thing to try is to put all three enemies in the same unit group or grouping them in a single LOU1 (as in LOU1 Otter O2 O3)

wow.
so i changed their character ID and it worked a bit better, that myrmidon stayed in place.
But onluy O2 vanished instead of both O2 and O3.

I then realized that i’ve been trying to load Allies instead of Enemies (dumb)

Otters:
UNIT 0x6C Wyv Jerme Level(3, Enemy, 1) [18,16] [17,16] [SteelSpear] BetterGuard
UNIT
O2:
UNIT 0x6C Cleric Jerme Level(3, Ally 1) [18,16] [19,16] [Shine, Mend, Elixir] BetterGuard
UNIT
O3:
UNIT 0x6C Soldier Jerme Level(6, Ally, 1) [18,16] [18,15] [Javelin] BetterGuard
UNIT

I changed it from Ally to enemy and they appeared… Then I changed the character ID back to 0x6C and it started working like it’s supposed to.

so by changing O2 and O3 to Enemies instead of allies, it worked.
But that’s strange, they would vanish if they were allies and an enemy would take the place of the disapearing ally generic??

idk,

lol

I wonder if it’s because the game doesn’t like it when there’s more than one allied unit with the same charID (hence it tries to “clone” an existing enemy with that ID)? Who knows lol

oh you might be on to something there!

thanks for helping