Damage Trigger Help

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
ZilvaX
Member
Posts: 52
Joined: December 16th, 2007, 2:23 am

Damage Trigger Help

Post by ZilvaX »

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.
Image
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Damage Trigger Help

Post by Arabidnun »

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....
User avatar
ZilvaX
Member
Posts: 52
Joined: December 16th, 2007, 2:23 am

Re: Damage Trigger Help

Post by ZilvaX »

thx its np problem about the regen, you can change that in the gameplay constants .
Image
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Damage Trigger Help

Post by Aero »

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.
User avatar
tru_power22
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

Post by tru_power22 »

Arabidnun 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....
This wouldn't work :D

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.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Damage Trigger Help

Post by Arabidnun »

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.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Damage Trigger Help

Post by Aero »

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.
Leaks a group.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Damage Trigger Help

Post by Arabidnun »

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...
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Damage Trigger Help

Post by Aero »

Just add the custom script line "set bj_wantDestroyGroup=true" before the Unit Group - ... action.