HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Okay, lets try somthing new

08-17-2006, 11:58 PM#1
st33m
So, I'm trying to make a spell that Breath of Frost's enemy units, then frost nova's them. (Actully, if theres a better way, what I'm trying to do is slow units in a line).

So what I have set up is:

Trigger:
Breath of Frost
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Breath of Frost
Collapse Actions
Trigger - Turn on Breath of Frost Effect <gen>

Trigger:
Breath of Frost Effect
Collapse Events
Time - Every 0.03 seconds of game time
Conditions
Collapse Actions
Set Temp_Group = (Units in (Entire map) matching (((Matching unit) has buff Breath of Frost) Equal to True))
Collapse Unit Group - Pick every unit in Temp_Group and do (Actions)
Collapse Loop - Actions
Unit - Create 1 Dummy for (Owner of BreathofFrostCaster) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Breath of Frost Effect (Neutral Hostile) to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Picked unit)
Unit - Remove Breath of Frost buff from (Picked unit)
Custom script: call DestroyGroup (udg_Temp_Group)
Trigger - Turn off (This trigger)

The spells I have are:

Breath of Frost (Normal breath of frost (can I turn this into a line? Hell I may be doing this all wrong))

Breath of Frost Effect (0 damage Frost Nova).

Previously I had a lot of leaks there, so I tried fixing them (I think wrong). Now it Frost Nova's one unit.

So uh.

A) Is there a better way to make this spell.

B) If not, how do I fix my current problem (IE it doesnt work, I think I tried fixing the leaks wrong)
08-18-2006, 12:00 AM#2
Mezzer
The simplest way is to do this is (if you don't wanna do some math) create some dummy units in a line spaced apart from each other and pick the units around the and hit them with a slow effect
08-18-2006, 12:01 AM#3
st33m
Aye, but I would think it would be easier to do what I'm doing, and place a buff on everything then Frost Nova them...

Allthough I've already proved that I cant do that effectivly...
08-18-2006, 12:28 AM#4
st33m
Update: OK, I got it working, sort of.

The important parts are:

A) The spell DOES NOT WORK the first time it is cast, it doesnt create the Frost Novas.
B) The SECOND TIME it is cast, it works perfectly.

Trigger:
Breath of Frost
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Breath of Frost
Collapse Actions
Set BreathofFrostCaster = (Casting unit)
Trigger - Turn on Breath of Frost Effect <gen>
Trigger - Run Breath of Frost Effect <gen> (ignoring conditions)

Trigger:
Breath of Frost Effect
Events
Conditions
Collapse Actions
Set Temp_Group = (Units in (Entire map) matching (((Matching unit) has buff Breath of Frost) Equal to True))
Collapse Unit Group - Pick every unit in Temp_Group and do (Actions)
Collapse Loop - Actions
Unit - Cause BreathofFrostCaster to damage (Picked unit), dealing ((25.00 x (Real((Level of Breath of Frost for BreathofFrostCaster)))) + ((Real((Strength of BreathofFrostCaster (Include bonuses)))) x (0.07 + (0.03 x (Real((Level of Breath of Frost for BreathofFrostCaster))))))) damage of attack type Spells and damage type Cold
Unit - Create 1 Dummy for (Owner of BreathofFrostCaster) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Breath of Frost Effect (Neutral Hostile) to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Picked unit)
Unit - Remove Breath of Frost buff from (Picked unit)
Custom script: call DestroyGroup (udg_Temp_Group)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Number of units in (Units in (Playable map area) matching (((Matching unit) has buff Breath of Frost) Equal to True))) Equal to 0
Collapse Then - Actions
Trigger - Turn off (This trigger)
Collapse Else - Actions
Trigger - Run (This trigger) (ignoring conditions)

EDIT: My problem now is, why is it not working the first time it is cats?
08-18-2006, 03:11 AM#5
darkwulfv
Perhaps it has something to do with the Variable pertaining to the casting unit? I don't know much about triggering, so I don't see whats wrong...
EDIT: Wait, what about those actions at the bottom, that turn the trigger on/off. Maybe those are causing issues?
08-18-2006, 03:17 AM#6
refl3ction
maybe u could preload the ability

wait... that only stops lag the fist time it is loaded but oh well u can try
08-18-2006, 05:16 AM#7
st33m
I will attempt it.

EDIT: Wait, how do I attempt it.

>_>