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

Quick & stupid newbie damage source question

Status
Not open for further replies.
Level 3
Joined
Jun 15, 2021
Messages
30
1623786398087.png

Why isn't that working? Thanks in advance!
 
I suppose that the ability to be refreshed is a hero ability. If it is, you can use the following custom script
to achieve the same effect (in wc3 v.1.31+):

  • Comment: -------- <Bladestorm Rawcode> is the raw code of the ability (This can be viewed in the object editor) --------
  • Comment: -------- (using the shortcut Ctrl + D) --------
  • Custom Script: call BlzEndUnitAbilityCooldown(udg_DamageEventSource, <Bladestorm Rawcode>)
Otherwise (if the game version is 1.30 and below), the BladestormLvl has to be defined first in order for thorough
debugging. What is the value of BladestormLvl at that point, and is it defined or is it 0? Once the level is known,
you can add a loop which makes the Arms Warrior unit learn the ability up to the specified level BladestormLvl.

  • For each (Integer A) from 1 to BladestormLvl, do (Actions)
    • Loop - Actions
      • Hero - Learn skill for Arms Warrior 0065 <gen>: Bladestorm
BTW, you might want to use these tags when posting triggers next time (in text): [trigger][/trigger]
 
Status
Not open for further replies.
Top