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?
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>
- Events
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>
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
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>
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
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>
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events