• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Spell

Status
Not open for further replies.
Level 6
Joined
Aug 1, 2009
Messages
159
Hey, I have some problems on a spell, well its a spell from Bleach, called Ginrei Kojaku, from Ishida, may I ask how to make the lasers from different points at the facing of the caster.

Just to be clear, just like this:

http://www.youtube.com/watch?v=bvYNcZq-SnE

Please show me the trigger needed.
 
  • Untitled Trigger 002
    • Events
    • Conditions
    • Actions
      • Set Temp_Loc_1 = (Position of (Triggering unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 2) Equal to 1
        • Then - Actions
          • Set Temp_Loc_2 = (Temp_Loc_1 offset by (Random real number between 0.00 and 128.00) towards ((Facing of (Triggering unit)) + 90.00) degrees)
        • Else - Actions
          • Set Temp_Loc_2 = (Temp_Loc_1 offset by (Random real number between 0.00 and 128.00) towards ((Facing of (Triggering unit)) - 90.00) degrees)
      • -------- Do somethng here --------
      • Custom script: call RemoveLocation(udg_Temp_Loc_1)
      • Custom script: call RemoveLocation(udg_Temp_Loc_2)
Temp_Loc_2 is the starting point of the projectile. The point lies a random distance away from the caster to the left or to the right depending on the randomization.

You can create more complex starting points with sin and cos.

You must also create random (in context of the spell) target points for the projectiles, towards which they move.
 
Status
Not open for further replies.
Back
Top