-
Active Member
How to check if skill is using Nth rune?
Hello, I made some tests checking skill.Rune value.
All skills were set to first rune. Yet results are different
Code:
skill.SnoPower.NameEnglish skill.Rune
Evasive Fire 0
Multishot 3
Companion 0
Vault 2
Vengeance 2
Sentry 2
According to my logic they should all be 0
Why are they different ? What's happening here ?
How I can tell if player is using for example 3rd rune of Sentry skill?
-
Contributor
Unfortunately, the runes number does not reflect its logical position.
I use RuneNameEnglish, for third rune of Sentry You can use:
Code:
var skillRune = Hud.Game.Me.Powers.UsedDemonHunterPowers.Sentry.RuneNameEnglish;
if (string.Equals(skillRune, "Chain of Torment"))
{
do something;
}
If I helped you, click "Give Thanks!"
-
Post Thanks / Like - 1 Thanks
Arkahr (1 members gave Thanks to MrOne for this useful post)
-
Active Member
Thanks, I gave up at some point at finding meaning behind skill.Rune property. And went way, that you are pointing.