HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Patch 1.17] What AddLightningLoc needs?

09-21-2004, 12:43 PM#1
SilverRage
The new function for special effect AddLightningLoc has an String parameter called codeName. Which "Code" i must use? Does somebody know how to use this function?
function AddLightningLoc takes string codeName, location where1, location where2 returns lightning
Code:
function AddLightningLoc takes string codeName, location where1, location where2 returns lightning
    set bj_lastCreatedLightning = AddLightning(codeName, true, GetLocationX(where1), GetLocationY(where1), GetLocationX(where2), GetLocationY(where2))
    return bj_lastCreatedLightning
endfunction
09-21-2004, 02:08 PM#2
Buster
Look in the LightningData.slk in the Splats directory of the war3x.mpq, there are the codenames (4 character strings in column "Name") for the lightnings. :)

A little excerpt:

Code:
INIT..............INIT
CLPB..............Chain Lightning - Primary Bolt
CLSB..............Chain Lightning - Secondary Bolt
MBUR..............Mana Burn - Bolt
CHIM..............Lightning Attack - Chimera
AFOD..............Finger of Death
HWPB..............Healing Wave - Primary Bolt
HWSB..............Healing Wave - Secondary Bolt
MFPB..............Mana Flare - Primary Bolt
DRAB..............Drain
DRAL..............Life Drain
DRAM..............Mana Drain
FORK..............Forked Lightning
SPLK..............Spirit Link
LEAS..............Magic Leash

.:Buster
09-21-2004, 03:09 PM#3
SilverRage
Thank you very much! Good to know!