Igor_Z
You can change this now in User CP.
- Reaction score
- 61
Knockbacking spell problem
Hello, I have just made a knockback spell similar to the ones from wc3... Since I don't have wc3 installed I can't do exactly the same so from what can I remember(Because I coded long time ago) it is something like those triggers below. So basicly I'm trying to make something from wc3 in starcraft II. So here are the triggers:
This Galaxy editor is ruining something. I'm 50% sure that the problem is not in the triggers...
P.S: Correct them if I have mistakes.
Basicly I am testing out the editor so I don't have any abilities on my unit. I want a normal attack of the unit to knockback the target. What went wrong?
Take a look @ the pictures below, I showed the variable creation and the in-game malfunction text. Help me please
Hello, I have just made a knockback spell similar to the ones from wc3... Since I don't have wc3 installed I can't do exactly the same so from what can I remember(Because I coded long time ago) it is something like those triggers below. So basicly I'm trying to make something from wc3 in starcraft II. So here are the triggers:
Trigger:
- Knockback(Passive)
- Events
- Unit - Any Unit takes Fatal or Non-Fatal Any damage (from Any effects)
- Local Variables
- Conditions
- (Unit type of (Damaging unit)) == Zeratul
- Actions
- Variable - Set Zeratul = (Damaging unit)
- Variable - Set Target = (Triggering unit)
- Variable - Set Zeratul_Pos = (Position of Zeratul)
- Events
Trigger:
- Knockbackback timer
- Events
- Timer - Every 0.04 seconds of Real Time
- Local Variables
- Conditions
- Actions
- Variable - Set Target_Pos = (Position of Target)
- Variable - Set Offset = ((Distance between Zeratul_Pos and Target_Pos) + 2.0)
- Variable - Set Angle = (Angle from Zeratul_Pos to Target_Pos)
- Variable - Set Integer = (Integer + 2)
- Unit - Move Target instantly to (Zeratul_Pos offset by Offset towards Angle degrees) (No Blend)
- Variable - Set Target_Pos = No Point
- General - If (Conditions) then do multiple (Actions)
- If Then Else
- General - Else if (Conditions) then do (Actions)
- Else If
- Integer >= 50
- Then
- Variable - Set Offset = 0.0
- Variable - Set Angle = 0.0
- Variable - Set Zeratul = No Unit
- Variable - Set Target = No Unit
- Variable - Set Zeratul_Pos = No Point
- Variable - Set Target_Pos = No Point
- Variable - Set Integer = 0
- Else If
- General - Else if (Conditions) then do (Actions)
- If Then Else
- Events
This Galaxy editor is ruining something. I'm 50% sure that the problem is not in the triggers...
P.S: Correct them if I have mistakes.
Basicly I am testing out the editor so I don't have any abilities on my unit. I want a normal attack of the unit to knockback the target. What went wrong?
Take a look @ the pictures below, I showed the variable creation and the in-game malfunction text. Help me please