• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

What's the Code to disable the Red Hero Ability?

Status
Not open for further replies.
Level 5
Joined
Mar 18, 2023
Messages
52
Hi. I want to disable the upgrading Hero abilities but I don't know the specific raw code for it. If anyone has it and can provide it for me, I'll appreciate it very much. Thank you ahead of time!
 

Attachments

  • hero ability.png
    hero ability.png
    6.8 KB · Views: 4
Level 21
Joined
Mar 16, 2008
Messages
959
I think the problem is if a hero has all its abilities for its level but still an unlearned ability at a higher level, then those ability points will still display. If that makes sense?
 
Last edited:
Level 45
Joined
Feb 27, 2007
Messages
5,578
And for extra context, this is for something else. I'm just trying to test something is all!
As I said in the first reply...
Convert all of the abilities into unit abilities instead of hero abilities. If a unit has no hero abilities then that button will not appear.
You do have to manually remove them from the heroes' ability lists and re-add them as unit abilities. You can also constantly set available hero skill points to 0, but this requires dealing with a couple edge cases:
  • Events
    • Time - Elapsed game-time is 0.10 seconds
  • Conditions
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units in (Playable Map Area) matching (((Matching Unit) is a Hero) equal to True)) and do (Actions)
      • Loop - Actions
        • Hero - Modify unspent skill points of (Picked Unit): Set to 0 points
  • Events
    • Unit - A unit enters (Playable map area)
    • Unit - A unit Gains a level
  • Conditions
    • ((Triggering Unit) is a Hero) equal to True
  • Actions
    • Hero - Modify unspent skill points of (Triggering unit): Set to 0 points
 
Level 5
Joined
Mar 18, 2023
Messages
52
I appreciate the suggestions and those who took time giving me an alternate solution! But the most important thing I need is the actual raw code of the Hero Ability. I was able to find Aatk (attack) and Amov (move) searching around, but I still need the Hero Ability one. Disabling is part of it but I need the code nonetheless.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
I appreciate the suggestions and those who took time giving me an alternate solution! But the most important thing I need is the actual raw code of the Hero Ability. I was able to find Aatk (attack) and Amov (move) searching around, but I still need the Hero Ability one. Disabling is part of it but I need the code nonetheless.
Rawcode: AHer
Y'all got to start googling this stuff!

Also, telling us what you actually want to do with this rawcode could go a very long way in getting a good solution. We might know a better alternative to what you're trying to do.
 
Level 5
Joined
Mar 18, 2023
Messages
52
Rawcode: AHer
Y'all got to start googling this stuff!

Also, telling us what you actually want to do with this rawcode could go a very long way in getting a good solution. We might know a better alternative to what you're trying to do.
Thank you Uncle! I did Google for it and couldn't find it. Either was typing in the wrong terms or it didn't show unfortunately.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
For any future questions you may post here, please consider what Uncle has said multiple times in this thread. Nobody is going to steal your ideas, and you will get better/properly-directed information and assistance.
Also, telling us what you actually want to do with this rawcode could go a very long way in getting a good solution. We might know a better alternative to what you're trying to do.
 
Status
Not open for further replies.
Top