Points system trouble

munyman

New Member
Reaction score
1
I am having trouble with my points system for players

It's an evolution based game so depending on how many points someone has determines when that players units evolve

My problem is that when a player (Green for example) kills a unit that is moving, not attack moving it gives the points for the first kill (ie 10pts) but after that initial ten points the following kills yield no point value what so ever

However, if my units (Reds) were to attack move and engage the other players units and they fight it would give the points the green, but not the right amount (In that some of the kills are not counted).

I would love help on how to figure out this problem if not a point system all in its own.
 

Seprest

New Member
Reaction score
15
Are you using an integer array to keep track of the points?


A pretty bullet-proof way to add points is:
Trigger:
  • Set myArray[(Player number of (Owner of (Killing unit)))] = (myArray[(Player number of (Owner of (Killing unit)))] + (Custom value of (Dying unit)))
Assuming you're keeping track of the points associated with the death of a unit in the unit's custom value.
 
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