Gold question

Venv

Active Member
Reaction score
1
how do u make a trigger going

like every 60secs of the game

Code:
event every 60 secs of the game

condtion player slot = user

action give player 50g

now what i want is

that but

condtion if player has unit Gold giver

give player a addtional 10g

sorry ima in a rush
 

FireBladesX

Eating my wings!
Reaction score
123
Set G: units of type GoldGiver
Pick every unit in G
Player - add 10 to (Owner of picked unit current gold)
call DestroyGroup(udg_G)

Rushed question, rushed answer - but still doesn't leak.
 

cleeezzz

The Undead Ranger.
Reaction score
268
Trigger:
  • Untitled Trigger 001
    • Events
      • Time - Every 50.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set Temp_Group = (Units owned by (Player((Integer A))) matching (((Unit-type of (Matching unit)) Equal to Footman) and (((Matching unit) is alive) Equal to True)))
          • Player - Add (50 + (10 x (Number of units in Temp_Group))) to (Player((Integer A))) Current gold
          • Custom script: call DestroyGroup(udg_TempGroup)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top