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

[Request help for Mana question]

Status
Not open for further replies.
Level 17
Joined
Apr 3, 2010
Messages
1,101
go onto Trigger Editor. And do this.

Every X seconds (X is what you choose) (Usually 1 will do fine or 0.5)
Pick every unit in unit group all units of type (BOMB)
If/then/ else/
If picked units mana = 0
Then Give picked unit abil (Bomb) and order picked unit to cast abil (Bomb)
Else <Do nothing>


And if you want to create the bomb via abil then do a coutdown you would do this.

Unit cast abillity
Abillity = Place bomb
Create unit Bomb At Point of casted abillity.

New trigger
Every 1 second
Pick Unit in unit group, units of time Bomb
If Picked units mana =0
Then Give Picked unit abil Bomb, Order picked unit to cast abil Bomb
Else Set Picked unit mana to picked unit mana -1


This has leaks to get rid of leaks Use a temp group. There is a guide to getting rid of leaks on thehelper.net just google it
 
Status
Not open for further replies.
Top