Help me cr8 this skill!!!

dannyboydude

Ultra Cool Member
Reaction score
33
this will work

Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Unit-type of (Triggering unit)) Equal to your_unit
    Actions
        Set creepkills = (creepkills + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                creepkills Equal to 5
            Then - Actions
                Unit - Set life of <your unit> to ((Life of (<yourunit>)) + 50.00)
            Else - Actions
 

Ommi

New Member
Reaction score
7
Your trigger will only work once though, so if you would say kill 10 units you wouldnt get the second +50 hp bonus, Ill see if I can find one that works, if I dont Im sure someone else will :)
 

Kazuga

Let the game begin...
Reaction score
110
Use what dannyboy posted, and set the integer to 0 once the healing is received. Also it isn't mui at the moment.
 

jnZ

I
Reaction score
64
OFFTOPIC:

wouldnt be "create" something like "cre8" otherwise it sounds like "crate" ^^

EDIT:

Further Offtopic:

> can i ask how do i make my trigger "mui " and what does it mean if its mui?
search the forum or create your own thread. MUI = Multi Unit Instanceable
 

FireBladesX

Eating my wings!
Reaction score
123
To make it MPI, you can add on an integer array of however many players there are, and use the player numbers of the Owner of Killing Unit.


But, the only problem is that it seems that its not a hero skill, so it would be used by multiple units by the same player, so then in that case using custom values would be the way to go.

Sorry for my lack of apostrophe, my computer is having problems.
 
D

DsD)Core(

Guest
Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
         Optional
    Actions
        Set KillCount[Player number(owner of (killing unit))] = (KillCount[Player number(owner of (killing unit))] + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                KillCount[Player number(owner of (killing unit))] Equal to 5
            Then - Actions
                Unit - Set life of (Event response - Killing Unit) to ((Life of (Event response - Killing Unit)) + 50.00)
                 Set KillCount[Player number(owner of (killing unit))] = 0
            Else - Actions
                 Do Nothing

You work with an array. This should work flawless.

EDIT: Actually, this will only work if each player has only one unit. Else you should make a complete unit array at the map initialization, or a picked unit array if there are multiple units of the same type in the map. If that is the case, let me know and I'll make the correct trigger for you.
 

dannyboydude

Ultra Cool Member
Reaction score
33
so is that mui coz it works for multiple players?

so mui means if each player can use it at the same time?
 

THE_X

New Member
Reaction score
49
Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
         Optional
    Actions
        Set KillCount[Player number(owner of (killing unit))] = (KillCount[Player number(owner of (killing unit))] + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                KillCount[Player number(owner of (killing unit))] Equal to 5
            Then - Actions
                Unit - Set life of (Event response - Killing Unit) to ((Life of (Event response - Killing Unit)) + 50.00)
                 Set KillCount[Player number(owner of (killing unit))] = 0
            Else - Actions
                 Do Nothing

You work with an array. This should work flawless.

EDIT: Actually, this will only work if each player has only one unit. Else you should make a complete unit array at the map initialization, or a picked unit array if there are multiple units of the same type in the map. If that is the case, let me know and I'll make the correct trigger for you.


-------------------------------------------------------------
that is MPI not MUI but what you could do is try making an ability based off of channel and then when the unit kills a unit increase the level of the channel ability by 1 and if it reaches 5 then set the health to 0, that should be MUI
 
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