[Trigger] Random Research

Status
Not open for further replies.
Level 27
Joined
Dec 3, 2018
Messages
906
I've got a map with cards, aka upgrades which get their level and max level set to 0 every time they are done. I want to make that every 45 seconds a random research from humans will become avalable for that player, BUT there are no research groups in the game (research-sism if you ask me) and now I'm confused and stuck. Pls help me (and show me the trigger cause I'm too dumb to understand what must I do only with wards XD) PLS! Thanks and advance and *smooch*
 
You mean something like this?
  • Test
    • Events
      • Time - Every 45.00 seconds of game time
    • Conditions
    • Actions
      • Set RandomInteger = (Random integer number between 1 and 10)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RandomInteger Equal to 1
        • Then - Actions
          • Player - Set the max research level of Research A to 1 for Player 1 (Red)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RandomInteger Equal to 2
            • Then - Actions
              • Player - Set the max research level of Research B to 1 for Player 1 (Red)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • RandomInteger Equal to 3
                • Then - Actions
                  • Player - Set the max research level of Research C to 1 for Player 1 (Red)
                • Else - Actions
                  • -------- etc --------
 
ResearchTypes = array of Tech-Type
  • Events
    • Map initialization
  • Conditions
  • Actions
    • Set VariableSet ResearchTypes[0] = Iron Forged Swords
    • Set VariableSet ResearchTypes[1] = Iron Plating
  • -------- --- --------
  • Events
    • Time - Every 60.00 seconds of game time
  • Conditions
  • Actions
    • Set VariableSet RandomIndex = (Random integer number between 0 and 1)
    • Player - Set the max research level of ResearchTypes[RandomIndex] to 1 for Player 1 (Red)
 
Status
Not open for further replies.
Back
Top