What i want is to run a trigger when an ability gets leveled up (by a learn ability) and i want the ID of the levelling ability in a string.
I could make the trigger event when a lern ability gets used, but then how can i get the ID of the ability? (not of the learn ability, but of the ability that has been learned / leveled up)
You can check the abilities of the unit using the level up ability. If you want to return the ability's ID as a string you might have to use your own function or custom script. There is one alternative, however: You can write the ability's ID in the ability's prefix or suffix field and use Catalog Field Value Get to retrieve it in triggers.
edit: seems like prefix and suffix cant be adressed by catalog functions. But i might aswell just use the name.
They definitely can be read by them. Just make sure to change the text key and not the text value, since you cannot use the text for anything; you want the string used as key for the text.
What i want is to run a trigger when an ability gets leveled up (by a learn ability) and i want the ID of the levelling ability in a string. I could make the trigger event when a lern ability gets used, but then how can i get the ID of the ability? (not of the learn ability, but of the ability that has been learned / leveled up)
You can check the abilities of the unit using the level up ability. If you want to return the ability's ID as a string you might have to use your own function or custom script. There is one alternative, however: You can write the ability's ID in the ability's prefix or suffix field and use Catalog Field Value Get to retrieve it in triggers.
Hope that helps.
@BasharTeg: Go
the prefix suffix thing is really a good idea, i think im gonna try that, thx
edit: seems like prefix and suffix cant be adressed by catalog functions. But i might aswell just use the name.
They definitely can be read by them. Just make sure to change the text key and not the text value, since you cannot use the text for anything; you want the string used as key for the text.
ok, i see, thx. But ill stick with the ID now, since that one is even easier to read.