It definitely seems that the label is stored in the registry
Code:
monitor_event FactionTurnStart FactionType spain
and I_CharacterExists client039
and I_TurnNumber > 3
kill_character client039
historic_event world_is_round
terminate_monitor
end_monitor
monitor_event BuildingCompleted SettlementBuildingFinished = port
and SettlementName Leon
;if I_CharacterExists client039
; kill_character client039
;end_if
log always READ
if I_SettlementOwner Leon = spain
spawn_army
faction spain
character random_name, named character, age 36, x 82, y 93, label client039
traits PoliticsSkill 1
unit SE Bodyguard exp 1 armour 0 weapon_lvl 0
end
end_if
end_monitor
Code:
01:14:27.415 [system.io] [warning] open: mods/Bare_Geomod/data/world/maps/base/water_surface.tga.dds is missing
01:15:18.869 [game.script] [always] READ
01:15:20.105 [data.missing] [warning] Cannot find the portrait path: data/ui/eastern_european/portraits/portraits/young/rogues/000.tga, using the default culture path if it exists
Code:
01:17:42.046 [system.io] [warning] open: mods/Bare_Geomod/data/world/maps/campaign/imperial_campaign/radar_map_background.tga is missing
01:17:49.217 [game.script] [always] READ
01:17:49.217 [game.script] [error] Script execution error for <spawn_army>, at line 67, in mods/Bare_Geomod/data/world/maps/campaign/imperial_campaign/campaign_script.txt:
Character with label random_name could not be created, label alreay exists!
01:17:50.343 [data.missing] [warning] Cannot find the portrait path: data/ui/eastern_european/portraits/portraits/young/rogues/000.tga, using the default culture path if it exists
Code:
01:18:17.944 [data.missing] [warning] Cannot find the portrait path: data/ui/eastern_european/portraits/portraits/young/princesses/039.tga, using the default culture path if it exists
01:18:22.730 [game.script] [always] READ
01:18:22.730 [game.script] [error] Script execution error for <spawn_army>, at line 67, in mods/Bare_Geomod/data/world/maps/campaign/imperial_campaign/campaign_script.txt:
Character with label random_name could not be created, label alreay exists!
01:18:35.524 [data.missing] [warning] Cannot find the portrait path: data/ui/eastern_european/portraits/portraits/young/rogues/000.tga, using the default culture path if it exists