HydraRancher
Truth begins in lies
- Reaction score
- 197
1.ShockRing
Edit:added screenshot
heres my trigger, annoyingly sometimes the "shockwaves" dont fire and theres big gaps, why?
[del]2.Custom Script
heres an attempt at custom script for me but the pickedunit part fails =( why?[/del]SOLVED
Trigger:
- Shock Ring
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to (==) Shock Ring
- Actions
- Set shockwavepoint = (Position of (Triggering unit))
- Set RangeGroup = (Units within (300.00 + (75.00 x (Real((Level of Shock Ring for (Triggering unit)))))) of shockwavepoint matching ((Triggering unit) Not equal to (!=) (Matching unit)))
- Unit Group - Pick every unit in RangeGroup and do (Actions)
- Loop - Actions
- Set ShockTargetPoint = (Position of (Picked unit))
- Unit - Set the custom value of (Picked unit) to (Integer((Angle from shockwavepoint to ShockTargetPoint)))
- Custom script: call RemoveLocation (udg_ShockTargetPoint)
- Loop - Actions
- Set Shockwaveangle = 0.00
- Do Multiple ActionsFor each (Integer A) from 1 to 36, do (Actions)
- Loop - Actions
- Unit - Create 1 Zone Indicator (Custom Campaign) for (Triggering player) at shockwavepoint facing Shockwaveangle degrees
- Set ShockWavePoint = (shockwavepoint offset by 30.00 towards Shockwaveangle degrees)
- Unit - Add Breath of Shockwave (Dummy) to (Last created unit)
- Unit - Set level of Breath of Shockwave (Dummy) for (Last created unit) to (Level of Shock Ring for (Triggering unit))
- Unit - Order (Last created unit) to Neutral - Breath Of Frost ShockWavePoint
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Set Shockwaveangle = (Shockwaveangle + 10.00)
- Custom script: call RemoveLocation (udg_ShockWavePoint)
- Loop - Actions
- Do Multiple ActionsFor each (Integer A) from 1 to 36, do (Actions)
- Custom script: call RemoveLocation (udg_shockwavepoint)
- Custom script: call DestroyGroup (udg_RangeGroup)
- Events
Edit:added screenshot
heres my trigger, annoyingly sometimes the "shockwaves" dont fire and theres big gaps, why?
[del]2.Custom Script
JASS:
Custom script: call SetUnitX(udg_PickedUnit, GetLocationX(udg_Slide_Slide_Point))
heres an attempt at custom script for me but the pickedunit part fails =( why?[/del]SOLVED