• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Income system

Status
Not open for further replies.
Level 16
Joined
Mar 3, 2006
Messages
1,564
I am not profesional at english, but the AN word is added to words starting with vowel letters like a,e,i,o,u(if pronouced as A like in an umbrella). So its a variable not an variable and a unit not an unit and a max not an max


  • Ore Timed Increase
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
      • (Number of living OreMine units owned by Player 1 (Red)) Greater than or equal to 1
    • Actions
      • Player - Set Player 1 (Red) Current gold to ((Player 1 (Red) Current gold) + 50)
<< ADDED >>

And here is another trigger for more than one player

  • Ore Timed Increase
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to MaxPlayers, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of living OreMine units owned by (Player((Integer A)))) Greater than or equal to 1
            • Then - Actions
              • Player - Set (Player((Integer A))) Current gold to (((Player((Integer A))) Current gold) + 50)
            • Else - Actions
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
  • Player - Set Player 1 (Red) Current gold to 750
This is the default action when selecting it from the action list. Click on the 750 that will open a window select Arithmatic function (it should be like this: Value + 1 ) now set every part to what you want, in this example set Value to Player 1 (Red) Current Gold and the 1 to the number you want as for the + its an operator and can be set to - x or /

<< ADDED >>
126172-albums1967-picture14969.jpg


126172-albums1967-picture14970.jpg
 
Last edited:
Status
Not open for further replies.
Top