a stomp ability that reduces manna to 0

sunshinex3

You can change this now in User CP.
Reaction score
7
Electro Magnetic Field Hero Ability
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Electro Magnetic Pulse (guardian)
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) has buff Stunned (manna warp)) Equal to True)) and do (Unit - Set mana of (Picked unit) to 0.00)


For some reason this doesn't work. the ability works (it does stun) but they don't have their manna set to 0.

So what i wasn't is for every unit hit by my war stomp ability to have their manna set to 0.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Bad idea to implement it this way.
I would suggest using:
Pick every unit in X Range around Position of Triggering Unit

Furthermore do NOT use the event "a unit finishes casting an ability", use "A unit starts the effect of an ability" instead.
 

jonas

You can change this now in User CP.
Reaction score
64
By the way, manna is something that according to some story fell from the sky for the israelis to eat when they were hungry. The word you're looking for is mana.
 

sunshinex3

You can change this now in User CP.
Reaction score
7
This works takes manna(yea im sticking with it) away from enemies and doesn't effect allies.


Electro Magnetic Field Hero Ability
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Electro Magnetic Pulse (guardian)
Actions
Unit Group - Pick every unit in (Units within 450.00 of (Position of (Casting unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an ally of (Owner of (Casting unit))) Equal to True
Then - Actions
Do nothing
Else - Actions
Unit - Set mana of (Picked unit) to 0.00
 

Laiev

Hey Listen!!
Reaction score
188
Trigger:
  • Stomp
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) Electro Magetic Pulse (guardian)
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • Set TempGroup = (Units within 450.00 of TempPoint matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to (==) True))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Set mana of (Picked unit) to 0.00
      • Custom script: call DestroyGroup(udg_TempGroup)
      • Custom script: call RemoveLocation(udg_TempPoint)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top