HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Breathe of frost effect

05-28-2005, 04:27 PM#1
Limb_Smasher
For a trigger i have, I have it create the breath of frost effect (The big chunck of ice). but the problem is it doesnt go away. I even made a variable for it and then at the end of the trigger i have it removed/ destroyed, but it doesnt go away...
05-28-2005, 05:47 PM#2
oNdizZ
If you could show us the trigger in question we would have better chances at helping you.
05-28-2005, 06:03 PM#3
Limb_Smasher
Winter Chill
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Winter's Chill (Ice Mage)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Winter's Chill (Ice Mage) for (Triggering unit)) Equal to 4
Then - Actions
Unit Group - Pick every unit in (Units within 600.00 of (Position of (Triggering unit)) matching (((Matching unit) belongs to an enemy of (Triggering player)) Equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is dead) Equal to True
Then - Actions
Do nothing
Else - Actions
Unit - Create 1 Winter's Chill Freezer for (Triggering player) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Set Level of Winter's Chill (Freezer) for (Last created unit) to (Level of Winter's Chill (Ice Mage) for (Triggering unit))
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\FreezingBreath\FreezingBre athTargetArt.mdl
Set WinterEffect = (Last created special effect)

Wait 3.00 seconds
Special Effect - Destroy WinterEffect
Else - Actions


There's the trigger, the if/then/else statement is the same for all 4 levels.
05-28-2005, 06:15 PM#4
oNdizZ
If my eyes arent betraying me. it seems as if you have these actions:
Code:
Else - Actions
Unit - Create 1 Winter's Chill Freezer for (Triggering player) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Set Level of Winter's Chill (Freezer) for (Last created unit) to (Level of Winter's Chill (Ice Mage) for (Triggering unit))
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\FreezingBreath\FreezingBre athTargetArt.mdl
Set WinterEffect = (Last created special effect)

Wait 3.00 seconds
Special Effect - Destroy WinterEffect
Else - Actions

in the "Pick every unit in group". That could screw it up a bit. my suggestion is that you either use a Special Effect Array or locals. for you i would recommend the array even if the locals are way much better in this case.

You will have to use an temporary integer that raises with 1 every time (ie. set TempInt = TempInt + 1) aswell becouse of that you didnt use a loop.
05-28-2005, 07:21 PM#5
Vexorian
You need to use local variables so you'll need JASS
06-03-2005, 11:03 AM#6
Guest
Can't u create a unit with breath of frost model and the locust ability, then kill this last created unit?
06-03-2005, 11:25 AM#7
Earth-Fury
no, stock, but you can crate units like that, add them to a unitgroup, then at the end kill all the units in the unit group.

and vex, stop recruiting JASS coders damn you! every 2nd post i see from u is saying "use JASS!"... its annoying :P
06-03-2005, 08:17 PM#8
MindWorX
Quote:
Originally Posted by Earth-Fury
no, stock, but you can crate units like that, add them to a unitgroup, then at the end kill all the units in the unit group.

and vex, stop recruiting JASS coders damn you! every 2nd post i see from u is saying "use JASS!"... its annoying :P
JASS is the way forward!!!!!111oneoneone!!11elleven...
06-04-2005, 01:13 AM#9
Limb_Smasher
yeah actually i thank vex for putting that up cause I looked at it and studied it and finished the tutorial... but i still have a question: how could i execute this trigger successfully by using local variables? much appreciated