Hello! I am trying to get the count of abilities learned by a combatant in the player start turn node in a combat.
I am using select Ability node to store all abilities. Trying to use the Change Variable node to set abilityListCount as the Int List Count of allAbilities, and then output the integer to the Unity Console.
I keep getting an output of 0, when of course the combatant has more than 0 abilities. Is there something I am missing? Thank you for your support!
https://imgur.com/a/JdBZQmQ
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
The next issue I am running into is I am trying to check an ability variable from one of these abilities in the list. I am testing this by changing a variable to the selected data list index 0 and another one for 1. But they both return a value of zero, when I have the ability variable set to 1 and 2 respectively. Any insight is appreciated! Still learning a lot :)
https://imgur.com/a/AxRzZJd
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
It doesn't seem like I can specify which Ability out of the multiple I have selected to check with the Selected Data origin. Am I missing something?
The list that is created is the abilities themselves.
You want to use "Select Selected Data" to select one Ability from the list of abilities in your selected data. It's best to use "First" and remove the ability as you iterate through the selected data. If you don't want to lose the Select Data list, you can copy the list with Select Selected Data "All" and just use that copy to iterate through.
That's how I use it.
Abilities stored in selected data are just selected data - their variables can be accessed via the Selected Data variable origin :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!