Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Information About Dummy UnitIt has Locust ability
Fly moment type
Moment speed that missle should have
Missle projectile model
VariablesA Point variable named TempLoc
An Unit variable named TempUnit
An Unit Group variable named MissleGroup
Custom script: call SetUnitX(GetEnumUnit(),GetUnitX(GetEnumUnit())+Cos(GetUnitFacing(GetEnumUnit()*bj_DEGTORAD)*<speed>*0.03)
Custom script: call SetUnitY(GetEnumUnit(),GetUnitX(GetEnumUnit())+Cos(GetUnitFacing(GetEnumUnit()*bj_DEGTORAD)*<speed>*0.03)
Custom script: call SetUnitX(GetEnumUnit(),GetUnitX(GetEnumUnit())+Cos(GetUnitFacing(GetEnumUnit())*bj_DEGTORAD)*50)
Custom script: call SetUnitY(GetEnumUnit(),GetUnitY(GetEnumUnit())+Sin(GetUnitFacing(GetEnumUnit())*bj_DEGTORAD)*50)
Need_O2 said::/ Idk it should work
check where you put it
Projectile Start

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Magma Ball

Actions


Set TempPoint = (Position of (Triggering unit))


Set Target_Point = (Target point of ability being cast)


Unit - Create 1 Dummy Fireball for (Owner of (Triggering unit)) at TempPoint facing (Angle from TempPoint to Target_Point) degrees


Unit Group - Add (Last created unit) to ProjectileGroup


Unit - Set the custom value of (Last created unit) to (Level of Magma Ball for (Triggering unit))


Unit - Add a 1.50 second Generic expiration timer to (Last created unit)


Custom script: call RemoveLocation(udg_TempPoint)


Custom script: call RemoveLocation(udg_Target_Point)


Custom script: call DestroyGroup(bj_lastCreatedGroup)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Number of units in ProjectileGroup) Equal to 1



Then - Actions




Trigger - Turn on Projectile Travel <gen>



Else - Actions
Projectile Travel (Initially off)

Events


Time - Every 0.05 seconds of game time

Conditions


(Number of units in ProjectileGroup) Greater than 0

Actions


Unit Group - Pick every unit in ProjectileGroup and do (Actions)



Loop - Actions




Set MagmaBall = (Picked unit)




Set TempPoint = (Position of (Picked unit))




Set TempPoint2 = (TempPoint offset by 50.00 towards (Facing of MagmaBall) degrees)




Unit - Move MagmaBall instantly to TempPoint2




Custom script: set bj_wantDestroyGroup = true




Unit Group - Pick every unit in (Units within 66.00 of TempPoint) and do (Actions)





Loop - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(MagmaBall is alive) Equal to True








((Picked unit) belongs to an enemy of (Owner of MagmaBall)) Equal to True








((Picked unit) is alive) Equal to True







Then - Actions








Unit - Create 1 Dummy for (Owner of MagmaBall) at TempPoint facing (Random angle) degrees








Set Dummy2 = (Last created unit)








Animation - Change Dummy2's size to (150.00%, 150.00%, 150.00%) of its original size








Unit - Add Magma Ball (Fan) to Dummy2








Unit - Set level of Magma Ball (Fan) for Dummy2 to (Custom value of MagmaBall)








Unit - Order Dummy2 to Night Elf Warden - Fan Of Knives








Unit - Kill Dummy2








Set Dummy2 = No unit








Unit - Create 1 Dummy for (Owner of MagmaBall) at TempPoint facing (Random angle) degrees








Set Dummy1 = (Last created unit)








Unit - Add Magma Flames (Magma Ball) to Dummy1








Unit - Set level of Magma Flames (Magma Ball) for Dummy1 to (Custom value of MagmaBall)








Unit - Order Dummy1 to Human Blood Mage - Flame Strike TempPoint








Unit - Add a 7.00 second Generic expiration timer to Dummy1








Unit - Create 1 ExplosionEffectDummy for (Owner of MagmaBall) at TempPoint facing (Random angle) degrees








Set Dummy0 = (Last created unit)








Animation - Change Dummy0's size to (260.00%, 260.00%, 500.00%) of its original size








Unit - Kill Dummy0








Unit Group - Remove MagmaBall from ProjectileGroup








Unit - Kill MagmaBall








If (All Conditions are True) then do (Then Actions) else do (Else Actions)









If - Conditions










(Number of units in ProjectileGroup) Equal to 0









Then - Actions










Trigger - Turn off (This trigger)









Else - Actions








Custom script: call RemoveLocation(udg_TempPoint)








Custom script: call RemoveLocation( udg_TempPoint2 )








Skip remaining actions







Else - Actions








If (All Conditions are True) then do (Then Actions) else do (Else Actions)









If - Conditions










(MagmaBall is alive) Equal to False









Then - Actions










Unit - Create 1 Dummy for (Owner of MagmaBall) at TempPoint facing (Random angle) degrees










Set Dummy2 = (Last created unit)










Animation - Change Dummy2's size to (150.00%, 150.00%, 150.00%) of its original size










Unit - Add Magma Ball (Fan) to Dummy2










Unit - Set level of Magma Ball (Fan) for Dummy2 to (Custom value of MagmaBall)










Unit - Order Dummy2 to Night Elf Warden - Fan Of Knives










Unit - Kill Dummy2










Set Dummy2 = No unit










Unit - Create 1 ExplosionEffectDummy for (Owner of MagmaBall) at TempPoint facing (Random angle) degrees










Set Dummy0 = (Last created unit)










Animation - Change Dummy0's size to (260.00%, 260.00%, 500.00%) of its original size










Unit - Kill Dummy0










Unit - Create 1 Dummy for (Owner of MagmaBall) at TempPoint facing (Random angle) degrees










Set Dummy1 = (Last created unit)










Unit - Add Magma Flames (Magma Ball) to Dummy1










Unit - Set level of Magma Flames (Magma Ball) for Dummy1 to (Custom value of MagmaBall)










Unit - Order Dummy1 to Human Blood Mage - Flame Strike TempPoint










Unit - Add a 5.00 second Generic expiration timer to Dummy1










Unit Group - Remove MagmaBall from ProjectileGroup










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Number of units in ProjectileGroup) Equal to 0











Then - Actions












Trigger - Turn off (This trigger)











Else - Actions









Else - Actions




Custom script: call RemoveLocation(udg_TempPoint)




Custom script: call RemoveLocation( udg_TempPoint2 )
--- This part make it non-MUI ---
Set MagmaBall = (Picked unit)
Set TempPoint = (Position of (Picked unit))
Set TempPoint2 = (TempPoint offset by 50.00 towards (Facing of MagmaBall) degrees)
Unit - Move MagmaBall instantly to TempPoint2
?? huh? I use 0.05 timer in my trigger...Need_O2 said:About Moment: Really strange it should appear like projectile moment for a 0.03 timer
There's problem with what? Changing the values of variables every time trigger fires? Or did you miss the "'nt"Need_O2 said:Since you change variable in every usage it should be a problem
