Assigning Bonus units/GiveUnit

Moderator: AlvaroSousa

Post Reply
Lapwing2
Posts: 2
Joined: Sun Oct 10, 2021 1:20 pm

Assigning Bonus units/GiveUnit

Post by Lapwing2 »

I’m trying to give a bonus unit to the human player on my newly created map.
I’ve tried using this script firstly in the Events file, then in the GiveUnit file - neither seemed to work. I’m obviously not understanding something that’s for sure, but what?

//Extra Panzers
$GiveUnit
if_Date=09/15/1939
actionCountry=6
lifespan=tillTrigger
unitID=10
advancement=2
xyArea=8,14
$End

Many thanks.
User avatar
stjeand
Posts: 2702
Joined: Sun Jan 10, 2021 1:14 pm
Location: Aurora, NC

RE: Assigning Bonus units/GiveUnit

Post by stjeand »

Honestly the data looks okay...

xyArea does not appear to be a hex where Germany can put a unit so not sure if will work.
Lapwing2
Posts: 2
Joined: Sun Oct 10, 2021 1:20 pm

RE: Assigning Bonus units/GiveUnit

Post by Lapwing2 »

Now solved. My problem was I hadn't pressed the load all scripts button at the save screen. Nor had I a loop file or victory conditions file(these seem to be the minimum for a working game).
Post Reply

Return to “MODS and Scenarios”