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

[Spell] Triggering gold autocast spell

Status
Not open for further replies.
Level 1
Joined
Sep 16, 2011
Messages
2
I wana make spell like in the Island defense.This spell is triggered when you send unit attack building and everytime it autocast add 1 gold to gold amount of triggering player.
 
Level 17
Joined
Jul 1, 2010
Messages
720
Try adding the Pillage ability to the unit attacking and modify it to give only 1 gold per attack. The problem is that it give gold per percentage of attack damage but I'm not sure...or if the attacked building is in the map and not created via triggers try with the Event Damage - *building* unit takes damage
 
Level 1
Joined
Sep 16, 2011
Messages
2
Chucky-i tried pillage ability but there is i big problem.When someone have more food they pillage lower gold.I need to pillage only 1 gold.I tried your second idea but there is problem too .they can easily attack without damage.(they click out when they attack).

chenlimin-i dont get your opinion with heal ^^
 
No that could be abused. Ordering the unit to stop will order it to attack just as fast. Which equals players getting like 10 gold per sec.
There is a problem with some auto cast spells, some of them don't register in casting events.

What Island Defense did is they had an event that the lil stone of gold took damage, and they made sure that the damaging unit was a... whatever you call them. And every time it is damaged by the "golder" they get a certain amount of gold. You must make sure though that the stone is maigc immune and can't be targeted by like flame strike. Or else you will end up having some player get a super amount of gold really quickly.
 
Status
Not open for further replies.
Top