• 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.

Income option

Status
Not open for further replies.
Level 4
Joined
May 31, 2008
Messages
91
hi , i am making a map , i have a basic income amount of 10gold and 5 lumber per 10 seconds :grin:

i whanna make it like:
u build a tower that increase the income, but how to do that?:confused: help will be grealy aprecieted!!!:thumbs_up:

and also a happy early newyear to anyone :ned:
 
Level 1
Joined
Dec 24, 2008
Messages
2
Example of Income Trigger

11icnio.jpg


An example from the map I'm working on.

You have to set up a integer variable as income, then make a trigger that once a tower: example
Event: unit finished construction​
Condition: Unit-type is = to [Scout Tower]​
Set variable: Income = to [Income + 10]​
 
Level 4
Joined
May 31, 2008
Messages
91
grrr i cant do this >.> its not detailed enough... can u do it for me please? u know already what i mean
 

Attachments

  • Orc Ambush V 1.1 income NoMusic.w3x
    103.3 KB · Views: 101
Level 4
Joined
Jun 20, 2008
Messages
22
Here's a good trigger for your need
  • Events
    • Time - Every 10.00 seconds of game time
  • Conditions
  • Actions
    • Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Tower) and do (Player - Add 10 to Player 1 (Red) Current gold)
    • Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Tower) and do (Player - Add 5 to Player 1 (Red) Current lumber)
this is very simple compared to others.
 
  • Angry
Reactions: Rui
Level 16
Joined
Jul 21, 2008
Messages
1,121
You can also make it like this:
  • Income
    • Events
      • Time - Every X seconds of game time
    • Conditions
    • Actions
      • Set TempGroup = (Units in (Playable map area))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to <Your Unit>
            • Then - Actions
              • Player - Add X to (Owner of (Picked unit)) Current gold
              • Player - Add X to (Owner of (Picked unit)) Current lumber
            • Else - Actions
      • Custom script: call DestroyGroup(udg_TempGroup)
I hope this helps...
 
Last edited:
Level 3
Joined
Jun 27, 2009
Messages
42
11icnio.jpg


An example from the map I'm working on.

You have to set up a integer variable as income, then make a trigger that once a tower: example
Event: unit finished construction​
Condition: Unit-type is = to [Scout Tower]​
Set variable: Income = to [Income + 10]​

how to do the guild hall's actions? help me :grin:
 
Status
Not open for further replies.
Top