[Trigger] Mana help?

Status
Not open for further replies.
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
 
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
 
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.
Back
Top