Warcraft III resources & community, 2003–2006 · archived

Request for A triger

5 posts
#1

Request for A triger

i need a triger for 150 gold per 10 seconds and a triger something with color yellow like (when there is no yellow on the map players wins) and a losing triger (when all of the picked players hero dies end of the game). sry i am still a noob at triger better at terrain and skills n stuff plz help me thank you alot. :oops:

Pimped_Homie
#2
ok the gold/sec



Event
   every 1 secound of game time

condition

Action
   Player Properties- Add 150 gold to player1(Red) current gold
   Player Properties- Add 150 gold to player2(Blue) current gold
   Player Properties- Add 150 gold to player3(Teal) current gold
   Player Properties- Add 150 gold to player4(Purple) current gold


and so on

now for all units of yellow dead i would store into a varriable call it Yellow_Dead

part one


event
   map Initialization

conditions

Actions
   set 


ok i ma not sure how to do that i have never done a trigger like that before
#3

Action: If/Then/Else 
If=Hero (your_hero) dies
Then=End Game with Defeat for all Players
else= Do nothing. 
#4
Gold income:

Gold
    Events
        Time - Every 10.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 4, do (Actions)
            Loop - Actions
                Player - Add 150 to (Player((Integer A))) Current gold


Hero's Death (For Multiple Heroes):

Hero Death
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units owned by (Owner of (Dying unit)) matching ((((Dying unit) is A Hero) Equal to True) and (((Dying unit) is alive) Equal to True)))) Equal to 0
            Then - Actions
                Game - Defeat (Owner of (Dying unit)) with the message: Defeat!
            Else - Actions
                Do nothing


If you want more specifics in finding where i got some conditions etc just let me know ;)
#5
thx guys i really need help, i hope to release the map soon