difficult skill to work with...

BuryAutumn

New Member
Reaction score
3
i'm trying to make a skill that increases the maximum HP and MP of allied units within a range of 1000 of the triggering unit. however, i can't seem to find the action to make it work for only allied units, it only says for all units within the range of 1000 of the triggering unit.
my question is, how do i make it affect only allied units?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
890
Units Within Range Matching Condition

Boolean Condition

Owner of Triggering Unit is an Ally of Owner of Matching Unit Equal to True
 

BuryAutumn

New Member
Reaction score
3
ah, thanks much.

EDIT : another question. this ability is going to have multiple levels, so how do make sure that the percentage of HP and MP increase increases with the level of the ability?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
890
When you go to actually do the actions, use an If/Then/Else function.

If Level of Ability for <Some Unit> Equal to <Some Level>
Then do <Some level-specific action>
 

Stefanman

Member
Reaction score
10
ok,here is trigger (random example,doesnt have anything with ur first post)
JASS:
Events
    Unit - A unit Acquires an item
Actions
    Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + ((Real((Level of Bloodlust for (Triggering unit)))) x 20.00))%


this trigger i wrote leaks,i just made it quickly for u to see what i meant
 
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