there is "custom value of unit" in triggers, works without data. you can't just add new data entries to a unit.
Custom value of unit seems to be to give a value to each individual unit, what is not really what i need.
For my easymod, I want to create « auto control groups » : the value of the control group for each type of unit would be set in table, and when a unit is created, a trigger will search in the table the default control group corresponding to the unit type and add the new unit in the corresponding control group.
What do you think is the best way to do so ?
In the trigger module, for actions categories, there are a « user data » and a « data table » categories.
For the user data category, the tooltip say : « User data is defined in the Data module. Only works for fields marked as modifiable. » That is why i thought that i would be able to add a data to units in the data module, and modify it dynamically.