Moderator
M
Moderator
|
|
function SaveMyLightning takes real x1, real y1, real z1, real x2, real y2, real z2 returns nothing //x1 = dummy's x, y1 = dummy's y, z1 = starting height, x2 = Center's x, y2 = Center's y, z2 = maxheight
call SaveLightningHandle( udg_PD_Hashtable, GetHandleId(udg_PD_TmpHandle), ( ( udg_PD_Loop + udg_PD_TmpInteger2 ) * 2 ), AddLightningEx( udg_PD_Lightning_Type, true, x1, y1, z1, x2, y2, z2 ) )
endfunction
function MoveMyLightning takes real x1, real y1, real z1, real x2, real y2, real z2 returns nothing //x1 = dummies' x, y1 = dummies' y, z1 = dummies' height, x2 = Center's x, y2 = Center's y, z2 = maxheight
if LoadBoolean( udg_PD_Hashtable, GetHandleId( udg_PD_TmpHandle ), StringHash( "Rise" ) ) == true then
call MoveLightningEx( LoadLightningHandle( udg_PD_Hashtable, GetHandleId( udg_PD_TmpHandle2 ), ( ( udg_PD_Loop + udg_PD_TmpInteger ) * 2 ) ), true, x1, y1, (z1 + GetLocationZ( udg_PD_TmpPoint2 ) + 40.00 ), x2, y2, z2 )
else
call MoveLightningEx( LoadLightningHandle( udg_PD_Hashtable, GetHandleId( udg_PD_TmpHandle2 ), ( ( udg_PD_Loop + udg_PD_TmpInteger ) * 2 ) ), true, x1, y1, 0.00, x2, y2, z2 )
endif
endfunction
Credits: EarthNova model made by JetFangoInferno
Important: All Modifications should be done in the Configuration Trigger, each configuration is explained and elaborated.
How to Import/Install:
=Preparing for import=
Go to: File => Preferences => General => Check the box labelled ''Automatically create unknown variables while pasting trigger data''
=Speeding up import of object data-
Go to: Window => make sure the 'brush list' is unchecked =>
You can swap between the spell and your map.
=Main importing=
In order of importing: Copy --> Paste to your Map.
Object Data (OE) - Spell - Plasma Dome
Object Data (OE) - Unit - Handle( Plasma Dome ).
Object Data (OE) - Unit - Handle( Plasma Dome ).
Object Data (OE) - Unit - Handle( Plasma Dome ).
Map Header (MH) - Script - SaveMyLightning
Map Header (MH) - Script - MoveMyLightning
Trigger Data (TE) - Folder - Plasma Dome
* Notes:
Note #1: Make sure to Configure the " PD Configuration " trigger in the PD_Ability, PD_Handle_Type, PD_Orbs_Type, PD_Big_Orb_Type.
Note #5: ~~Enjoy!!!
=Modifying the spell=
All Modifications should be done in the Configuration Trigger, each configuration is explained and elaborated.