• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Random Research

Status
Not open for further replies.
Level 26
Joined
Dec 3, 2018
Messages
873
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*
 
Level 28
Joined
Feb 18, 2014
Messages
3,580
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 --------
 
Level 6
Joined
Dec 31, 2017
Messages
138
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.
Top