HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Frozen Orb(Help/Correction)

01-02-2004, 06:15 PM#1
SirSalute
I had found out the triggers for the custom spell frozen orb within this site. Its created by DragonSlayerV, and I add it into my map. However, I need the trigger to be more flexible so that other players are able to use the spell during the game. So I make some changes to it.

Sadly, the spell no longer worked out as it meant to be and the game becomes very laggy. The direction of that orb is always at a 0 degree angle. Please help me correct my mistake.

The variables for the triggers are
AngleOfOrbShard Real o(default)
FrozenOrbPlayer Player -none-
OrbDummy Unit -none-

The two triggers are as followed:

FrozenOrb1
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Frozen Orb (Ultimate)
Actions
Trigger - Turn off (This trigger)
Set FrozenOrbPlayer = (Owner of (Casting unit))
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of (Casting unit)) facing (Target point of issued order)
Set OrbDummy = (Last created unit)
Unit - Add a 3.00 second Water Elemental expiration timer to OrbDummy
Unit - Order OrbDummy to Move To ((Target point of issued order) offset by 1000.00 towards (Angle from (Position of (Casting unit)) to (Target point of issued order)) degrees)
Set AngleOfOrbShard = 0.00
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (Target point of issued order)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards AngleOfOrbShard degrees)
-------- --- --------
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (Target point of ability being cast)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards (AngleOfOrbShard + 180.00) degrees)
-------- --- --------
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (Target point of ability being cast)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards (AngleOfOrbShard + 90.00) degrees)
-------- --- --------
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (Target point of ability being cast)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards (AngleOfOrbShard + 270.00) degrees)
-------- 88 --------
For each (Integer B) from 1 to 3, do (Actions)
Loop - Actions
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (Target point of issued order)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards (Random real number between 0.00 and 360.00) degrees)
-------- 88 --------
Set AngleOfOrbShard = (AngleOfOrbShard + 20.00)
Wait 0.00 seconds
Trigger - Turn on (This trigger)

FrozenOrb2
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Orb
Actions
For each (Integer A) from 1 to 18, do (Actions)
Loop - Actions
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (Target point of issued order)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards ((Real((Integer A))) x 20.00) degrees)
Wait 0.00 seconds
For each (Integer A) from 1 to 18, do (Actions)
Loop - Actions
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (Target point of issued order)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards ((Real((Integer A))) x 20.00) degrees)


Please help me correct my mistake.
01-02-2004, 07:48 PM#2
Extrarius
Wrong forum. You want the 'Map Development' forum.
01-03-2004, 10:46 AM#3
SirSalute
oh i'm sorry, thought this forumn is about triggers. Can some1 help me or teach me how to move this to the correct place? Or shall i restart a new thread there?
01-04-2004, 07:29 AM#4
SirSalute
8)) Thanks for moving the thread for me. Now, can someone please help me to correct the mistake of the triggers?
Thanks alot.
01-04-2004, 07:52 AM#5
Xinlitik
DragonSlayerV made the spell fire on Unit ordered targeting object. So, you need to do this:

Starts the effect of an ability.
ability = f orb
If target unit of ability being cast = no unit, then do set ForbvariablePoint= target point of ability being cast, else do set ForbvariablePoint= position of target unit of ability being cast.

Change all target point of issued order to that variable.

Here it is, fixed.

Code:
FrozenOrb1
Events
Unit - A unit Starts the effects of an ability
Conditions
(Ability being cast) Equal to Frozen Orb (Ultimate)
Actions
Set FrozenOrbPlayer = (Owner of (Casting unit))
If target unit of ability being cast = No unit, then do set ForbVariablePoint = target point of ability being cast, else do set ForbVariablePoint = position of target unit of ability being cast.
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of (Casting unit)) facing (ForbVariablePoint)
Set OrbDummy = (Last created unit)
Unit - Add a 3.00 second Water Elemental expiration timer to OrbDummy
Unit - Order OrbDummy to Move To ((ForbVariablePoint) offset by 1000.00 towards (Angle from (Position of (Casting unit)) to (ForbVariablePoint)) degrees)
Set AngleOfOrbShard = 0.00
For each (Integer A) from 1 to 11, do (Actions)
Loop - Actions
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (ForbVariablePoint)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards AngleOfOrbShard degrees)
-------- --- --------
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (ForbVariablePoint)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards (AngleOfOrbShard + 180.00) degrees)
-------- --- --------
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (ForbVariablePoint)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards (AngleOfOrbShard + 90.00) degrees)
-------- --- --------
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (ForbVariablePoint)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards (AngleOfOrbShard + 270.00) degrees)
-------- 88 --------
For each (Integer B) from 1 to 3, do (Actions)
Loop - Actions
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (ForbVariablePoint)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards (Random real number between 0.00 and 360.00) degrees)
-------- 88 --------
Set AngleOfOrbShard = (AngleOfOrbShard + 20.00)

FrozenOrb2
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Orb
Actions
For each (Integer A) from 1 to 18, do (Actions)
Loop - Actions
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (ForbVariablePoint)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards ((Real((Integer A))) x 20.00) degrees)
Wait 0.00 seconds
For each (Integer A) from 1 to 18, do (Actions)
Loop - Actions
Unit - Create 1 Orb for FrozenOrbPlayer at (Position of OrbDummy) facing (ForbVariablePoint)
Unit - Hide (Last created unit)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Add OrbShards (Orb) to (Last created unit)
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm ((Position of OrbDummy) offset by 256.00 towards ((Real((Integer A))) x 20.00) degrees)
01-04-2004, 11:55 AM#6
SirSalute
Oh great, Thanks ALOT, i'll add you in my credits too. =P
thanks again, i go try it out now.
01-04-2004, 02:18 PM#7
linkmaster23
i DIDNT MAKE Frozen Orb!!!! I dont know HOW it got into that Folder. But i DID NOT MAKE IT> I forget who did it....sigh. Well whoever it is, im just letting them know now, i did not make it. All though i know how. :-D
01-04-2004, 06:46 PM#8
zotax
Um, linkmaster hes stated twice now that the spell was created by DragonSlayerV.
01-04-2004, 07:41 PM#9
linkmaster23
omg...look at my sig. What does it say? DragonSlayer....Hrmm...I figured i wouldnt have to put the friggin V at the end, cuz io have like 3 different DragonSlayer names. IV, V , XVX. So :P. Sigh. I think ino my self.
01-05-2004, 05:11 AM#10
SirSalute
=P
thanks linkmaster23 the dragonslayer for the creation of this marvelous spell. Thanks. May get more spells from your specialize folder. Thanks again. I won't forget to add both of your name in my map description. =P