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

[Trigger] Mana help?

Status
Not open for further replies.
Level 8
Joined
Sep 18, 2008
Messages
298
hmmmm i remembeer i wasnt able to lower mana below 0 but i tried it with life and it worked, ill test this out

EDIT: Hmmm alright, now the only problem is how to make it so every unit who has 0 mana gets hurt, cuz i cant just do Mana of (Already been placed unit) equal to o thing
 
Level 4
Joined
Nov 11, 2004
Messages
50
Hello, I also have a solution for your problem and your trigger should look a little something like this. I have also tested this out myself and it works!

Your Trigger
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set ManaLoss = (Units in (Playable map area))
Unit Group - Pick every unit in ManaLoss and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of (Picked unit)) Equal to 0.00
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 1.00)
Else - Actions
Do nothing


ManaLoss Is a Unit Group variable

Same Example just in a picture

Helppp.jpg



If you have any questions please let me know! I hope this has been helpful
 
Level 8
Joined
Sep 18, 2008
Messages
298
Hello, I also have a solution for your problem and your trigger should look a little something like this. I have also tested this out myself and it works!

Your Trigger
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set ManaLoss = (Units in (Playable map area))
Unit Group - Pick every unit in ManaLoss and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of (Picked unit)) Equal to 0.00
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 1.00)
Else - Actions
Do nothing


ManaLoss Is a Unit Group variable

Same Example just in a picture

Helppp.jpg



If you have any questions please let me know! I hope this has been helpful

thanks dude worked perfectly, after a lil while i made something similiar to yours, but urs is much more effective, +REP
 
Status
Not open for further replies.
Top