Non-descript title (was: Cheeto515's need help thread)

cleeezzz

The Undead Ranger.
Reaction score
268
Event : Every 60 seconds of the game
Action : Set Unit_Group = All units owned by player 1 of type (house)
Set Temp_Integer = Number of units in Unit_Group
Add to player 1 (25 x Temp_Integer) to current gold
 

cleeezzz

The Undead Ranger.
Reaction score
268
Code:
Untitled Trigger 001
    Events
        Time - Every 60.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Set Unit_Group[(Integer A)] = (Units owned by (Player((Integer A))) of type House)
                Set Temp_Int[(Integer A)] = (Number of units in Unit_Group[(Integer A)])
                Player - Add (25 x Temp_Int[(Integer A)]) to (Player((Integer A))) Current gold

that should work for all players now. Change the 10 to the amount of players who will receive income.
 

cleeezzz

The Undead Ranger.
Reaction score
268
Set Variable (its like the first few down)

in the variable editor, you need to create variables

1 for unit group
and 1 for Integer

(both are arrays) click the check mark)

(When you are in trigger editor hit Ctrl + B to open variable editor)
 

cheeto515

New Member
Reaction score
1
For some odd reason, I keep starting out with no lumber or gold, could the trigger have caused this? Did I do something wrong? I mean, before the trigger I had gold when I started..
 

cleeezzz

The Undead Ranger.
Reaction score
268
you probably had 0 farms

and in your trigger, you used Set player prop

dont use set, since you have 0 houses, 25 x 0 is 0, it sets your money to 0

do Add player property, its below set player prop i think..
 

cleeezzz

The Undead Ranger.
Reaction score
268
find what?

add property to player?

its below/or above forgot.. Set Property to player.
 

illidan92

New Member
Reaction score
6
Here's the deal. You may ask more than one question in a single thread. But DO NOT ADD MORE QUESTIONS LATER! I.E. no more "User's Question Thread". They are unwieldy and very hard to follow. Start a new thread when you have new questions.
Yeah...this thread is against the rules...

You want to have starting gold/lumber?

Events - Map initialization
Actions - Pick Every Player In -all players- and do actions
loop -
set -picked player-'s gold to ##

Yeah something like that. Look around a lot before you ask questions about "whats the function" because you can easily find it yourself, and they're all categorized.
 

xxyourdeadxx

New Member
Reaction score
11
Code:
Untitled Trigger 001
    Events
        Time - Every 60.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                Set Unit_Group[(Integer A)] = (Units owned by (Player((Integer A))) of type House)
                Set Temp_Int[(Integer A)] = (Number of units in Unit_Group[(Integer A)])
                Player - Add (25 x Temp_Int[(Integer A)]) to (Player((Integer A))) Current gold

that should work for all players now. Change the 10 to the amount of players who will receive income.

Why do you make is so hard? :nuts:
Heres a sample off my map, just change the name.

Code:
Income
    Events
        Time - Every 60.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Entire map)) and do (If ((Unit-type of (Picked unit)) Equal to House) then do (Player - Add 45 to (Owner of (Picked unit)) Current gold) else do (Do nothing))

It was so easy and I answered all the posts above =P.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top