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

help for spell

Status
Not open for further replies.
Level 2
Joined
Jun 1, 2014
Messages
18
i need a spell for a building that can be activated with right click (autocast)
and this spell spawns a unit

i need another spell that spawn 3 units at 2 different day and night times

i tried a bit but i dont get this autocast thing and my units spawn all themself again and the second spell is completely impossible for me at this time

i thank you for all good answers
 
Level 2
Joined
Jun 1, 2014
Messages
18
yes it spawns a new unit every time if there is no cd anymore ( like this building have 40 mana regenerate 1 mana per second and the spell cooldown is on 40 seconds )
 
Level 12
Joined
Nov 3, 2013
Messages
989
Does the number of these buildings change?

If not then I think you can either use
  • Unit - unitVar's mana becomes Less than 40.00
OR

  • Trigger - Add to Trigger the event (Unit - unitVar's mana becomes Less than 40.00)
Else you would probably have to use dynamic indexing and periodic event
 
Level 12
Joined
Nov 3, 2013
Messages
989
Maybe if you had something like undead Graveyard (which generates corpses) and the auto cast abilities were based on Raise dead.

Edit: Yep it seems to work, I haven't found where the Create Corpse ability is though (if you can even make a custom one) so you might have to copy it over from undead graveyard. Corpses appears to spawn about every 15 seconds.

Although it (works) I still recommend to use triggers.
 
Status
Not open for further replies.
Top