[FE7] [Events] Deployed unit question

Hi everyone,
I have a slight problem with a chapter I created recently and my first one with a prep. screen so I had a lot of issues there. Now I encountered the problem of loading the units that the player chosed earlier. Thanks to FEU I already know that the numbers are determinated by the “Good” unit group. But how do I load the selected units? Using LOU1 Good just loads the units that are loaded there.

They are loaded automatically, in the Opening Event are loaded the default units, but when you start the chapter the selected units are displayed.

It’s working now, but all my units are now at the left side in the off. Could it be because I had a UNCM in the previous chapter or maybe my events are just bad? (Though I put them back to normal at the beginning of this chapter)

#define DISABLE_TUTORIALS
#include EAstdlib.event

EventPointerTable(0x4B,Pointers)

ORG 0x11DC570
Pointers:
POIN Turn_events 
POIN Character_events 
POIN Location_events 
POIN Misc_events
POIN TrapData TrapData
POIN BadEN BadEN BadEN BadEN
POIN GoodEN GoodEN GoodEN GoodEN
POIN Opening_event Ending_event

BadEN:
UNIT Yogi Summoner Yogi Level(1,Enemy,False) [3,2] [3,2] [Carreau,Verwustung,0x0,0x0] Guard
UNIT 0xB3 Skelett Yogi Level(10,Enemy,True) [0,2] [0,2] [SteelAxe,0x0,0x0,0x0] [0x0,0x3,0x2,0x0]
UNIT 0xB3 Skelett Yogi Level(10,Enemy,True) [6,2] [6,2] [SteelAxe,0x0,0x0,0x0] [0x0,0x3,0x2,0x0]
UNIT 0xB2 Mogall Yogi Level(12,Enemy,True) [3,4] [3,4] [BosesAuge] Guard
UNIT 0xB3 Skelett Yogi Level(7,Enemy,True) [25,13] [25,13] [SteelAxe,HandAxe,Krauter,0x0] [0x0,0x0,0x2A,0x0]
UNIT 0xB5 Wicht Yogi Level(8,Enemy,True) [3,12] [3,12] [SteelBow,0x0,0x0,0x0] [0x0,0x0,0xA,0x0]
UNIT 0xB4 Skelett Yogi Level(8,Enemy,True) [6,12] [6,12] [Panzerbrecher,0x0,0x0,0x0] [0x0,0x3,0x32,0x0]
UNIT 0xB2 Mogall Yogi Level(7,Enemy,True) [8,11] [8,11] [BosesAuge] Guard
UNIT 0xB5 Wicht Yogi Level(6,Enemy,True) [8,13] [8,13] [SteelBow,0x0,0x0,0x0] Guard
UNIT 0xB4 Skelett Yogi Level(10,Enemy,True) [10,12] [10,12] [Schnitter,Krauter,0x0,0x0] [0x3,0x3,0x1,0x20]
UNIT 0xB1 Zombie Yogi Level(6,Enemy,True) [13,11] [13,11] [Leichenklaue] [0x0,0x3,0x2,0x0]
UNIT 0xB1 Zombie Yogi Level(6,Enemy,True) [15,11] [15,11] [Leichenklaue] [0x0,0x3,0x2,0x0]
UNIT 0xB4 Skelett Yogi  Level(10,Enemy,True) [14,2] [14,2] [Schnitter,Krauter,0x0,0x0] [0x0,0x3,0x1,0x20]
UNIT 0xB3 Skelett Yogi Level(6,Enemy,True) [15,1] [15,1] [SteelAxe,0x0,0x0,0x0] [0x0,0x3,0x2,0x40]
UNIT 0xB3 Skelett Yogi Level(6,Enemy,True) [15,3] [15,3] [SteelAxe,0x0,0x0,0x0] [0x0,0x3,0x2,0x0]
UNIT 0xB2 Mogall Yogi Level(8,Enemy,True) [14,9] [14,9] [BosesAuge] Guard
UNIT 0xB4 Skelett Yogi Level(5,Enemy,True) [24,4] [24,4] [SteelSword,Krauter,0x0,0x0] [0x0,0x3,0x9,0x0]
UNIT 0xB3 Skelett Yogi Level(5,Enemy,True) [19,1] [19,1] [SteelAxe,HandAxe,0x0,0x0] [0x0,0x3,0xA,0x0]
UNIT 0xB3 Skelett Yogi  Level(3,Enemy,True) [20,3] [20,3] [SteelAxe,HandAxe,0x0,0x0] [0x0,0x0,0xA,0x0]
UNIT 0xB3 Skelett Yogi Level(6,Enemy,True) [25,3] [25,3] [SteelAxe,HandAxe,0x0,0x0] [0x0,0x3,0xA,0x0]
UNIT 0xB4 Skelett Yogi Level(7,Enemy,True) [23,3] [23,3] [IronSword,0x0,0x0,0x0] [0x0,0x3,0x2,0x0]
UNIT 0xB2 Mogall Yogi Level(6,Enemy,True) [24,8] [24,8] [BosesAuge] Guard
UNIT 0xB5 Wicht Yogi  Level(3,Enemy,True) [24,11] [24,11] [SteelBow,0x0,0x0,0x0] [0x0,0x3,0x2A,0x0]
UNIT 0xB4 Skelett Yogi Level(6,Enemy,True) [9,22] [9,22] [SteelSword,Krauter,0x0,0x0] [0x0,0x0,0x9,0x0]
UNIT 0xB3 Skelett Yogi Level(6,Enemy,True) [23,13] [23,13] [SteelAxe,0x0,0x0,0x0] [0x0,0x0,0xA,0x0]
UNIT 0xB1 Zombie Yogi Level(10,Enemy,True) [6,22] [6,22] [Leichenklaue,0x0,0x0,0x0] [0x0,0x0,0xA,0x0]
UNIT 0xB1 Zombie Yogi Level(5,Enemy,True) [6,24] [6,24] [Leichenklaue,0x0,0x0,0x0] [0x0,0x0,0x2,0x0]
UNIT 0xB3 Skelett Yogi Level(5,Enemy,True) [3,23] [3,23] [SteelAxe,HandAxe,0x0,0x0] [0x0,0x0,0x2,0x40]
UNIT 0xB2 Mogall Yogi Level(5,Enemy,True) [12,22] [12,22] [BosesAuge,0x0,0x0,0x0] [0x0,0x0,0x2,0x0]
UNIT 0xB4 Skelett Yogi Level(3,Enemy,True) [16,21] [16,21] [IronSword,0x0,0x0,0x0] [0x0,0x0,0x2,0x40]
UNIT 0xB4 Skelett Yogi Level(3,Enemy,True) [16,23] [16,23] [SteelSword,0x0,0x0,0x0] [0x0,0x0,0x2,0x0]
UNIT

Beschworen:
UNIT 0xB1 Phantom Yogi Level(5,Enemy,True) [2,2] [2,2] [SteelAxe,HandAxe,0x0,0x0] [0x00,0x00,0x00,0x00]
UNIT 0xB1 Phantom Yogi Level(5,Enemy,True) [3,1] [3,1] [IronAxe,0x0,0x0,0x0] [0x00,0x00,0x00,0x00]
UNIT 0xB1 Phantom Yogi Level(3,Enemy,True) [3,3] [3,3] [KillerAxe,0x0,0x0,0x0] [0x00,0x00,0x00,0x00]
UNIT 0xB1 Phantom Yogi Level(3,Enemy,True) [4,2] [4,2] [SteelAxe,0x0,0x0,0x0] [0x00,0x00,0x00,0x00]
UNIT

GoodEN:
UNIT Roy Lord 0x00 Level(1,Ally,False) [23,23] [23,23] [IronSword,Heilmittel] [0x00,0x00,0x00,0x00]
UNIT Gwyn Desateur 0x00 Level(1,Ally,False) [24,22] [24,22] [IronSword,Heilmittel] [0x00,0x00,0x00,0x00]
UNIT Sephie Himmelsritter 0x00 Level(1,Ally,False) [24,24] [24,24] [ManiKatti,Heilmittel] [0x00,0x00,0x00,0x00]
UNIT Yutis WyvernKnight_F 0x00 Level(1,Ally,False) [22,22] [22,22] [IronSpear,Heilmittel] [0x00,0x00,0x00,0x00]
UNIT Wolt Archer 0x00 Level(1,Ally,False) [22,24] [22,24] [IronBow,Heilmittel] [0x00,0x00,0x00,0x00]
UNIT Nina Heiler 0x00 Level(1,Ally,False) [25,25] [25,25] [Blitz] [0x00,0x00,0x00,0x00]
UNIT Aurora 0x40 0x00 Level(1,Ally,False) [23,21] [23,21] [IronAxe,SteelAxe] [0x00,0x00,0x00,0x00]
UNIT Basan Schwertritter 0x00 Level(3,Ally,False) [23,25] [23,25] [IronSpear,Heilmittel] [0x00,0x00,0x00,0x00]
UNIT Mistral Windmagier 0x00 Level(2,Ally,False) [21,25] [21,25] [IronAxe] [0x00,0x00,0x00,0x00]
UNIT Sai Dieb 0x00 Level(1,Ally,False) [21,23] [21,23] [Eisendolch,Kard] [0x00,0x00,0x00,0x00]
UNIT

Faire:
UNIT Faiya Feuermagierin 0x00 Level(7,Ally,False) [25,23] [25,23] [Feuer, Elfenfeuer] Guard
UNIT

label19:
UNIT BiranSoldat Lord 0x0 0x91 [4,5] [4,5] [0x1F,0x28,0x26,0x2A] [0x0,0x0,0x0,0x0]
UNIT BiranMagier 0x40 0x0 0x61 [6,5] [6,5] [0xA,0x1,0x5,0x0] [0x0,0x0,0x0,0x0]
UNIT BiranSchutze 0x53 0x0 0x18 [3,4] [3,4] [0x6B,0x0,0x0,0x0] [0x0,0x0,0x0,0x0]
UNIT

Turn_events:
//OpeningTurnEvent(Opening_event)
TURN 0x0 label15 [1,0] 0x0 0x0
TURN 0x0 Gerade [2,0] 0x8 0x0
TURN 0x0 Gerade [6,0] 0x8 0x0
TURN 0x0 Gerade [10,0] 0x8 0x0
TURN 0x0 Gerade [14,0] 0x8 0x0
TURN 0x0 Gerade [18,0] 0x8 0x0
TURN 0x0 Gerade [22,0] 0x8 0x0
TURN 0x0 Gerade [26,0] 0x8 0x0
TURN 0x0 Gerade [30,0] 0x8 0x0
TURN 0x0 Gerade [34,0] 0x8 0x0
TURN 0x0 Gerade [38,0] 0x8 0x0
TURN 0x0 Gerade [32,0] 0x8 0x0
TURN 0x0 Gerade [36,0] 0x8 0x0
END_MAIN

Character_events:
END_MAIN

Location_events:
END_MAIN

Misc_events:
CauseGameOverIfLordDies
END_MAIN

Opening_event:
CMOF
UNCM Roy 0x00
ENUN
UNCM Sephie 0x00
ENUN
FADICG 0
HIDEMAP
SHCG 0x33
FADUCG 2
SHOWMAP
TEX8 0x5DA [136,12]
STAL 100
RETB
STAL 32
FADI 4
HIDEMAP
ASMC 0x7A95D
BACG 0x10
FADU 4
SHOWMAP
TEX1 0xA0D
MURE 5
STAL 5
MUS1 0x0024
MORETEXT 0xA0E
MURE 5
STAL 5
MUS1 0x003D
MORETEXT 0xA0F
ENUN
FADI 16
HIDEMAP
ENDB

Gerade:
CMOF
LOU1 Beschworen
ENUN
CMON
ENDA


label15:
MUEN 4
ASMC 0x7A8B9
STAL 32
FADU 16
SHOWMAP
LOMA 0x3E [0,0]
LOU1 label19
ENUN
STAL 64
TEX8 0x5DB [136,0]
STAL 120
RETB
STAL 32
CURF BiranSoldat
ENUN
STAL 16
TEX1 0xA10
REMA
MOVE BiranSoldat [4,2]
STAL 4
ENUN
DISA BiranSoldat
MOVE BiranMagier [4,2]
STAL 4
MOVE BiranSchutze [4,2]
STAL 6
DISA BiranMagier
DISA BiranSchutze
ENUN
STAL 5
FADI 10 //obligatory fades
HIDEMAP
ASMC 0x7A8B9
LOMA 0x11 [24,24]
LOU1 BadEN
LOU1 Faire
ENUN
BACG 0x55 //displays the background
MUS1 0x3A8
ENUN
FADU 10
ENUN
TEX1 0xA11 //displays the text
STAL 15
MORETEXT 0xA12
REMA
ENDA

Ending_event:
//MoveToChapter(NextChapter)
ENDA

TrapData:
ENDTRAP
   
MESSAGE Events end at offset currentOffset
//The map for this chapter is at offset: ????????

It’s a bit messy so I hope some one gets through it.

You aren’t loading the GoodEN in the opening event, you must load them somewhere, in most cases they’re loaded before the event ends.
And the BadEN also are loaded in the opening event.

Hm, I tried to load them at the end of the opening event, but nothing changes.

I always put the unit blocks after the Trap/Ballista data, so try moving the “Beschworen”, “Faire” and “label19” unit blocks after the “TrapData” segment.

Looks like it was the LOMAs fault. After I took them out everything worked just fine.