• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

(GUI) Stacking Damage

Status
Not open for further replies.
Level 10
Joined
Nov 24, 2010
Messages
546
Hey, i need passive stacking damage.
Whenever unit damage other unit it get X bonus damage, stack up to 5 times, last 3 seconds if not damaged again.
For example, base damage of attacking unit is 30, and when he hits enemy unit he gets + 2 damage, again + 2 damage and stack up to 5 times, wich means on 5th time he will have 30 + 10 bonus damage.

-MUI
-Damage increase value set in variable
-NO needed to support levels, just 1 level

Creator will get + rep and credits ofcourse.
Palooo3 :p
 

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,140
I though that after searching in google hiveworkshop and registering account you are educated enough to read destription.. meaby I was wrong?

GUI trigger == jass script (if you don't believe, go Edit -> Convert to Custom text and ask yourself once again).
Yeah system is made in Jass but.. look at the top of system's note..
..isn't kinda GUI-friendly phrase written?

Whole application is made for non experienced WE users, plus implementation is so easy.
 
Level 10
Joined
Nov 24, 2010
Messages
546
  • TAS Variable Creator
    • Events
    • Conditions
    • Actions
      • Set TASability = TASability
      • Set TASunit = (Casting unit)
      • Set TASduration = 3.00
      • Set TASrefresh = True
      • Set TASmaxstack = 5
      • Set TASdur[0] = 0.00
      • Set TASend[0] = False
      • Set TAShash = TAShash
      • Set TASids[0] = 0
      • Set TASindex = 0
      • Set TASref[0] = False
      • Set TAStimer = TAStimer
      • Set TASunits[0] = No unit
  • like this?:/
 
That trigger is only in the testmap so that the GUI variables used in the Jass code are created automatically.
Paste it, and delete it out of your map.

.isn't kinda GUI-friendly phrase written?

I know it is, but if you'd write "GUI friendly" in your sig too, it would be more clear ;D
XD

edit
To use the system, just set the variables in GUI and run the trigger.
 
You'd need to implement Bribe's GUI DamageEvent.

  • Events
    • Game - DamageEvent becomes Equal To 1.00
  • Conditions
  • Actions
    • Set TASability = (Insert the Damage gaining ability here)
    • Set TASunit = DamageEventSource
    • Set TASduration = 3.00
    • Set TASrefresh = True
    • Set TASmaxstack = 5
    • Trigger - Run Timed AS <gen> (ignoring conditions)
All you have to do is make sure that the ability has 5 levels. (5 because you wanted a maximum stacking count of 5)
 

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,140
oh why just anyone don't make it for me on Spinnaker's system?:p
Because system in written in Jass, therefore variables aren't auto created. Although Jass code keeps system efficient, fast and smooth.

It's similar idea as in Weep's GDD, Jass script + variable creator. Everyone who has some oil in mind and is able to read can install this in 5 seconds.

About condition: (Unit-type of DamageEventSource) Equal to <unit type here>
 
Status
Not open for further replies.
Top