Kills Reward

T]i[T]a[N

New Member
Reaction score
0
I've just developed a trigger on my map so that when a player gets 50 kills they will be rewarded. Now I know this trigger won't work so I haven't even specified what I would like the reward to be, I need a little help. ( I don't want to use a multi-board ) If there is a better more efficient way, please feel free to inform me :) Here is my trigger.

Set kills ( Kill_Rewards2 = Integer array )

Code:
Set Kill Reward 50
    Events
        Map initialization
    Conditions
    Actions
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                Set Kill_Rewards2[(Integer A)] = 0

Adding kills + reward

Code:
Kill Reward 50
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Set Kill_Rewards2[(Player number of (Owner of (Killing unit)))] = Kill_Rewards2[((Player number of (Owner of (Killing unit))) + 1)]
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Kill_Rewards2[(Player number of (Owner of (Triggering unit)))] Equal to 50
            Then - Actions
            Else - Actions
                Do nothing
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
How do you know it won't work if you haven't set a reward? It should work.

Currently it does nothing but set the Variable + 1.
 

Terrabull

Veteran Member (Done that)
Reaction score
38
Code:
Set Kill Reward 50
    Events
        Map initialization
    Conditions
    Actions
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                Set Kill_Rewards2[(Integer A)] = 0

Remove this completly, and set up an array in the variable editor with an initial value of 0.
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
Yes, add any action, just for testing... Since you're not adding any other actions when the integer reaches 50, nothing shows.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top