Page 1 of 1
Stock Campaign and CreateHero
Posted: Wed Jul 16, 2025 8:07 pm
by charge62
In AO, I've had no problems creating custom heroes.
I've just started trying in the stock campaign and I've run into a snag. With Battleaxe and Crusader the script looks good and throws out no errors. However the heroes don't appear.
I think the problem has something to do with the existing .lua files and how they interact with the scenario.
Has anyone else run into this?
Is there a solution?
Thank you.
Re: Stock Campaign and CreateHero
Posted: Thu Jul 17, 2025 8:11 am
by Grondel
charge62 wrote: ↑Wed Jul 16, 2025 8:07 pm
In AO, I've had no problems creating custom heroes.
I've just started trying in the stock campaign and I've run into a snag. With Battleaxe and Crusader the script looks good and throws out no errors. However the heroes don't appear.
I think the problem has something to do with the existing .lua files and how they interact with the scenario.
Has anyone else run into this?
Is there a solution?
Thank you.
Without looking at the scenarios i would asume that in both the player goes second, turning him from player 0 to player 1.
u need to adjust ur scripts to that.
sers,
Thomas
Re: Stock Campaign and CreateHero
Posted: Thu Jul 17, 2025 10:02 pm
by charge62
I didn't think of that. Thanks.
Re: Stock Campaign and CreateHero
Posted: Mon Aug 04, 2025 7:06 pm
by scorehouse
did it work?
Re: Stock Campaign and CreateHero
Posted: Tue Aug 05, 2025 4:05 pm
by charge62
Yes, it worked.
Original code is,
local action = world:MakeNewHeroAction(0, hero)
Change the 0 to 1
local action = world:MakeNewHeroAction(1, hero)
Re: Stock Campaign and CreateHero
Posted: Wed Aug 06, 2025 8:57 pm
by scorehouse
man I wish I knew how to do that. I've never learned how to Mod. but after doing that, you can attach 3/4 etc. hero traits to one Hero? does the Hero have to come with a unit like a tank, Stuka. etc.?
Re: Stock Campaign and CreateHero
Posted: Thu Aug 07, 2025 10:15 am
by Grondel
scorehouse wrote: ↑Wed Aug 06, 2025 8:57 pm
but after doing that, you can attach 3/4 etc. hero traits to one Hero?
The number is not limited, but a hero with 10 traits looks cluttered. 6 atributes, including the unit restrictions, is max that still looks good, but in theory u can have a hero with all possible traits at once.
scorehouse wrote: ↑Wed Aug 06, 2025 8:57 pm
does the Hero have to come with a unit like a tank, Stuka. etc.?
No.
sers,
Thomas
Re: Stock Campaign and CreateHero
Posted: Thu Aug 07, 2025 10:37 am
by scorehouse
need a custom Hero Mod package like Killer Team. is there a tutorial about how to Mod PC2?
Re: Stock Campaign and CreateHero
Posted: Thu Aug 07, 2025 3:10 pm
by Grondel
scorehouse wrote: ↑Thu Aug 07, 2025 10:37 am
need a custom Hero Mod package like Killer Team. is there a tutorial about how to Mod PC2?
None that will get u there. check the stickies in the modding area for some input, but it´s very rudimentary.
sers,
Thomas
Re: Stock Campaign and CreateHero
Posted: Thu Aug 07, 2025 7:13 pm
by scorehouse
thanks