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

Star Forming Spell

Status
Not open for further replies.
Level 10
Joined
Apr 25, 2009
Messages
296
Here's the star. You didn't specify if you wanted the star points to connect - I can do that, if you'd like.

It should be MUI and leakless. Functionality wise it's not amazing, meh.

You'll have to add the damage and stuff, unless you want me to.

  • Star
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Thunder Clap
    • Actions
      • Set P1 = (Position of (Triggering unit))
      • Set Offset = 100.00
      • Hashtable - Save Offset as 6 of Handle in Hash
      • Custom script: set udg_Handle = GetHandleId(GetTriggerUnit())
      • Set Degrees = 0.00
      • For each (Integer loop) from 1 to 5, do (Actions)
        • Loop - Actions
          • Set Degrees = (Degrees + 72.00)
          • Set P2 = (P1 offset by Offset towards Degrees degrees)
          • Custom script: set udg_LL[udg_loop] = AddLightningEx( "HWPB", true , GetLocationX(udg_P1), GetLocationY(udg_P1), GetLocationZ(udg_P1) + 60, GetLocationX(udg_P2), GetLocationY(udg_P2), GetLocationZ(udg_P2) + 60 )
          • Hashtable - Save Handle OfLL[loop] as loop of Handle in Hash
          • Custom script: call RemoveLocation(udg_P2)
      • Custom script: call RemoveLocation(udg_P1)
      • Trigger - Turn on Loop <gen>
      • Set Trig = (Trig + 1)
      • Unit Group - Add (Triggering unit) to StarGroup
  • Loop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in StarGroup and do (Actions)
        • Loop - Actions
          • Set P1 = (Position of (Picked unit))
          • Custom script: set udg_Handle = GetHandleId(GetEnumUnit())
          • Set Offset = (Load 6 of Handle from Hash)
          • Set Offset = (Offset + 10.00)
          • Hashtable - Save Offset as 6 of Handle in Hash
          • Set Degrees = 0.00
          • For each (Integer loop) from 1 to 5, do (Actions)
            • Loop - Actions
              • Set Degrees = (Degrees + 72.00)
              • Set P2 = (P1 offset by Offset towards Degrees degrees)
              • Set LL[loop] = (Load loop of Handle in Hash)
              • Custom script: call MoveLightningEx(udg_LL[udg_loop] , true , GetLocationX(udg_P1), GetLocationY(udg_P1), GetLocationZ(udg_P1) + 60 , GetLocationX(udg_P2), GetLocationY(udg_P2), GetLocationZ(udg_P2) + 60)
              • Custom script: call RemoveLocation(udg_P2)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Offset Greater than or equal to 500.00
            • Then - Actions
              • For each (Integer loop) from 1 to 5, do (Actions)
                • Loop - Actions
                  • Lightning - Destroy LL[loop]
              • Hashtable - Clear all child hashtables of child Handle in Hash
              • Set Trig = (Trig - 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Trig Equal to 0
                • Then - Actions
                  • Trigger - Turn off (This trigger)
                • Else - Actions
              • Unit Group - Remove (Picked unit) from StarGroup
            • Else - Actions
          • Custom script: call RemoveLocation(udg_P1)
 

Attachments

  • Star.w3x
    14.4 KB · Views: 45
Level 10
Joined
Apr 4, 2011
Messages
579
Can someone make this star here
 

Attachments

  • untitled.JPG
    untitled.JPG
    101.4 KB · Views: 83
Last edited:
Status
Not open for further replies.
Top