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.
are we allowed to post a help thread if we have a small problem we can't get to the bottom of?
Lightning - Destroy (Load 6 of (Key (Triggering unit)) in Compound_Hash)
Lightning - Destroy (Load 7 of (Key (Triggering unit)) in Compound_Hash)
Offtopic:
xxdingo93xx I haven't seen a spell/spellpack on the THW from you in a long time, if it ain't a secret, why?
Also i hope the link helped![]()
My submission?
Really lazy to make the final spell, just wrote the template for it, im too lazy to write some struct methods.
Gonna leave it sitting for several days more and then look into it
It is sad you aren't making stuff for the spell section anymore, i enjoyed your spellpack a lot ^^
Well it is hard to think of a unique idea because there are already a lot of spells which have the idea you thinked of or you got a creativity block.
I usually let an idea come to me, i let it sit out for several days since the worst ideas are the forced ones![]()
You are correct, but, I'm afraid the coding aspect usually sacrifices a good idea. I mean, it's not the same judging a nice spell in GUI and a nice spell in Jass. Admit it or not (referring to everyone), GUI is too underestimated.
I second that. Some people think that because a spell is written in GUI, it's crap, no matter how well-written or efficient it is.
GUIers = stupid / new / "noobish" / don't know how to make spells
Leviathan Bonus

Events


Time - Every 0.05 seconds of game time

Conditions

Actions


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



Loop - Actions




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





If - Conditions






((Picked unit) is in Compound_Group) Equal to False





Then - Actions






Game - Display to (All players) the text: grr!





Else - Actions




Lightning - Destroy (Load Bonus_Lightning1 of (Key (Picked unit)) in Compound_Hash)




Lightning - Destroy (Load Bonus_Lightning2 of (Key (Picked unit)) in Compound_Hash)




Unit Group - Remove (Picked unit) from Lightning_Death_Delay


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



Loop - Actions




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





If - Conditions






((Picked unit) is in Compound_Group) Equal to True





Then - Actions






Unit Group - Add (Picked unit) to Lightning_Death_Delay






Set Temp_Loc_1 = (Position of (Load Leviathan_Reference of (Key (Picked unit)) in Leviathan_Hash))






Set Temp_Loc_2 = (Position of (Load Compound_Turret1 of (Key (Picked unit)) in Compound_Hash))






Set Temp_Loc_3 = (Position of (Load Compound_Turret2 of (Key (Picked unit)) in Compound_Hash))






Custom script: set udg_Temp_Lightning_1 = AddLightningEx( "AFOD" , true, GetLocationX(udg_Temp_Loc_1), GetLocationY(udg_Temp_Loc_1), GetLocationZ(udg_Temp_Loc_1) + 750, GetLocationX(udg_Temp_Loc_2), GetLocationY(udg_Temp_Loc_2), GetLocationZ(udg_Temp_Loc_2) + 60)






Hashtable - Save Handle OfTemp_Lightning_1 as Bonus_Lightning1 of (Key (Picked unit)) in Compound_Hash






Custom script: set udg_Temp_Lightning_2 = AddLightningEx( "AFOD" , true, GetLocationX(udg_Temp_Loc_1), GetLocationY(udg_Temp_Loc_1), GetLocationZ(udg_Temp_Loc_1) + 750, GetLocationX(udg_Temp_Loc_3), GetLocationY(udg_Temp_Loc_3), GetLocationZ(udg_Temp_Loc_3) + 60)






Hashtable - Save Handle OfTemp_Lightning_2 as Bonus_Lightning2 of (Key (Picked unit)) in Compound_Hash






Custom script: call RemoveLocation(udg_Temp_Loc_1)






Custom script: call RemoveLocation(udg_Temp_Loc_2)






Custom script: call RemoveLocation(udg_Temp_Loc_3)





Else - Actions
Custom script: call MoveLightningEx
LIGHTNING_TYPE_CHAIN_LIGHTNING_PRIMARY = "CLPB"
LIGHTNING_TYPE_CHAIN_LIGHTNING_SECONDARY = "CLSB"
LIGHTNING_TYPE_DRAIN = "DRAB"
LIGHTNING_TYPE_DRAIN_LIFE = "DRAL"
LIGHTNING_TYPE_DRAIN_MANA = "DRAM"
LIGHTNING_TYPE_FORKED_LIGHTNING = "FORK"
LIGHTNING_TYPE_HEALING_WAVE_PRIMARY = "HWPB"
LIGHTNING_TYPE_HEALING_WAVE_SECONDARY = "HWSB"
LIGHTNING_TYPE_LIGHTNING_ATTACK = "CHIM"
LIGHTNING_TYPE_MAGIC_LEASH = "LEAS"
LIGHTNING_TYPE_MANA_BURN = "MBUR"
LIGHTNING_TYPE_MANA_FLARE = "MFPB"
LIGHTNING_TYPE_SPIRIT_LINK = "SPLK"
Custom script: call MoveLightningEx(Temp_Lightning_1, true, GetLocationX(udg_Temp_Loc_1), GetLocationY(udg_Temp_Loc_1), GetLocationZ(udg_Temp_Loc_1) + 750, GetLocationX(udg_Temp_Loc_3), GetLocationY(udg_Temp_Loc_3), GetLocationZ(udg_Temp_Loc_3) + 60)