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

Need to know how to make a circlular aoe spell

Status
Not open for further replies.
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Circle of Fire
  • Actions
    • Set Points[1] = (Position of (Triggering unit))
    • For each (IntegerA) from 1 to 8, do (Actions)
      • Loop - Actions
        • Set Points[2] = (Points[1] offset by 256.00 towards (36.00 x (Real(IntegerA))) degrees)
        • Special Effect - Create a special effect at Points[2], using XXX.mdx
        • Special Effect - Destroy (Last created special effect)
        • Custom script: call RemoveLocation (udg_Points[2])
    • Custom script: call RemoveLocation (udg_Points[1])
You should visit the Spells section, type "circle" in the search field and "GUI" in the options above. Open a spell and see how's done; it will be something like the one I typed above.

References:
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/variables-5896/
http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/array-tutorial-17789/
http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/
 
Status
Not open for further replies.
Top