• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Request for A triger

Status
Not open for further replies.
Level 4
Joined
Feb 26, 2005
Messages
71
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
 
Level 7
Joined
Dec 18, 2004
Messages
148
ok the gold/sec

Code:
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

Code:
event
   map Initialization

conditions

Actions
   set

ok i ma not sure how to do that i have never done a trigger like that before
 
Level 3
Joined
Jul 16, 2005
Messages
27
Gold income:

Code:
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):

Code:
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 ;)
 
Status
Not open for further replies.
Top