• 🏆 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!

[Solved] Auto System

Status
Not open for further replies.
Level 10
Joined
Jun 20, 2017
Messages
333
Any ideas + Rep

When I finished a research that gives 1 gold every 1 seconds. after 30 minutes 2 gold every 1 seconds. And if using the command that makes it doubles gold.
Also how can it be automated?! (starts at 12 minutes)
  • Urn of Dracula
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to (==) Urn of Dracula
    • Actions
      • Trigger - Turn on Urn of Dracula 1 Gold <gen>
  • Urn of Dracula 1 Gold
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • (Researched tech-type) Equal to (==) Urn of Dracula
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to (==) True) and (((Matching unit) is in UnitGroup_Vampires) Equal to (==) True))) and do (Actions)
        • Loop - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Owner of (Researching unit)) of type (Unit-type of (Picked unit))) and do (Actions)
            • Loop - Actions
              • Player - Add 1 to (Owner of (Picked unit)) Current gold
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • Integer_Modes Equal to (==) 1
                  • Then - Actions
                    • Custom script: set bj_wantDestroyGroup = true
                    • Unit Group - Pick every unit in (Units owned by (Owner of (Researching unit)) of type (Unit-type of (Picked unit))) and do (Actions)
                      • Loop - Actions
                        • Player - Add 1 to (Owner of (Picked unit)) Current gold
                  • Else - Actions
  • Urn of Dracula 1800 Seconds
    • Events
      • Time - Elapsed game time is 1800.00 seconds
    • Conditions
    • Actions
      • Trigger - Turn on Urn of Dracula 2 <gen>
  • Urn of Dracula 2
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to (==) Urn of Dracula
    • Actions
      • Trigger - Turn on Urn of Dracula 2 Gold <gen>
  • Urn of Dracula 2 Gold
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • (Current research level of Urn of Dracula for (Owner of (Triggering unit))) Equal to (==) 1
    • Actions
      • Trigger - Turn off Urn of Dracula 1 Gold <gen>
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to (==) True) and (((Matching unit) is in UnitGroup_Vampires) Equal to (==) True))) and do (Actions)
        • Loop - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Owner of (Researching unit)) of type (Unit-type of (Picked unit))) and do (Actions)
            • Loop - Actions
              • Player - Add 2 to (Owner of (Picked unit)) Current gold
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • Integer_Modes Equal to (==) 1
                  • Then - Actions
                    • Custom script: set bj_wantDestroyGroup = true
                    • Unit Group - Pick every unit in (Units owned by (Owner of (Researching unit)) of type (Unit-type of (Picked unit))) and do (Actions)
                      • Loop - Actions
                        • Player - Add 2 to (Owner of (Picked unit)) Current gold
                  • Else - Actions
 
Last edited:
Level 13
Joined
Oct 12, 2016
Messages
769
Try using the event: "Elapsed Time," then the action "Turn On Trigger" to turn on your periodic income trigger. If you want it to start giving income after 12 minutes, then turn on the trigger after 720 seconds. Make sure the income trigger is initially turned off, though.

If you want the gold amount to increase, you can use an integer variable to count seconds with an integer check in an "if/then/else" statement.
Whenever the check happens, set another integer variable for the gold income. For example: "Set Income = Income + 1"
 
Status
Not open for further replies.
Top