Gold Pooling Trigger Question

xmkiller

New Member
Reaction score
6
Those are called arrays.

I am not to good at explaining how it works but basiclly its a variable inside a variable.

Lets say that we have a unit aray like this:

Code:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Set count = (count + 1)
        Set unit[count] = (Dying unit)

So when a unit dies the variable count will add +1 to its self.
Then it will set the unit array to hold the dying unit.

unit[1] = Footman
unit[2] = Footman
unit[3] = Grunt
unit[4] = Footman
unit[5] = Shaman

Not sure if that was your question but oh well ^^


Edit: Poolplayer is a PLAYER variable. It is just converted to a integer then into a string.
 
D

DarkCarrier

Guest
What about PoolLimit ? Is that a player variable as well or an integer? Also what should I set the array size to?
 

xmkiller

New Member
Reaction score
6
Set PoolLimit[(Player number of (Triggering player))] = (Integer((Substring((Entered chat string), 9, (Length of (Entered chat string))))))

That is a Integer.
 

Accname

2D-Graphics enthusiast
Reaction score
1,465
please post the trigger, i think you made a mistake with the calculation.
 
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