This is just simple but I can't seem to fix this. I tried to put the string "attack 1" in object editor, the unit just starts the animation, but not fully. And then I also tried triggering it, but instead the unit does not do the animation at all.
There doesnt seem to be any problems with the model, coz it works fine in Model editor. Can anyone help me?
There doesnt seem to be any problems with the model, coz it works fine in Model editor. Can anyone help me?
-
Getsuga Tenshou
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Getsuga Tenshou
-
Actions
- Set GT_Caster = (Casting unit)
- Set GT_CasterLoc = (Position of GT_Caster)
- Set GT_TargetPoint = (Target point of ability being cast)
- Set GT_DummyAngle = (Angle from GT_CasterLoc to GT_TargetPoint)
- Set GT_DummyLoc[0] = (GT_CasterLoc offset by 10.00 towards GT_DummyAngle degrees)
- Animation - Play GT_Caster's attack 1 animation
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (GT_Caster has buff Acid Bomb) Equal to True
-
Then - Actions
- Unit - Create 1 Black Getsuga Wave for (Owner of GT_Caster) at GT_DummyLoc[0] facing GT_DummyAngle degrees
- Set GT_Dummy[0] = (Last created unit)
- Unit - Create 1 Black Getsuga Wave SFX for (Owner of GT_Caster) at GT_DummyLoc[0] facing GT_DummyAngle degrees
- Set GT_Dummy[1] = (Last created unit)
- Trigger - Turn on Getsuga Tenshou Move <gen>
-
Else - Actions
- Unit - Create 1 White Getsuga Wave for (Owner of GT_Caster) at GT_DummyLoc[0] facing GT_DummyAngle degrees
- Set GT_Dummy[0] = (Last created unit)
- Set GT_Dummy[1] = GT_Dummy[0]
- Trigger - Turn on Getsuga Tenshou Move <gen>
-
If - Conditions
-
Events
-
Getsuga Tenshou Move
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Set GT_MoveDistance = (GT_MoveDistance + 48.00)
- Set GT_DummyLoc[1] = (GT_DummyLoc[0] offset by GT_MoveDistance towards GT_DummyAngle degrees)
- Unit - Move GT_Dummy[0] instantly to GT_DummyLoc[1], facing GT_DummyAngle degrees
- Unit - Move GT_Dummy[1] instantly to GT_DummyLoc[1], facing GT_DummyAngle degrees
- Set GT_Distance = (Distance between GT_CasterLoc and GT_DummyLoc[1])
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 200.00 of GT_DummyLoc[1] matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of GT_Caster)) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is in G and do (Actions)
-
Loop - Actions
- Unit - Cause GT_Caster to damage (Picked unit), dealing 900.00 damage of attack type Spells and damage type Force
- Unit Group - Add (Picked unit) to GT_Group[1]
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- GT_Distance Greater than or equal to 1600.00
-
Then - Actions
- Unit - Kill GT_Dummy[0]
- Unit - Kill GT_Dummy[1]
- Unit Group - Remove all units from GT_Group[0]
- Unit Group - Remove all units from GT_Group[1]
- Set GT_MoveDistance = 0.00
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
Events