• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Need Someone That Is VERY SMART!

Status
Not open for further replies.
Level 7
Joined
Dec 8, 2005
Messages
319
ok here is my delema! i want a unit to gain 5 gold every sec it is within an aura. i have tried a few things.
Test
Events
Time - Every 1.00 seconds of game time
Conditions
((Triggering unit) has buff Warm) Equal to True
Actions
Player - Add 5 to (Owner of (Triggering unit)) Current gold

but it has failed.
there are more then one unit on the field and the building that is putting off the aura is owned by someone but is not under the effect i have changed (Triggering unit) to a thousand differant things. got any ideas or feedback plz help!
 
Every Second:
Pick every unit:
If unit has the warm buff:
Give owner of unit 5 gold

This is a really stupid thing to do, because you'll be checking loads of units every second, so it'll lag.
 
To don't cause ag and to do it without fail you need to do 2 triggers. 1 for when the unit learns the ability and 1 to every 1 second. Use:

A unit learns an ability
Learned hero skill equal to ...
Set BOOLEAN = TRUE
Set UNIT = Learning Hero
Turn On (trigger that will give the gold every second)

->The other trigger is:

Every 1 second of game time
If BOOLEAN equal to true
Add 5 gold to owner of UNIT current gold.


Just It, think that it works perfectly. :wink:
 
Status
Not open for further replies.
Back
Top