• 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.

Hidden ability variables

Level 3
Joined
Jul 5, 2022
Messages
15
Hi everyone. Searched through the forum but could not find related topic.

The problem is: there are hidden variables inside some abilities that you can't edit through GUI, and since you can't see the variable name, you can't edit it with triggers either.

As an example there is ability "Incite Unholy Frenzy <Auuf>" with missing DataA1 and DataB1 variables in GUI, but they do present and work in-game:
w3_Ability_Issue.png

I've met some in other abilities as well (can't recall exact abilities, but it's not a single occasion).

Is there any way to show/edit them via GUI or triggers? Am I missing something?

Upd: found another ability with this bug (?): "Incinerate (Arrow) <ANia>" is missing DataA1/B1 as well. But the same "free" version of ability <ANic> has those Data variables where they should be.
 
Last edited:
Level 13
Joined
Feb 5, 2018
Messages
567
It is not a variable. It's a shortcut for the game to access data for the spell. If you edit the data for the spell in the OE (Object Editor) you must reference the data with a custom code after that.

If you want to modify these values trough triggers you can change the actual spell tooltip and/or description for the caster/player in 1.31+ editor.

Variables are only created in the trigger editor and used there to use a reference.
 
Level 30
Joined
Aug 29, 2012
Messages
1,382
Incite Unholy Frenzy fetches the A1 and B1 from the standard Unholy Frenzy spell through god-knows-what type of magic trick. I wouldn't be surprised if the spell is hardcoded to only cast UF no matter what.

Heck I don't even know where that spell comes from, says it requires Necro mastery training but they don't have that in melee games do they? Doesn't seem to be used by an item either
 
Level 3
Joined
Jul 5, 2022
Messages
15
@DoomBlade sorry, but i didn't understand your answer at all :(

Incite Unholy Frenzy fetches the A1 and B1 from the standard Unholy Frenzy spell through god-knows-what type of magic trick.
No it is not :) Default Unholy Frenzy gives +75% to attack speed, Incite gives +50%. I tested it specifically before posting: I gave two of this abilities to my necro and casted on different units of the same type (two ghouls) and they had different attack speed (slower for one with incite).
 
Level 13
Joined
Feb 5, 2018
Messages
567
Well as I said it's not a variable. The line of "code" in the object editor for the spell for example for the Incite Unholy Frenzy just fetches the numbers from the Unholy Frenzy spell. If you click View in the object editor and select Display values as raw data you might understand it a bit better.

It simply displays the set things, in this case the attack rate and damage per second as a text for the spell tooltip - extented. Within the game itself.

EDIT: Ok this is weird, I found the Incite Unholy Frenzy from the object editor and it displays different values from the actual unholy frenzy spell. The spell actually doesn't have modifiable attack rate and life loss per second fields in the editor. Guess it's just hard coded then sadly. I gave the spell to an acolyte, never actually seen this spell in my life. Pretty cool for a base wc3 skill thought.

We could achieve the mass unholy frenzy trough triggers instead of using this hard coded skill.
 
Last edited:
Level 3
Joined
Jul 5, 2022
Messages
15
Pretty cool for a base wc3 skill thought.
Exactly! That's what I thought when i saw and tested it. Wanted to make a custom "cry" ability that slows and damages over time enemies around at the cost of slaying an ally (giving negative values for attack speed and modifying allowed targets).
But looks like I'll have to do it in an old fashioned way via scripting 😑
 
Top