(You need the functions "Convert game link to String" and "Ability of ability command")
However, since the game link ist just the ID of the ability we need to read out the "name" field of the ability in the data editor, we can use catalogs for this:
(The function is called "Catalog field value get")
This is still not the name of the ablity, just the path to the text that stores it. This is smth like "Abil/Name/id".
In order to read out the real name of the ability we need one more line:
abilityname=(Gametextforabilitynamepath)<Text>
The "Convert game text" function takes a path as string and returnes the linked text. In this case: The ability name.
To make life easier, id recommend you to write a small function for this, so you dont need to do all this steps again if you want to read out another name:
How to get the Name of the triggering ability ?
@JimyStyles: Go
After some testing it turned out that its a little more complex than expected. :)
At first, you need to get the game link of the triggering ability as string (we need this to read out the name field with a catalog function):
(You need the functions "Convert game link to String" and "Ability of ability command") However, since the game link ist just the ID of the ability we need to read out the "name" field of the ability in the data editor, we can use catalogs for this:
(The function is called "Catalog field value get") This is still not the name of the ablity, just the path to the text that stores it. This is smth like "Abil/Name/
id
". In order to read out the real name of the ability we need one more line:The "Convert game text" function takes a path as string and returnes the linked text. In this case: The ability name.
Now we can display the name to the player:
To make life easier, id recommend you to write a small function for this, so you dont need to do all this steps again if you want to read out another name:
thx man, really nice work