• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Importing Custom Lightning

Status
Not open for further replies.
Level 10
Joined
Jun 6, 2007
Messages
392
1. Export LightningData.slk from War3x.mpq with mpq viewer.
2. Copy-paste one line in that file. Explanation of fields:
  • Name: a 4-letter unique string that is used to refer that lightning in the game
  • Comment: useless
  • Dir: The path where the lightning skin is imported. Use ReplaceableTextures\Weather for default skins, for imported skins you can use any path (for example war3mapImported)
  • File: filename of the skin
  • AvgSegLength: I can't really explain what this does. This affects the way the lightning moves.
  • Width: quite self-explanatory
  • R/G/B/A: Colour values which are used to mask the lightning
  • NoiseScale: This affects how large variation the lightning has. 0 means completely straight line (like laser) and bigger values make it look more like a lightning.
  • CoordScale: This affects the direction and speed of the lightning. For example lightnings have a positive value, and drain effects have a negative value.
  • Duration: This affects how long the lightning is visible.
  • Version: I'm not sure if this has any real use.
3. Import the LightningData.slk and the skin (if custom) to your map. LightningData.slk must be imported to Splats\LightningData.slk and the skin to the path you defined in LightningData.slk.
4. To use the lightning in a spell, hold shift and double-click on the lightning effect -field of a spell, and change it to the 'name' that you set in LightningData.slk.
 
Status
Not open for further replies.
Top