What do you mean by "get them"? Do you want to display it on the screen, use them as conditions, display it in a tooltip?
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Is there a way to get the name and level of the behavior associated with an active ability using triggers?
Your topic title contradicts with this question. Getting an ability level is possible, getting a level of a behavior is not, because behaviors do not have any levels. You can get the stack count of a behavior, if thats what you need. Getting the name of a behavior associated to an ability should be possible by using the CatalogFieldValueGet - function.
I expanded on this a bit for my game. I wanted the mana shield to only absorb 90% of incoming damage so this is what i did:
First, i added a validator to the mana shield skill in the data editor so that the skill would be automatically turned off when you run out of energy (see image below).
Second, i changed the value called modify fraction found in behavior->buff->combat:damage response to 0.1.
Third, I changed the trigger a little bit (see image below).
This allows me to make multiple levels of the ability - each with a different absorption%.
Can someone help me find a way to change the damage ratio taken by the mana shield based on the level of the ability? each level will have a different ratio.
That seems to be exactly what i needed. Thank you for your help.
Is there a way to get the name and level of the behavior associated with an active ability using triggers?
Your topic title contradicts with this question. Getting an ability level is possible, getting a level of a behavior is not, because behaviors do not have any levels. You can get the stack count of a behavior, if thats what you need. Getting the name of a behavior associated to an ability should be possible by using the CatalogFieldValueGet - function.
I'm trying to do this:
That seems to be exactly what i needed. Thank you for your help.
@KillerAmoebaswat: Go
I'm almost positive that there is a trigger function called something like "ability level". Have you looked for that?
@zeldarules28: Go
I don't think that one exists. i might be searching for it incorrectly though.
edit: AH OKAY! it returns an integer! i found it! Thank you!
@KillerAmoebaswat: Go
It does exist, I use it regularly ;)
It is called Current Level for Unit Ability - (or UnitAbilityGetLevel() )
Note, that it returns Level-1, so it will return 0 for ability level 1 as well as when you haven't skilled the ability yet.
OK i got it! you can see the trigger below.
the function called (nanites) getDamageRatio is just a switch that returns a real value between 0 and 4 depending on the level of the ability.
Thank you for your help. If you think of a way i can improve this you can let me know.
note- idk why my leftover damage comes out negative. edit: ok, nvm it's because i put modify variable when i meant to put set variable.