Upgrade Trigger

Status
Not open for further replies.
Level 7
Joined
Jul 1, 2012
Messages
188
I can't figure out how to make a good trigger that makes something like this.

When a player get upgrade, the upgrade blocks other Upgrades, something like this.

Player gets Iron sword upgrade.
The player can't get Iron Spear upgrade now.
 
I think you got me wrong, or that I can't figure it how to work with that script.
I'm going to give how it would work ingame.

You get to the point where you take 1 of these upgrades.
Holy Kingdom, Advance Kingdom, Magi Kingdom.
If you now take Holy Kingdom it blocks out the possibility to take Adv' kingdom and Magi Kingdom.
 
Alright, I can't get it working correctly no matter what I try.

  • Event
  • Time - Every 0.10 seconds of Game Time
  • Conditions
  • (Current research level of X for (matching player)) Equal to 1
  • Actions
  • Player - Set the max research level of X to 0 for (Matching Player)
I can only use Gui but what am I doing wrong?
 
Last edited:
  • Events
    • Time - Every 0.10 seconds of game time
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Current research level of X for Player(Integer A)) Equal to 1
          • Then - Actions
            • Player - Set the max research level of X to 0 for Player(Integer A)
          • Else - Actions
If you are not familiar with this line: Player(Integer A)
Player( ) can be selected via "Conversion - Convert Player Index to Player"
Integer A can be selected via "For Loop Integer A"
 
Status
Not open for further replies.
Back
Top