• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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