• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Income system custom

Status
Not open for further replies.
Level 13
Joined
Sep 11, 2013
Messages
467
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 13
Joined
Sep 11, 2013
Messages
467
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