Summon Gives Mana To Allies

WolfieeifloW

WEHZ Helper
Reaction score
372
I have a custom spell, because Mass Teleport is useless on my map. I changed it to a skill I've called "Summon Belial". It summons a Kel'Thuzad (Ghost), and is supposed to give 250 mana to all allies of casting unit. Here's my trigger:
Code:
Summon Belial
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to Summon Belial 
    Actions
        Player Group - Pick every player in (All allies of (Owner of (Casting unit))) and do (Actions)
            Loop - Actions
                Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + 250.00)

Thanks in advance TH.net!
 

Exide

I am amazingly focused right now!
Reaction score
448
You're using a Player Group, when you really should be using a Unit Group.
Remember Unit Groups leak.
 

Samael88

Evil always finds a way
Reaction score
181
do you mean give mana as in:
1. Instantly regenerate 250 mana?
or
2. Add 250 to their max mana?

Edit: Oh, crap I did not notice that:(
 

WolfieeifloW

WEHZ Helper
Reaction score
372
I can't seem to find the option's to restore the mana to allies with Unit Group option?
Could you post a trigger?
 

Samael88

Evil always finds a way
Reaction score
181
Code:
Unit Group - Pick every unit in unitgroup and do multiple actions
    Loop - Actions
     [B]Then add you actions here[/B]
 

Chao

Setting sail for fail in the sea of lame.
Reaction score
63
Create a unit group comrpised only of nearby allied units within X of the summoned unit, add the necessary mana, then destroy the group :)
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
Well,
Code:
Actions
    Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True)) and do (Actions)
        Loop - Actions
            Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) + 250.00)
 

Ghostwind

o________o
Reaction score
172
Create a unit in object editor with the ability Locust (makes them invulnerable and unselectable) and model none.mdl

Give that unit the ability Rune of Greater Mana (or something like that) except with 99999 range.

In your trigger, have it spawn one of those units and order it to cast that spell.
 

Exide

I am amazingly focused right now!
Reaction score
448
>The Unit Group trigger works fine.
It leaks, though. :rolleyes:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top