HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger help!

04-07-2010, 05:21 AM#1
BuRnInSpartan
Trigger:
Calling of Fire
Collapse Events
Unit - A unit Begins channeling an ability
Collapse Conditions
(Ability being cast) Equal to Calling of Fire
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Calling of Fire for (Casting unit)) Equal to 1
Collapse Then - Actions
Unit - Create 1 Dummy for Player 1 (Red) at ((Position of (Targeted unit)) offset by (90.00, 0.00)) facing (Position of (Targeted unit))
Set CoFD1 = (Last created unit)
Unit - Hide CoFD1
Unit - Create 1 Dummy for Player 1 (Red) at ((Position of (Targeted unit)) offset by (180.00, 0.00)) facing (Position of (Targeted unit))
Set CoFD2 = (Last created unit)
Unit - Hide CoFD2
Unit - Create 1 Dummy for Player 1 (Red) at ((Position of (Targeted unit)) offset by (270.00, 0.00)) facing (Position of (Targeted unit))
Set CoFD3 = (Last created unit)
Unit - Hide CoFD3
Unit - Create 1 Dummy for Player 1 (Red) at ((Position of (Targeted unit)) offset by (360.00, 0.00)) facing (Position of (Targeted unit))
Set CoFD4 = (Last created unit)
Unit - Hide CoFD4
Hero - Learn skill for CoFD1: Flame Path
Hero - Learn skill for CoFD2: Flame Path
Hero - Learn skill for CoFD3: Flame Path
Hero - Learn skill for CoFD4: Flame Path
Unit - Order CoFD1 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD2 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD3 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD4 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Remove CoFD1 from the game
Unit - Remove CoFD2 from the game
Unit - Remove CoFD3 from the game
Unit - Remove CoFD4 from the game
Else - Actions

Why isn't anything happening!? i made dummies that are set in unit editor to be elevated off the ground and they should be casting my spell. If anyone knows how to fix this plz let me know. also i want a cross pattern for the shockwaves i'm not sure if i did that right either
04-07-2010, 06:24 AM#2
Veev
You're offsetting the x by what you think is angle. You need to use "Point with Polar Offset." I'll warn you right now that that function leaks horribly.
Trigger:
Set tPoint = ((Position of (Casting unit)) offset by 400.00 towards 90.00 degrees)
You want to create the Dummies at "tPoint" and save them to a variable. Likewise, you should save the target to a variable in the very first line of the trigger and then order them to target the target variable.

Also, do not remove the units. Give them an expiration timer instead with a time of 2 or 3 seconds.

And, you should not be using Hero Abilities for dummies in the way you're doing it now. You should just make them unit abilities and add the unit ability to each dummy.
04-07-2010, 02:06 PM#3
Ikx_1
The spell doesn't work because the CoFD's are hided, remove the hides and they will show up with shockwaves. The unit's must stand in the ground some time for create a shockwave, because if you do just in the trigger now, the CoFD's will disappear just when they are spawned.
04-07-2010, 08:45 PM#4
BuRnInSpartan
hmm still can't get it to work. my casting spell to start the trigger is firebolt. here is what i changed.

Trigger:
Calling of Fire
Collapse Events
Unit - A unit Begins channeling an ability
Collapse Conditions
(Ability being cast) Equal to Calling of Fire
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Calling of Fire for (Casting unit)) Equal to 1
Collapse Then - Actions
Set P1 = ((Position of (Targeted unit)) offset by (400.00, 90.00))
Set P2 = ((Position of (Targeted unit)) offset by (400.00, 180.00))
Set P3 = ((Position of (Targeted unit)) offset by (400.00, 270.00))
Set P4 = ((Position of (Targeted unit)) offset by (400.00, 360.00))
Unit - Create 1 Dummy for Player 1 (Red) at P1 facing (Position of (Targeted unit))
Set CoFD1 = (Last created unit)
Unit - Hide CoFD1
Unit - Create 1 Dummy for Player 1 (Red) at P2 facing (Position of (Targeted unit))
Set CoFD2 = (Last created unit)
Unit - Hide CoFD2
Unit - Create 1 Dummy for Player 1 (Red) at P3 facing (Position of (Targeted unit))
Set CoFD3 = (Last created unit)
Unit - Hide CoFD3
Unit - Create 1 Dummy for Player 1 (Red) at P4 facing (Position of (Targeted unit))
Set CoFD4 = (Last created unit)
Unit - Hide CoFD4
Unit - Order CoFD1 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD2 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD3 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD4 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Add a 2.00 second Generic expiration timer to CoFD1
Unit - Add a 2.00 second Generic expiration timer to CoFD2
Unit - Add a 2.00 second Generic expiration timer to CoFD3
Unit - Add a 2.00 second Generic expiration timer to CoFD4
Else - Actions
04-08-2010, 12:37 AM#5
Fledermaus
Well since Firebolt isn't a channelling spell, maybe you should be using "starts the effect of an ability"?
04-08-2010, 02:13 AM#6
BuRnInSpartan
fixed your point but still doesn't work.
04-08-2010, 04:02 AM#7
Fledermaus
Do the dummies have the spell on them and enough mana to cast it (if it costs mana)?
04-08-2010, 04:34 AM#8
Veev
I think you're still ignoring my point. You're offseting the X and Y coordinates. You are NOT using the POLAR OFFSET. All dummies are going to be 400 units to the right of your target and then progressively increase in the Y direction...

Double check what Fledermaus suggested and please use polar offset.

EDIT: I'm not sure but you're hiding all the dummies before you tell them to do anything. I wonder if this is causing problems. Remove/disabled all instances of "Hide Unit" and see if that makes a difference.
04-08-2010, 03:58 PM#9
BuRnInSpartan
ok i double checked and i had made my dummies have mana (even though i used peasants for dummies) and i made the spell cost 0 mana anyway. also i noticed that the dummies appear in a perfect fashion but at 7 o clock of the targeted unit not around him at 12 3 6 and 9 ill upload a picture. but here's the trigger with the polar offset edit.

Trigger:
Calling of Fire
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Calling of Fire
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Calling of Fire for (Casting unit)) Equal to 1
Collapse Then - Actions
Set P1 = ((Position of (Targeted unit)) offset by 400.00 towards 90.00 degrees)
Set P2 = ((Position of (Targeted unit)) offset by 400.00 towards 180.00 degrees)
Set P3 = ((Position of (Targeted unit)) offset by 400.00 towards 270.00 degrees)
Set P4 = ((Position of (Targeted unit)) offset by 400.00 towards 360.00 degrees)
Unit - Create 1 Dummy for Player 1 (Red) at P1 facing (Position of (Targeted unit))
Set CoFD1 = (Last created unit)
Unit - Create 1 Dummy for Player 1 (Red) at P2 facing (Position of (Targeted unit))
Set CoFD2 = (Last created unit)
Unit - Create 1 Dummy for Player 1 (Red) at P3 facing (Position of (Targeted unit))
Set CoFD3 = (Last created unit)
Unit - Create 1 Dummy for Player 1 (Red) at P4 facing (Position of (Targeted unit))
Set CoFD4 = (Last created unit)
Unit - Order CoFD1 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD2 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD3 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD4 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Add a 2.00 second Generic expiration timer to CoFD1
Unit - Add a 2.00 second Generic expiration timer to CoFD2
Unit - Add a 2.00 second Generic expiration timer to CoFD3
Unit - Add a 2.00 second Generic expiration timer to CoFD4
Else - Actions

i got the photo but its in tga format. so it can't be opened.
04-08-2010, 06:36 PM#10
Veev
I think GIMP (free software) can convert .tga to other formats. Well, you should be able to save it as another format which I guess is different than converting... Anyway, use GIMP or something and make it a JPG or something.

EDIT: You may need a plug-in to open .tga files but it should be free...
04-08-2010, 07:57 PM#11
Won-Qu
Quote:
Originally Posted by BuRnInSpartan
Trigger:
Calling of Fire
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Calling of Fire
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Calling of Fire for (Casting unit)) Equal to 1
Collapse Then - Actions
Set P1 = ((Position of (Targeted unit)) offset by 400.00 towards 90.00 degrees)
Set P2 = ((Position of (Targeted unit)) offset by 400.00 towards 180.00 degrees)
Set P3 = ((Position of (Targeted unit)) offset by 400.00 towards 270.00 degrees)
Set P4 = ((Position of (Targeted unit)) offset by 400.00 towards 360.00 degrees)
Unit - Create 1 Dummy for Player 1 (Red) at P1 facing (Position of (Targeted unit))
Set CoFD1 = (Last created unit)
Unit - Create 1 Dummy for Player 1 (Red) at P2 facing (Position of (Targeted unit))
Set CoFD2 = (Last created unit)
Unit - Create 1 Dummy for Player 1 (Red) at P3 facing (Position of (Targeted unit))
Set CoFD3 = (Last created unit)
Unit - Create 1 Dummy for Player 1 (Red) at P4 facing (Position of (Targeted unit))
Set CoFD4 = (Last created unit)
Unit - Order CoFD1 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD2 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD3 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Order CoFD4 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Unit - Add a 2.00 second Generic expiration timer to CoFD1
Unit - Add a 2.00 second Generic expiration timer to CoFD2
Unit - Add a 2.00 second Generic expiration timer to CoFD3
Unit - Add a 2.00 second Generic expiration timer to CoFD4
Else - Actions

First of all
Trigger:
Unit - Order CoFD1 to Orc Tauren Chieftain - Shockwave (Position of (Targeted unit))
Use
Trigger:
Unit - Order CoFD1 to Orc Tauren Chieftain - Shockwave (Position of (Target unit of ability being cast))

-----------------------------------

Less important:
Trigger:
Set TempPlayer = Owner of (Casting unit)
And
Trigger:
Unit - Create 1 Dummy for TempPlayer at P1 facing (Position of (Target unit of ability being cast))
04-09-2010, 02:36 AM#12
BuRnInSpartan
excellent everything works as intended now! thank you so much. i had to change anything with targeted unit to unit targeted by ability in the position of dummies too!