inferno8 / wesnoth-Era_of_Magic

add-on for Battle for Wesnoth
GNU General Public License v2.0
10 stars 4 forks source link

making better use of the help system #27

Closed sevu closed 1 year ago

sevu commented 5 years ago

If you have three abilities which do the same, but differ slightly, let's say the hit and run ability, it will be listed thrice in the help. The general rule is, an entry in the help is created for each ability/trait id.

What the ability actually does has nothing to do with the help entry, abilities definitions are inserted with maros into the unit definition, and can thus be tailored for each unit.

I found a good way how to use this approach in WoL and EoC In this example, all elementals have the same ability – they get on their terrain +5 hp: https://github.com/ProditorMagnus/Ageless-for-1-14/blob/master/data/general_data/abilities/resurgence.cfg

One gives the abilities the same id, name and a description which suits all, but gives it depending on the used macro a different implementation.

In some way the mainline's leadership ability did sth. similar until 1.12, by giving different implementations in the macro, and filtering by level which one is active.

It would be good to crowd the help less.

ProditorMagnus commented 1 year ago

I think this would make help system less useful. I rely on help by clicking on it, instead of searching for ability from list of abilities.