I am planning on changing the modification I am currently using for my Reign of the Lords add-on. Currently in SP I am using [advancefrom] but that is unwieldy and bad practice so I want to change to use events instead.

But the main disadvantage that using events has is that it does not display unit upgrades in the help menu. So my first question: is there anyway to update the help menu?

Secondly I am wondering what the best implementation for would be for the events?

Currently I am considering a pre advance event that would check if the unit has any alternate advancements and if so modify them to display these alternate advancements:

However, I thought to ask if there are any unforeseen side effects of that type of event? Also I wanted to ask if there is any better method of implementing?

A few people have mentioned using unit placed events but unfortunately if a spearman is placed and then the spearman advances to a javelineer the javelineer doesn't count as being 'placed' and therefore is not modified. However, unit placed is more optimal because it modifies units immediately rather than after the fact which allows the player to see that they can advance (through the blue XP bar).

I also considered a combination of unit placed,post advance event that would then account for all units which are either placed or advanced into. However, this is twice as many event conditions that need to be processed for every unit (and there are about 100).

Would this number of events be a problem or negatively effect campaigns?

Thank you for your thoughts! Any ideas or suggestions would be welcome as I work through this idea and hopefully reach a better solution than [advancefrom].

If you use lua you can modify the units stats directly by settign arributes instead of [midify_unit]. modify_unit also has the disadvantage that the effect will be lost when the unit is rebuild, for example when remove_object is called, this again can be fiuxed with a custom lua effect, then you also won't need the post_advance event anymore, untested code:

Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.

Unfortunately the code doesn't seem to work on leaders. Or other units who are placed at the start. Is that expected behavior or have I messed up something?

EDIT: No not all units that are placed at the start of the scenario don't work so it must be a mistake I have made. It is seemingly unpredictable behavior but it appears units that are placed at the beginning when the map is created often do not advance properly. I will look into it further and post.

Also note that this [lua] tag should not go into an [event] but instead should be directly placed under [era]/[scenario] etc. basicially where you'd also place events.

Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.

Okay thank you! I actually am not using an era or scenario but instead a modification. Can I put it into the modification tag? Currently it is in an event inside a modification which may be the cause if the error.

The reason I ask is because I was wondering if it is possible to define some of my advancements only if a certain campaign is running. But if that is not possible then I won't worry about it because it is not too critical.

It's possible to do the samewith luas 'if'. but it requires some knowledge about the lua programming language. (variabe scope, how to add element to tables etc)

Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.