Trouble with periodiclly increasing upgrades

ZelNaga

New Member
Reaction score
5
So I have a trigger and I want it so that every 20 seconds it upgrades to the next tier from 1 to a maximum of 20 upgrades, but I don't know how to make it like that.

Code:
Tower Upgrades
    Events
        Time - Every 20.00 seconds of game time
    Conditions
    Actions
        Player - Set the current research level of [B]Upgrade name here[/B] to [I]1[/I] for Player X
 

ZelNaga

New Member
Reaction score
5
I have 20 upgrades for this. I want it to start at 0 upgrades and every 20 seconds upgrade once. So at 20 seconds its at 1, 20 seconds after that it's at 2. all the way up to 20.
 

simonake

New Member
Reaction score
72
Now i searched and used my head and i confirm that this should work.

You need a variable called "Integer"
Add this to your trigger and i promise it will work.

Trigger:
  • Actions
    • Set Integer = (Integer + 1)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Integer Equal to_ 20
      • Then - Actions
        • Trigger - Turn off (This trigger)
      • Else - Actions
        • Do nothing


EDIT: Nvm i misunderstood what you wanted. I think i can help you.
 

simonake

New Member
Reaction score
72
Now i understand well your question and i can answer it. You need one Variable Integer (Integer)

Trigger:
  • Events
    • Time - Every 20 seconds of gametime
    • Conditions
      • none
    • Actions
      • Set Integer = (Integer + 1)
      • Player - Set the current research level of < > to Integer for Player 1 red


Dont forget to +rep :D
 
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