• 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.

Lightings Removal??

Status
Not open for further replies.
Level 3
Joined
Mar 2, 2012
Messages
27
I was constructing a swap spell of vengeful spirit but i dunno how to remove or destroy the lighting effect. If i try to remove it using DestroyLighting it instantly remove it without manifesting the lighting effect. Can someone help me Pls?
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
You need to save it to a variable and remove it after a short wait/timer.

Since you probably want the spell to be MUI, you should use a buffering system.

Here's a good tutorial: http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/mui-triggers-waits-218354/
And another: http://www.hiveworkshop.com/forums/...279/mui-spells-using-artificial-waits-223315/

EDIT: Some triggers I made for a spell:


  • Protect Pass Damage
    • Events
    • Conditions
    • Actions
      • Set tempLoc1 = (Position of Unit1)
      • Set tempLoc2 = (Position of Unit2)
      • Lightning - Create a Spirit Link lightning effect from source tempLoc1 to target tempLoc2
      • Lightning - Change color of (Last created lightning effect) to (1.00 1.00 1.00) with 0.50 alpha
      • Set stl_WriteId = (stl_WriteId + 1)
      • Set stl_Lightning[stl_WriteId] = (Last created lightning effect)
      • Custom script: call RemoveLocation(udg_tempLoc1)
      • Custom script: call RemoveLocation(udg_tempLoc2)
      • Wait 0.10 seconds
      • Trigger - Run Destroy Timed Lightnings <gen> (ignoring conditions)
  • Destroy Timed Lightnings
    • Events
    • Conditions
    • Actions
      • Set stl_ReadId = (stl_ReadId + 1)
      • Lightning - Destroy stl_Lightning[stl_ReadId]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • stl_ReadId Equal to stl_WriteId
        • Then - Actions
          • Set stl_ReadId = 0
          • Set stl_WriteId = 0
        • Else - Actions
 
Level 3
Joined
Mar 2, 2012
Messages
27
oh im really sorry for being incomplete im using vjass ^_^ but because im just starting i dont really know how.
 
Status
Not open for further replies.
Top