Possibility to spawn a unit with hero attached to it during scenario?

A forum to discuss custom scenarios, campaigns and modding in general.

Moderator: Panzer Corps 2 Moderators

Post Reply
VirgilInTheSKY
Major - Jagdpanther
Major - Jagdpanther
Posts: 1034
Joined: Wed Dec 18, 2019 4:26 pm

Possibility to spawn a unit with hero attached to it during scenario?

Post by VirgilInTheSKY »

I think I had saw a topic somewhere mentioning that the author succeeded in doing that, but now I can't find the report when I want to create that behaviour for something I'm trying to work on myself.

I have checked every lua script I can find, but don't think there is one official scenario with this behaviour.
Removing a hero is possible and already done in Operation Mercury from AO 41, as we all know. Now I'd like to have one that allows you to assign one during scenario, so some kind of "upgrading a hero" behaviour can be achieved: you remove the older one, then create a new hero with same name but different traits to make it looks like an "upgrade". What's more, you can even make him arriving with his brand new equipment, as units already deployed on the battlefield cannot be assigned with a stock hero during a scenario.
Grondel
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1955
Joined: Mon Aug 04, 2014 10:07 pm

Re: Possibility to spawn a unit with hero attached to it during scenario?

Post by Grondel »

check PC1 remake mod, pretty sure first scenario of 1939 has a unit with hero in it spawning.
removing a unit and spawning a new one with a hero in it can be done as well.
even removing a hero and replacing him witha new one can be done if the hero is unique enough.

if u need more info feel free to ask.

sers,
Thomas
VirgilInTheSKY
Major - Jagdpanther
Major - Jagdpanther
Posts: 1034
Joined: Wed Dec 18, 2019 4:26 pm

Re: Possibility to spawn a unit with hero attached to it during scenario?

Post by VirgilInTheSKY »

Grondel wrote: Mon Oct 10, 2022 1:14 pm check PC1 remake mod, pretty sure first scenario of 1939 has a unit with hero in it spawning.
removing a unit and spawning a new one with a hero in it can be done as well.
even removing a hero and replacing him witha new one can be done if the hero is unique enough.

if u need more info feel free to ask.

sers,
Thomas
The PanzerCorps1-GrandCampaign mod in Steam Workshop? Gonna check that then, thanks.

Edit: got the script, thanks for helping!
VirgilInTheSKY
Major - Jagdpanther
Major - Jagdpanther
Posts: 1034
Joined: Wed Dec 18, 2019 4:26 pm

Re: Possibility to spawn a unit with hero attached to it during scenario?

Post by VirgilInTheSKY »

Grondel wrote: Mon Oct 10, 2022 1:14 pm check PC1 remake mod, pretty sure first scenario of 1939 has a unit with hero in it spawning.
removing a unit and spawning a new one with a hero in it can be done as well.
even removing a hero and replacing him witha new one can be done if the hero is unique enough.

if u need more info feel free to ask.

sers,
Thomas
Another question, have you experimented with the max number of traits a hero can have? I don't know if I would use that idea in the end, but I think it does not hurt to know the limit first before taking actions.
Grondel
Brigadier-General - 15 cm Nblwf 41
Brigadier-General - 15 cm Nblwf 41
Posts: 1955
Joined: Mon Aug 04, 2014 10:07 pm

Re: Possibility to spawn a unit with hero attached to it during scenario?

Post by Grondel »

there is no limit(i know of), but beyond 5 traits the hero-chart starts looking crowded

sers,
Thomas
VirgilInTheSKY
Major - Jagdpanther
Major - Jagdpanther
Posts: 1034
Joined: Wed Dec 18, 2019 4:26 pm

Re: Possibility to spawn a unit with hero attached to it during scenario?

Post by VirgilInTheSKY »

Grondel wrote: Tue Oct 11, 2022 12:37 pm there is no limit(i know of), but beyond 5 traits the hero-chart starts looking crowded

sers,
Thomas
Thanks for the answer.
Post Reply

Return to “Panzer Corps 2 Scenario Design”