Trigger help?

A place to talk about general WC3 and EotA related stuff.
Post Reply
Message
Author
perambulation
Wanderer
Wanderer
Posts: 16
Joined: January 12th, 2007, 7:06 pm

Trigger help?

#1 Post by perambulation »

Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Shadowbolt Volley (Thunderclap Base)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Shadowbolt Volley (Thunderclap Base) for (Triggering unit)) Equal to 1
Then - Actions
Set sbolt_damage = ((Real((Intelligence of (Casting unit) (Include bonuses)))) x 0.60)
Unit Group - Pick every unit in (Units within 800.00 of (Position of (Triggering unit))) and do (Actions)
Loop - Actions
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Unit - Create 1 dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing (270.0) degrees
Unit - Add Shadowbolt (Death Coil Base) to (Last created unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Undead Death Knight - Death Coil (Picked unit)
Unit - Order (Last created unit) to damage (Picked unit) for sbolt_damage using attack type Spells and damage type Death.
Wait 1.50 seconds
Else - Actions
Do nothing


The problem is that it doesn't cast three waves like it should, so I'm asking for help because I'm too lazy to really go indepth into it. =P

Although I'm assuming it has something to do with the events or it being integer A rather than integer variable...?

User avatar
Dekar
Jelly Doughnut
Posts: 1433
Joined: May 27th, 2006, 8:13 am
Realm: Northrend (Europe)
Battle.net name: Dekar
Location: Germany

#2 Post by Dekar »

Asking other people to make a working trigger because you are too lazy? :roll:

At least write exactly what does work and what doesnt work.

Dummys created, skill given to them, only works for the first dummy unit, etc ...
<EotA@Azeroth> YAKS GO MOOOOOOOOOOOOOOOOOOOOOOOO

Dekar: the ultimate ocean themed hero should buff and depend on spawn waves!
DarnYak: why is that
Dekar: WAVES
Dekar: :D
DarnYak: i was afraid that was the answer

perambulation
Wanderer
Wanderer
Posts: 16
Joined: January 12th, 2007, 7:06 pm

#3 Post by perambulation »

The problem is that it doesn't cast three waves like it should
Either way I fixed it, but another problem has risen, if the damage is ever about to kill someone, it kills the unit before the missile spell has time to cast. Adding a wait condition stops the unit from damaging the unit at all, any idea how to fix this?

(the unit cast and damage is still:
Unit - Add Shadowbolt (Death Coil Base) to (Last created unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Undead Death Knight - Death Coil (Picked unit)
Unit - Order (Last created unit) to damage (Picked unit) for sbolt_damage using attack type Spells and damage type Death.
Wait 1.50 seconds )

User avatar
Dekar
Jelly Doughnut
Posts: 1433
Joined: May 27th, 2006, 8:13 am
Realm: Northrend (Europe)
Battle.net name: Dekar
Location: Germany

#4 Post by Dekar »

Have an event that detects when the spell deals damage to the unit.

Can be made with ?unit takes damage?, periodical buff checking like shadowstrike or immolation/aura/range check on a dummy that replaces the spell missile.
<EotA@Azeroth> YAKS GO MOOOOOOOOOOOOOOOOOOOOOOOO

Dekar: the ultimate ocean themed hero should buff and depend on spawn waves!
DarnYak: why is that
Dekar: WAVES
Dekar: :D
DarnYak: i was afraid that was the answer

User avatar
SeasonsOfLove
Resident
Resident
Posts: 118
Joined: May 27th, 2006, 8:18 pm

#5 Post by SeasonsOfLove »

Damage detection is pretty near-impossible to do (well, it's possible, but it takes a mega-fuckton of work to do)

User avatar
Tehw00tz
Corpse
Corpse
Posts: 1520
Joined: August 13th, 2006, 3:14 pm
Realm: Azeroth (U.S. East)
Battle.net name: ДɷϣRØLEɷӟP
Location: New Orleans, ДɷϣRØLEɷӟP, ДɷϣRØLEɷӟP

#6 Post by Tehw00tz »

Then how did Yak do it? (No pun intended)
ДɷϣRØLEɷӟP

User avatar
SeasonsOfLove
Resident
Resident
Posts: 118
Joined: May 27th, 2006, 8:18 pm

#7 Post by SeasonsOfLove »

Tehw00tz wrote:Then how did Yak do it? (No pun intended)
I'm not sure. There's some methods to do it, but not many. WC3C has some. They probably use "Unit issues an order" triggers, or something like that.

perambulation
Wanderer
Wanderer
Posts: 16
Joined: January 12th, 2007, 7:06 pm

#8 Post by perambulation »

Dekar wrote:Have an event that detects when the spell deals damage to the unit.

Can be made with ?unit takes damage?, periodical buff checking like shadowstrike or immolation/aura/range check on a dummy that replaces the spell missile.
I was hoping for a better way, but since no one has any ideas other than more than one trigger I can just do a seperate trigger with a Unit casts a spell event. =P

User avatar
Fishin4pigeon
Visitor
Visitor
Posts: 25
Joined: October 2nd, 2006, 12:01 pm

#9 Post by Fishin4pigeon »

You *can* use a spell that adds a buff, then create a trigger that affects units with that buff.
I shall forever continue my search for the elusive phat lewt.

perambulation
Wanderer
Wanderer
Posts: 16
Joined: January 12th, 2007, 7:06 pm

#10 Post by perambulation »

Fishin4pigeon wrote:You *can* use a spell that adds a buff, then create a trigger that affects units with that buff.
The trigger would involve creating more units, and although this is probably the best way to go, with the spell having no limits on the amount of units targetable having units to be created again could cause severe lagging, unless I add all initial spawned units to a unit group and cause them to damage the units, but I don't know if that would work.

User avatar
Dekar
Jelly Doughnut
Posts: 1433
Joined: May 27th, 2006, 8:13 am
Realm: Northrend (Europe)
Battle.net name: Dekar
Location: Germany

#11 Post by Dekar »

Just change the Deathcoil to Acidbomb or something else with buff. :roll:
<EotA@Azeroth> YAKS GO MOOOOOOOOOOOOOOOOOOOOOOOO

Dekar: the ultimate ocean themed hero should buff and depend on spawn waves!
DarnYak: why is that
Dekar: WAVES
Dekar: :D
DarnYak: i was afraid that was the answer

Post Reply