Hi again
Yeah i really suck at triggers anyway
what happens: Every hero the map takes 1 damage every 5 seconds.
im really stuck on the conditions/actions part of my trigger. i think every one knows the every 5 seconds trigger so i want copy it on here.
Damage Trigger Help
Moderator: Cheaters
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Damage Trigger Help
You want ever unit on the map to be damaged 1 hp every 5 seconds? Np mate
Untitled Trigger 001
Events:
-Elapsed Game time is 5.00 seconds
Condition:
-Are non unless you have this as a game varaible aka -death game
Actions:
-Unit Group - Pick every unit in (units in( playable map Arena)) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - cause (Picked unit) to damage (Picked unit) dealing 1.00 Damage of attack type Chaos and damage type Universal.
-Wait 5.00 Seconds
-Run trigger Untitled Trigger 001 (ignoring conditions) Or check for conditions if you want it as a variable game.
I suggest increasing your damage to about 10-20, b/c at first i didnt think it worked, but the heros regen to fast....
Untitled Trigger 001
Events:
-Elapsed Game time is 5.00 seconds
Condition:
-Are non unless you have this as a game varaible aka -death game
Actions:
-Unit Group - Pick every unit in (units in( playable map Arena)) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - cause (Picked unit) to damage (Picked unit) dealing 1.00 Damage of attack type Chaos and damage type Universal.
-Wait 5.00 Seconds
-Run trigger Untitled Trigger 001 (ignoring conditions) Or check for conditions if you want it as a variable game.
I suggest increasing your damage to about 10-20, b/c at first i didnt think it worked, but the heros regen to fast....
-
- Member
- Posts: 52
- Joined: December 16th, 2007, 2:23 am
Re: Damage Trigger Help
thx its np problem about the regen, you can change that in the gameplay constants .
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Damage Trigger Help
Easier solution than that.
If it's always that way, then just make the default hp regen -1.
If it's only under certain circumstances, just make an ability based off of Ring of Regeneration and set it to -1.
Then add that ability to the heros.
The best way to go is to make wc3 use what's hardcoded instead of using triggers.
If it's always that way, then just make the default hp regen -1.
If it's only under certain circumstances, just make an ability based off of Ring of Regeneration and set it to -1.
Then add that ability to the heros.
The best way to go is to make wc3 use what's hardcoded instead of using triggers.
-
- Old Wrinkly Member
- Posts: 271
- Joined: January 12th, 2008, 4:42 am
- Title: Re-R-Re-Re-Remix
- Location: Canada EH?
Re: Damage Trigger Help
This wouldn't workArabidnun wrote:You want ever unit on the map to be damaged 1 hp every 5 seconds? Np mate
Untitled Trigger 001
Events:
-Elapsed Game time is 5.00 seconds
Condition:
-Are non unless you have this as a game varaible aka -death game
Actions:
-Unit Group - Pick every unit in (units in( playable map Arena)) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - cause (Picked unit) to damage (Picked unit) dealing 1.00 Damage of attack type Chaos and damage type Universal.
-Wait 5.00 Seconds
-Run trigger Untitled Trigger 001 (ignoring conditions) Or check for conditions if you want it as a variable game.
I suggest increasing your damage to about 10-20, b/c at first i didnt think it worked, but the heros regen to fast....
Elapsed Game time is 5.00 seconds would trigger it once, better use, the every 5 seconds command.
Contact me on WC3 Killing_Spree22, I'm at US west!
To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk
I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk
I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Damage Trigger Help
Untitled Trigger 001
Events:
-Every 5.00 seconds of game
Condition:
-Are non unless you have this as a game varaible aka -death game
Actions:
-Unit Group - Pick every unit in (units in( playable map Arena)) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - cause (Picked unit) to damage (Picked unit) dealing 1.00 Damage of attack type Chaos and damage type Universal.
-Run trigger Untitled Trigger 001 (ignoring conditions) Or check for conditions if you want it as a variable game. This is what made the old version work, But this version works the same.
Events:
-Every 5.00 seconds of game
Condition:
-Are non unless you have this as a game varaible aka -death game
Actions:
-Unit Group - Pick every unit in (units in( playable map Arena)) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - cause (Picked unit) to damage (Picked unit) dealing 1.00 Damage of attack type Chaos and damage type Universal.
-Run trigger Untitled Trigger 001 (ignoring conditions) Or check for conditions if you want it as a variable game. This is what made the old version work, But this version works the same.
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Damage Trigger Help
Code: Select all
Unit Group - Pick every unit in (units in( playable map Arena)) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - cause (Picked unit) to damage (Picked unit) dealing 1.00 Damage of attack type Chaos and damage type Universal.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Damage Trigger Help
Can i use the Temp_Unit Variable set to a unit group then remove Temp_unit stuff like that?
How do i do that Player Number of Owner of Unit Thing? I cant find it...
How do i do that Player Number of Owner of Unit Thing? I cant find it...
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Damage Trigger Help
Just add the custom script line "set bj_wantDestroyGroup=true" before the Unit Group - ... action.