Page 1 of 1

creating units by event

Posted: Fri Feb 18, 2022 11:07 am
by Offworlder
I'm in the process of creating an event whereby some troops will be created on a certain date. Normally its no problem but I would like to have these units initially weak and would need reinforcements to gain full strength. What I mean is not units with missing elements which would need complete elements but rather that such units will have all the elements making up the unit on the map but with each element being weak and requiring replacements. Is it possible?

Re: creating units by event

Posted: Fri Feb 18, 2022 3:13 pm
by Bohémond
You can use the SetHealth scriptcommand

https://www.leqg.org/doc/age/www.ageod.net/agewiki/SetHealth.html

If I recall correctly, you have to include it before the group creation block .

Re: creating units by event

Posted: Fri Feb 18, 2022 4:15 pm
by Offworlder
Thanks!

So its not every unit individually?

Re: creating units by event

Posted: Fri Feb 18, 2022 5:18 pm
by Offworlder
Hi Bohemond. Made a quick test and it worked like a charm!

Thanks again!

Re: creating units by event

Posted: Fri Feb 18, 2022 7:09 pm
by Bohémond
You are welcome.
Enjoy the mod !