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

[General] Income system custom

Status
Not open for further replies.
Level 10
Joined
Sep 11, 2013
Messages
291
Greetings!
I wanted to make a custom income system in my map and i don't know how to do that by my own..
I'am not so good with triggers, but i have a good ideea.
Is a Hide & Seek map, maybe you will like to play.

I would be grateful if someone who know how to make a little complex income system will help me through Share Screen on DISCORD
If anyone has time for this journey, here is my Discord:
A Future End#8167

Thank you!
 
Here try this
  • Gold
    • Events
      • Time - Every 35.00 seconds of game time
    • Conditions
    • Actions
      • Set TavernGoldIncome = (Units of type Tavern)
      • Set TavernIncomeGroup = (Units of type Tavern)
      • Unit Group - Add all units of TavernIncomeGroup to TavernGoldIncome
      • Unit Group - Remove all units from TavernIncomeGroup
      • Set TavernIncomeGroup = (Units of type Tavern)
      • Unit Group - Add all units of TavernIncomeGroup to TavernGoldIncome
      • Unit Group - Remove all units from TavernIncomeGroup
      • Unit Group - Pick every unit in TavernGoldIncome and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Tax Collection for (Picked unit)) Greater than 0
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Tax Collection for (Picked unit)) Equal to 1
                • Then - Actions
                  • Player - Add 10 to (Owner of (Picked unit)) Current gold
                  • Floating Text - Create floating text that reads (+ + (String(10))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
                  • Special Effect - Create a special effect attached to the overhead of (Picked unit) using UI\Feedback\GoldCredit\GoldCredit.mdl
                  • Sound - Play ReceiveGold <gen>
                  • Special Effect - Destroy (Last created special effect)
                • Else - Actions
                  • Do nothing
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
              • Floating Text - Set the velocity of (Last created floating text) to 100.00 towards 90.00 degrees
            • Else - Actions
      • Unit Group - Remove all units from TavernGoldIncome
 
Level 10
Joined
Sep 11, 2013
Messages
291
Here try this
  • Gold
    • Events
      • Time - Every 35.00 seconds of game time
    • Conditions
    • Actions
      • Set TavernGoldIncome = (Units of type Tavern)
      • Set TavernIncomeGroup = (Units of type Tavern)
      • Unit Group - Add all units of TavernIncomeGroup to TavernGoldIncome
      • Unit Group - Remove all units from TavernIncomeGroup
      • Set TavernIncomeGroup = (Units of type Tavern)
      • Unit Group - Add all units of TavernIncomeGroup to TavernGoldIncome
      • Unit Group - Remove all units from TavernIncomeGroup
      • Unit Group - Pick every unit in TavernGoldIncome and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Tax Collection for (Picked unit)) Greater than 0
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Tax Collection for (Picked unit)) Equal to 1
                • Then - Actions
                  • Player - Add 10 to (Owner of (Picked unit)) Current gold
                  • Floating Text - Create floating text that reads (+ + (String(10))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
                  • Special Effect - Create a special effect attached to the overhead of (Picked unit) using UI\Feedback\GoldCredit\GoldCredit.mdl
                  • Sound - Play ReceiveGold <gen>
                  • Special Effect - Destroy (Last created special effect)
                • Else - Actions
                  • Do nothing
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
              • Floating Text - Set the velocity of (Last created floating text) to 100.00 towards 90.00 degrees
            • Else - Actions
      • Unit Group - Remove all units from TavernGoldIncome
Ești Român? - Lordul Dracula
I don't understand why you send me this, but is not what i said..
I have already an ideea, but i need someone to talk on Discord about that because is 100x time more easy for me to work trough shared screen.
So, if you want to help me out with that project, please join on discord and let's talk.
:)
 
Status
Not open for further replies.
Top