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

[Trigger] Editting Raw Data

Status
Not open for further replies.
Level 2
Joined
Jan 13, 2008
Messages
13
Is it possible to to set up triggers to update raw data in a ability?

For example I gave a tower an attack bonus ability but I would like to update the Data1 so it can change the dmg bonus periodically.

So in all would it be possible to have an action like this:

  • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Picked unit)) Equal to Tower
        • Then - Actions
          • Unit set DATA1 of TOWER ABILITY for (Picked unit) to CUSTOM VALUE
        • Else - Actions
 
Level 11
Joined
Apr 28, 2008
Messages
696
If you use upgrades, all units of the same unittype are effected. Further upgrades can't be downgraded easily again. Use instand of upgrades an edited ability thats grants dmgbonus. By this way you can choose which units shall be effected by the bonus.

Thy
 
Status
Not open for further replies.
Top