- Joined
- Jan 23, 2008
- Messages
- 384
Ok ... this trigger is supposed to add a fade filter to a player if one of the matching player's unit enters within range of a unit ... it all works fine ! but when the unit gets rid of the buff, in the last part of the trigger, the player owning the unit is kicked out of the game ... can someone help me out with this one ?
TY !
~MA
-
Bankai Szu Act
-
Events
- Time - Every 0.50 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in EnmaBankai and do (Actions)
-
Loop - Actions
- Set EnmaBankaiPickedDummy = (Picked unit)
- Set EnmaIntLvl = (Load (Key Level) of (Key (Picked unit)) from Hst)
-
Unit Group - Pick every unit in (Units within 650.00 of (Position of (Load (Key Dome) of (Key (Picked unit)) in Hst)) matching ((((Matching unit) belongs to an enemy of (Owner of (Load (Key Dome) of (Key (Picked unit)) in Hst))) Equal to True) and (((Matching unit) is alive) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to EnmaBankaiTargets
- Unit - Create 1 Dummy for (Owner of EnmaBankaiPickedDummy) at (Position of EnmaBankaiPickedDummy) facing Default building facing degrees
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Add (Suzumushi) to (Last created unit)
- Unit - Set level of (Suzumushi) for (Last created unit) to EnmaIntLvl
- Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Drunken Haze (Picked unit)
-
Loop - Actions
-
Loop - Actions
-
Unit Group - Pick every unit in EnmaBankaiTargets and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Enma Korogi ) Equal to True
- ((Picked unit) is in EnmaBankaiTargetsAfterEffect) Equal to False
-
Then - Actions
- Unit Group - Remove (Picked unit) from EnmaBankaiTargets
- Unit Group - Add (Picked unit) to EnmaBankaiTargetsAfterEffect
- Custom script: if (GetLocalPlayer()==GetOwningPlayer(GetEnumUnit())) then
- Custom script: call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.05, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
- Custom script: endif
-
Else - Actions
- Unit Group - Remove (Picked unit) from EnmaBankaiTargets
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in EnmaBankaiTargetsAfterEffect and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Enma Korogi ) Equal to False
-
Then - Actions
- Unit Group - Remove (Picked unit) from EnmaBankaiTargetsAfterEffect
- Custom script: if (GetLocalPlayer()==GetOwningPlayer(GetEnumUnit())) then
- Custom script: call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 0.10, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
- Custom script: endif
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in EnmaBankai and do (Actions)
-
Events
TY !
~MA