Yeah i need help with this trigger to
whats suppose to happen
1) Test 1 is casted (based on chain lightning) the guy casted dies after 40 seconds.
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Test 1
Actions
Wait 40.00 seconds
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 1000000000.00 damage of attack type Spells and damage type Death
Help with spell trigger
Moderator: Cheaters
-
- Honorary wc3edit.net Traitor
- Posts: 468
- Joined: December 10th, 2007, 10:50 pm
- Title: The Professional
- Location: USA
Re: Help with spell trigger
"Cause (Casting unit)..."ZilvaX wrote: Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Test 1
Actions
Wait 40.00 seconds
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 1000000000.00 damage of attack type Spells and damage type Death
Make that Triggering Unit because the unit is no longer casting. See how that works.
I'll be home late tonight, then if you don't have it fixed, I'll see what I can do.
Do you support Durchdringen? If so, add the spoiler to your sig. Durch cares for you, so show your support for Durch!
Spoiler:
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Help with spell trigger
Shouldn't matter.
The real problem is the event.
Should be "Unit Starts Effect of Ability".
The real problem is the event.
Should be "Unit Starts Effect of Ability".
-
- Member
- Posts: 52
- Joined: December 16th, 2007, 2:23 am
Re: Help with spell trigger
Yeah still dosent work
Is there still something wrong with it? Cuz it dosent work
Code: Select all
Test Skill 1
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Test Skill 1
Actions
Wait 40.00 seconds
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 1000000000.00 damage of attack type Spells and damage type Death
-
- Honorary wc3edit.net Traitor
- Posts: 468
- Joined: December 10th, 2007, 10:50 pm
- Title: The Professional
- Location: USA
Re: Help with spell trigger
I will work on it after the presidential debates. About an hour or so left.
Do you support Durchdringen? If so, add the spoiler to your sig. Durch cares for you, so show your support for Durch!
Spoiler:
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Help with spell trigger
EDIT:
Basically i just made an ability that lasts 40 seconds as a reminder when its gonna run out, And it worked. My trigger worked fine it might have mem leaks, so ask Aero fix it for me. Heres the triggers and a map for you to see for yourself. You will have problems with the trigger killing both triggers you use it on at once if your ability cd is less than 40s and you cast it on 2 units it will kill them both in squence..
Untitled Trigger 001
Events:
-A Unit Starts the effect of an ability
Conditions:
-(ability being cast) Equal to (Unholy Frenzy Custom)<---Just the name of my ability
Actions:
-Unit Group - Add (Target Unit Of Ability being Cast) to DeathGroup
-wait 40.00 seconds
-Unit Group - Pick every unit in DeathGroup and do (Unit - Kill(Picked unit))
-Unit Group - Remove (Dying Unit) from DeathGroup
Hope this helps
Basically i just made an ability that lasts 40 seconds as a reminder when its gonna run out, And it worked. My trigger worked fine it might have mem leaks, so ask Aero fix it for me. Heres the triggers and a map for you to see for yourself. You will have problems with the trigger killing both triggers you use it on at once if your ability cd is less than 40s and you cast it on 2 units it will kill them both in squence..
Untitled Trigger 001
Events:
-A Unit Starts the effect of an ability
Conditions:
-(ability being cast) Equal to (Unholy Frenzy Custom)<---Just the name of my ability
Actions:
-Unit Group - Add (Target Unit Of Ability being Cast) to DeathGroup
-wait 40.00 seconds
-Unit Group - Pick every unit in DeathGroup and do (Unit - Kill(Picked unit))
-Unit Group - Remove (Dying Unit) from DeathGroup
Hope this helps
You do not have the required permissions to view the files attached to this post.
-
- Member
- Posts: 52
- Joined: December 16th, 2007, 2:23 am
Re: Help with spell trigger
Quite cool but the problem is every players hero has that skill, which means if its casted more than once then they will die even though it hasnt been 40 seconds. (sorry im so stingy with my spells )
-
- Newcomer
- Posts: 15
- Joined: December 2nd, 2007, 8:13 pm
- Title: Clan I3c Chieftain
Re: Help with spell trigger
If I understood it correctly, you want the casting unit to take 1000000 damage ( probably equal to dying though );
Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to 'ur spell
Actions
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - 10000000.00)
Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to 'ur spell
Actions
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - 10000000.00)
lightwing
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Help with spell trigger
NO biggy, see if this works:ZilvaX wrote:Quite cool but the problem is every players hero has that skill, which means if its casted more than once then they will die even though it hasnt been 40 seconds. (sorry im so stingy with my spells )
Untitled Trigger 001
Events:
-A Unit Starts the effect of an ability
Conditions:
-(ability being cast) Equal to (Unholy Frenzy Custom)<---Just the name of my ability
Actions:
-If/and/else
Condition:
-(casting unit) is equal to Player 1
Then do:
-Unit Group - Add (Target Unit Of Ability being Cast) to DeathGroup(1)
-wait 40.00 seconds
-Unit Group - Pick every unit in DeathGroup(1) and do (Unit - Kill(Picked unit))
-Unit Group - Remove (Dying Unit) from DeathGroup(1)
Else:
If/and/else
Condition:
-(casting unit) is equal to Player 2
Then do:
-Unit Group - Add (Target Unit Of Ability being Cast) to DeathGroup(2)
-wait 40.00 seconds
-Unit Group - Pick every unit in DeathGroup(2) and do (Unit - Kill(Picked unit))
-Unit Group - Remove (Dying Unit) from DeathGroup(2)
Else:
If/and/else
Condition:
-(casting unit) is equal to Player 3
Then do:
-Unit Group - Add (Target Unit Of Ability being Cast) to DeathGroup(3)
-wait 40.00 seconds
-Unit Group - Pick every unit in DeathGroup(3) and do (Unit - Kill(Picked unit))
-Unit Group - Remove (Dying Unit) from DeathGroup(3)
ect, ect for every player that has that skill, Does this help?
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Help with spell trigger
You're trying too hard...it's really easy.
Just make the ability leave a buff behind and do this.
Events
Unit - A unit Start the effect of an ability
Conditions
Ability being cast == your ability
Actions
Wait 40.00 seconds
If Target unit of ability being cast has this buff... then
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 1000000000.00 damage of attack type Normal and damage type Normal
Just make the ability leave a buff behind and do this.
Events
Unit - A unit Start the effect of an ability
Conditions
Ability being cast == your ability
Actions
Wait 40.00 seconds
If Target unit of ability being cast has this buff... then
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 1000000000.00 damage of attack type Normal and damage type Normal