Looking for some help on this trig

Music Man

Cool Member
Reaction score
3
So Is there anyway to put in the formula for a certain shape when making special effect trigs? This is what I came up with to try to make a "circle" (more like a square) around my hero on cast. I think it looks pretty cool.. haha, but im sure it creates a huge memory leak. Go ahead and try this is you have zero time on your hands, ---

so to reiterate, could i create a for loop using an equation at different values of x? or do i need to resort to jass for that?


Trigger:
  • Summon Spike Walk
    • Events
      • Player - Player 1 (Red) types a chat message containing Spike Wall as An exact match
    • Conditions
    • Actions
      • Set cordinatesx = 150.00
      • Set cordinatesy = 0.00
      • Special Effect - Create a special effect at (Position of player1hero) using Abilities\Spells\Undead\UndeadMine\UndeadMineCircle.mdl
      • Special Effect - Create a special effect at (Position of player1hero) using Abilities\Spells\Undead\UndeadMine\UndeadMineCircle.mdl
      • Animation - Play player1hero's spell channel animation
      • Trigger - Turn on Effect toprightsemicircle <gen>


Trigger:
  • Effect toprightsemicircle
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • cordinatesx Not equal to 0.00
        • Then - Actions
          • Special Effect - Create a special effect at ((Position of player1hero) offset by (cordinatesx, cordinatesy)) using units\creeps\GoblinZeppelin\GoblinZeppelin.mdl
          • Set cordinatesx = (cordinatesx - 5.00)
          • Set cordinatesy = (cordinatesy + 5.00)
        • Else - Actions
          • Trigger - Turn off (This trigger)
          • Trigger - Turn on Effect topleftsemicircle <gen>


Trigger:
  • Effect topleftsemicircle
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • cordinatesx Not equal to -150.00
        • Then - Actions
          • Set cordinatesx = (cordinatesx - 5.00)
          • Set cordinatesy = (cordinatesy - 5.00)
          • Special Effect - Create a special effect at ((Position of player1hero) offset by (cordinatesx, cordinatesy)) using units\creeps\GoblinZeppelin\GoblinZeppelin.mdl
        • Else - Actions
          • Trigger - Turn off (This trigger)
          • Trigger - Turn on Effect bottomleftsemicircle <gen>


Trigger:
  • Effect bottomleftsemicircle
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • cordinatesx Not equal to 0.00
        • Then - Actions
          • Set cordinatesx = (cordinatesx + 5.00)
          • Set cordinatesy = (cordinatesy - 5.00)
          • Special Effect - Create a special effect at ((Position of player1hero) offset by (cordinatesx, cordinatesy)) using units\creeps\GoblinZeppelin\GoblinZeppelin.mdl
        • Else - Actions
          • Trigger - Turn off (This trigger)
          • Trigger - Turn on Effect bottomrightsemicircle <gen>
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Trigger:
  • Nova Effects
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 36, do (Actions)
        • Loop - Actions
          • Special Effect - Create a special effect at ((Position of Nova_Caster) offset by ((Nova_Dis x (Cos(Nova_Ang))), (Nova_Dis x (Sin(Nova_Ang))))) using Abilities\Spells\Items\AIfb\AIfbSpecialArt.mdl
          • Special Effect - Destroy (Last created special effect)
          • Set Nova_Ang = (Nova_Ang + 10.00)

Im not bothering with leaks.
 

Music Man

Cool Member
Reaction score
3
Trigger:
  • Nova Effects
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 36, do (Actions)
        • Loop - Actions
          • Special Effect - Create a special effect at ((Position of Nova_Caster) offset by ((Nova_Dis x (Cos(Nova_Ang))), (Nova_Dis x (Sin(Nova_Ang))))) using Abilities\Spells\Items\AIfb\AIfbSpecialArt.mdl
          • Special Effect - Destroy (Last created special effect)
          • Set Nova_Ang = (Nova_Ang + 10.00)

Im not bothering with leaks.

Yeah that works well. I would just put a small wait time so i can see what the special effect is as it is going farther and farther outside of the initial position like a ripple outwards. Thanks a lot!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top