Remove lumber

Bladezor

You can change this now in User CP.
Reaction score
0
How to make a trigger that every 20 sec, remove 10 lumber from all players? and when a player got 0 lumber his units dies.
 

Solu9

You can change this now in User CP.
Reaction score
216
Events - Map Initialization
Conditions -
Actions -
Set Pgroup_Players = Every player matching (matching player equal to is playing)


Events - Every 20 seconds
Conditions -
Actions -
Pick every player in Pgroup_Players
Loop:
Subtract 10 lumber from picked player
If -
lumber of picked player equal to 0
Then -
defeat picked player
Else -


Written in free hand. Hope you understand it.

Edit:
Pgroup_Players is a Player Group variable.
 

Bladezor

You can change this now in User CP.
Reaction score
0
Btw can I set a max limit lumber to 100? So I can't get more then 100 lumber.
 

Solu9

You can change this now in User CP.
Reaction score
216
Sure you can.

Event - Whenever or however the player gain lumber
Conditions -
Actions -
If -
Triggering player's lumber is greater than 100
Then -
Set triggering player's lumber to 100
Else -
 
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