• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Difficult Spell help!!

Status
Not open for further replies.
Level 10
Joined
Apr 4, 2011
Messages
580
this is quite difficult but could someone please show me how to make the star effect from the spell given alot easier, because its hard to learn off this one

please dont claim as your own....:vw_unimpressed:
 

Attachments

  • Pentagramm.w3x
    24.2 KB · Views: 54
Level 37
Joined
Mar 6, 2006
Messages
9,240
That is some horrible, horrible triggering.

Basically you could calculate 5 points around the caster and then link them together, for example:

1 with 3 and 4
2 with 4 and 5
4 with 1

This creates five points around the unit with even spaces. The first point is straight north of the unit.
  • Untitled Trigger 084
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set u = Paladin 0006 <gen>
      • Set point = (Position of u)
      • For each (Integer A) from 0 to 4, do (Actions)
        • Loop - Actions
          • Set points[(Integer A)] = (point offset by 256.00 towards (90.00 + (72.00 x (Real((Integer A))))) degrees)
          • Unit - Create 1 Footman for Player 1 (Red) at points[(Integer A)] facing Default building facing degrees
After the loop, create the lightnings using the correct begin and starting points and remove the points.
 
Level 10
Joined
Apr 4, 2011
Messages
580
realy? well that would help heaps, and this isnt my spell :x its just a spell i found laying around so i wanted to learn
but those models arnt quite right.. it would ruin the effect of the spell if i used it


Please help
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,240
Here's a simple system:


  • Untitled Trigger 084
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set u = Paladin 0006 <gen>
      • Set point = (Position of u)
      • For each (Integer A) from 0 to 4, do (Actions)
        • Loop - Actions
          • Set points[(Integer A)] = (point offset by 256.00 towards (90.00 + (72.00 x (Real((Integer A))))) degrees)
      • Custom script: set udg_lightnings[0] = AddLightningEx("AFOD", true, GetLocationX(udg_points[0]), GetLocationY(udg_points[0]), GetLocationZ(udg_points[0]) + 50, GetLocationX(udg_points[2]), GetLocationY(udg_points[2]), GetLocationZ(udg_points[2]) + 50)
      • Custom script: set udg_lightnings[1] = AddLightningEx("AFOD", true, GetLocationX(udg_points[0]), GetLocationY(udg_points[0]), GetLocationZ(udg_points[0]) + 50, GetLocationX(udg_points[3]), GetLocationY(udg_points[3]), GetLocationZ(udg_points[3]) + 50)
      • Custom script: set udg_lightnings[2] = AddLightningEx("AFOD", true, GetLocationX(udg_points[1]), GetLocationY(udg_points[1]), GetLocationZ(udg_points[1]) + 50, GetLocationX(udg_points[3]), GetLocationY(udg_points[3]), GetLocationZ(udg_points[3]) + 50)
      • Custom script: set udg_lightnings[3] = AddLightningEx("AFOD", true, GetLocationX(udg_points[1]), GetLocationY(udg_points[1]), GetLocationZ(udg_points[1]) + 50, GetLocationX(udg_points[4]), GetLocationY(udg_points[4]), GetLocationZ(udg_points[4]) + 50)
      • Custom script: set udg_lightnings[4] = AddLightningEx("AFOD", true, GetLocationX(udg_points[4]), GetLocationY(udg_points[4]), GetLocationZ(udg_points[4]) + 50, GetLocationX(udg_points[2]), GetLocationY(udg_points[2]), GetLocationZ(udg_points[2]) + 50)
      • For each (Integer A) from 0 to 4, do (Actions)
        • Loop - Actions
          • Custom script: call RemoveLocation(udg_points[bj_forLoopAIndex])


That's not much of a spell yet, it just shows how to create the lighntings. The 50 there is the height offset from the ground and AFOD is the lightning type.

http://www.hiveworkshop.com/forums/pastebin.php?id=yopvxh
 
Status
Not open for further replies.
Top