Best way to track hero ability level

WildTurkey

Previously known as giv_me_rep
Reaction score
88
So I want to track ability levels of heros throughout the game. Would be easy if the hero abilities were constant each game however I am going for a construct your own hero approach.

I made variables for hero ability [ability number[player number]] which are set as the abilities when player selected.

My thoughts were I could run a trigger as follows (WE not installed on this computer)

Event: Unit Learns a skill
Actions:
for loop integer a (1-4)
If/then/else
If: Learned Hero Skill = hero ability[integer a[player number (owner of triggering unit)]]
Then: Set HeroAbilityLevel[integer a[player number (owner of triggering unit)]] = current level of hero ability [integer a[player number (owner of triggering unit)]] + 1

however the hero skill comparison only works for specific abilities and will not take variables as comparisons.

Got some weird random shit going on in this map with swapping abilities between players and stuff (as the map is just a fun map for friends to play on whilst I am in aus) which makes me want a system that is flexible.

Cheers
 

Accname

2D-Graphics enthusiast
Reaction score
1,461
I dont think I understand your question.
Why would you want to "track" the level of abilities? You can always just query the level with "Level of Ability for Unit".
 

WildTurkey

Previously known as giv_me_rep
Reaction score
88
I may have been doing this too long. That didnt even occur to me. Cheers

EDIT: I remember why and it wouldnt work this way but I decided to persue an easier route
 
Last edited:
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Saturday!
    +1
  • The Helper The Helper:
    The forum software says we have 554 members online now. We did not have that many unique visitors the whole day today. Too many bots and the disconnect between the forum counts and the stats.
  • Varine Varine:
    Currently it says 413 guests and 2 members
    +1
  • Varine Varine:
    Aww
  • The Helper The Helper:
    That is going to be mostly bots
  • The Helper The Helper:
    527 (members: 2, guests: 525)
  • The Helper The Helper:
    Happy Saturday!
    +1
  • V-SNES V-SNES:
    Happy Saturday!
    +1
  • The Helper The Helper:
    622 (members: 2, guests: 620)
  • The Helper The Helper:
    666 (members: 4, guests: 662) :)
    +1
  • Varine Varine:
    609 (members: 4, guests: 605)
  • The Helper The Helper:
    I was posting that last one because the 666 users online :)
    +1
  • The Helper The Helper:
    Happy Wednesday Night!
    +1
  • The Helper The Helper:
    Happy Thursday!
    +1
  • The Helper The Helper:
    Marathon watching The Expanse!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    leaving for the weekend in San Antonio will be gone until Sunday afternoon
    +1
  • The Helper The Helper:
    and I am back :)
    +1
  • The Helper The Helper:
    Happy Tuesday!
    +1

    The Helper Discord

    Members online

    No members online now.

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top