I need help with tiggers.

PYROMANIC

New Member
Reaction score
0
Hi,
I'll tell what I want to, If a player kills enemy unit he gets 1 kill point. And when his kill points reach 50 rertain action will happen.
Basicly for every 50 kills you will gain something.

What i tried, I made a leaderboard but I could read the kills from there. Then I made Real type variable but I couldn't add points to it... so i'm stuck. :banghead:

To my calculations I would need a mixture variable of Real and Integer Array.
(I am noob at tiggering and stuff like that)
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
Hi,
I'll tell what I want to, If a player kills enemy unit he gets 1 kill point. And when his kill points reach 50 rertain action will happen.
Basicly for every 50 kills you will gain something.

What i tried, I made a leaderboard but I could read the kills from there. Then I made Real type variable but I couldn't add points to it... so i'm stuck. :banghead:

To my calculations I would need a mixture variable of Real and Integer Array.
(I am noob at tiggering and stuff like that)

Maybe you can tell us why you need a mixture of real and integer? So we can find a way to work around it. Also you can convert them there and back anytime.
 

PYROMANIC

New Member
Reaction score
0
First line is why I need it, did you read this?
If a player kills enemy unit he gets 1 kill point. And when his kill points reach 50 rertain action will happen.
Basicly for every 50 kills you will gain something.
That's what I want to do...
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
But you said you need it to be real, and integer at times and stuff like that?

The problem you quoted can be done by:

Trigger:
  • Trigger
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Player[(Player number of (Owner of (Killing unit)))] Greater than or equal to 50
        • Then - Actions
          • -------- Your action --------
          • Set Player[(Player number of (Owner of (Killing unit)))] = 0
        • Else - Actions
          • Set Player[(Player number of (Owner of (Killing unit)))] = ((Player number of (Owner of (Killing unit))) + 1)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top