• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] stack per attack help.

Status
Not open for further replies.
Level 2
Joined
Dec 29, 2011
Messages
8
so i got a big question,
when my hero has the ability for when he attacks a unit, he gets a stack of damage that will last for 5 seconds. my hero can increase the stacks for every attack he makes, which increases the damage also.
but i want to limit it to 5 stacks only.
how can i do this script. (yes i have experience in GUI) i just don't know how to setup the variables and the whole script itself without some ideas from other scripts.
can somebody nice give me a helping hand? :wconfused:
 
Level 2
Joined
Dec 29, 2011
Messages
8
If you mean that the hero gains more damage when using the ability then you need to use a custom stat system. Wc3 doesn't support upgrading damage so that is the easiest way to do it. There are a few here on the hive in the spells section.

erm maybe the answer of Nichilus is one of the answers :) also forgive me if i get you guys confused about the description.
 
Level 2
Joined
Dec 29, 2011
Messages
8
You need to keep a check of how many attacks he made in an integer variable and then you compare values => if the saved number < 5, then increase integer value and increase damage.

well that's one of the answers i was looking for but how exactly i can set the variable to track the hero's attack?
 
Status
Not open for further replies.
Top