Age of Wonders III

Age of Wonders III

Community Made Maps & Campaigns
Welcome to the Age of Wonder III Workshop. The place on Steam to get and share handcrafted scenarios, epic campaigns and mods that implement little tweaks to full game overhauls.
Learn More
Spawn custom stack of units on top of Leader?
So yeah, conditional army markers (weak, medium, strong, etc.) work in this regard, but is it possible to spawn a custom stack of units on top of a Leader?

When I try to do this with SpawnGroupSpawnAtPosition, the custom stack is forced to a hex adjacent to the Leader.

My guess at what's happening: At start of game, Leader is spawned with its own stackAlias before anything else, and therefore custom stack (with its own stackAlias) cannot merge.

I tried other functions, like OnPostActivate, thinking maybe if I can spawn the custom stack FIRST, then the Leader might automatically merge with it - as we see in conditional army markers (although I don't even really know how conditional army markers work under-the-hood). This didn't work.

Any way to get around this?
Last edited by Haste Berry Pie; 3 Oct, 2022 @ 4:40pm
< >
Showing 1-4 of 4 comments
Gladen 16 3 Oct, 2022 @ 9:36pm 
Why not spawn individual units on top of the leader? Or use the leader arrow as a marker to spawn units on
Haste Berry Pie 4 Oct, 2022 @ 9:14pm 
Your suggestions helped me think outside the box and see something I had missed - that I've been trying to do this on top of a city.

You actually can spawn a custom stack on top of leader if it's out in the open. So, that's no longer an issue.

Problem now is...spawning units, on top of leader, ON TOP OF CITY.

Seems it's not working because cities have a default defender setting, where you set the strength of the defenders spawn. You can also disable them, which is what I've been doing, so I could spawn the custom stack. But this obviously doesn't work.

I tried all sorts of janky ideas to get around this today, but no luck. I'll try again tomorrow, but it might be impossible to do this without using conditional army stacks.
Haste Berry Pie 6 Oct, 2022 @ 5:38pm 
I gave up lol. I guess we're forced to use conditional stacks to spawn units on central city hex, which is a lot more complicated and can be a total nightmare depending on what you're trying to do.

I'm just gonna spawn the units nearby.
Gladen 16 6 Oct, 2022 @ 9:18pm 
I have not got the time myself to attempt any solution. I believe it's possible. But the script system is a grief from time to time.
< >
Showing 1-4 of 4 comments
Per page: 1530 50