0WN3D
New Member
- Reaction score
- 15
Hey all Helpers^^ Heres the story... today after I implemented a Hero and tried to cast its spell... A fatal error occured..... The thing i remembered is Illegal Instruction...
Heres the trigger i jus implemented.... But even though i remove it, it still bugs....
PS:I base the skill off tranquility...
Heres the trigger i jus implemented.... But even though i remove it, it still bugs....
PS:I base the skill off tranquility...
Trigger:
- Time Stop
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Time Stop
- Actions
- Set TimeStopAttacked = False
- Set TimeStopCaster = (Casting unit)
- Countdown Timer - Start TimeStopTimer as a One-shot timer that will expire in 5.00 seconds
- Trigger - Turn on TimeStopCancel <gen>
- Trigger - Turn on TimeStopCancel 2 <gen>
- Events
Trigger:
- TimeStopCancel
- Events
- Unit - A unit Is attacked
- Conditions
- And - All (Conditions) are true
- Conditions
- TimeStopAttacked Equal to False
- (Attacked unit) Equal to TimeStopCaster
- Conditions
- And - All (Conditions) are true
- Actions
- Unit - Order TimeStopCaster to Stop
- Trigger - Turn off (This trigger)
- Events
Trigger:
- TimeStopCancel 2
- Events
- Unit - A unit Stops casting an ability
- Conditions
- And - All (Conditions) are true
- Conditions
- TimeStopAttacked Equal to False
- (Triggering unit) Equal to TimeStopCaster
- Conditions
- And - All (Conditions) are true
- Actions
- Set TimeStopAttacked = True
- Trigger - Turn off (This trigger)
- Events
Trigger:
- Time Stop Pause
- Events
- Time - TimeStopTimer expires
- Conditions
- TimeStopAttacked Equal to False
- Actions
- Set TempInteger = 0
- Set Temp_Point = (Position of TimeStopCaster)
- Set Temp_Rect = (Playable map area)
- Set TimePauseGroup = (Units in Temp_Rect matching (((Matching unit) Not equal to TimeStopCaster) and (((Matching unit) is dead) Equal to False)))
- Unit Group - Pick every unit in TimePauseGroup and do (Actions)
- Loop - Actions
- Set TempInteger = (TempInteger + 1)
- Unit - Pause (Picked unit)
- Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Banish\BanishTarget.mdl
- Set SpecialEffectTimePause[TempInteger] = (Last created special effect)
- Loop - Actions
- Trigger - Turn off TimeStopCancel <gen>
- Trigger - Turn off TimeStopCancel 2 <gen>
- Unit - Create 1 TimePauseBlue for Player 1 (Red) at Temp_Point facing Default building facing degrees
- Unit - Add a (4.00 + (Real((Level of Time Stop for TimeStopCaster)))) second Generic expiration timer to (Last created unit)
- Wait (4.00 + (Real((Level of Time Stop for TimeStopCaster)))) seconds
- Unit Group - Pick every unit in TimePauseGroup and do (Actions)
- Loop - Actions
- Unit - Unpause (Picked unit)
- Loop - Actions
- For each (Integer A) from 1 to 8192, do (Actions)
- Loop - Actions
- Special Effect - Destroy SpecialEffectTimePause[(Integer A)]
- Loop - Actions
- Custom script: call RemoveRect(udg_Temp_Rect)
- Custom script: call RemoveLocation(udg_Temp_Point)
- Custom script: call DestroyGroup(udg_TimePauseGroup)
- Events