- Joined
- Aug 8, 2010
- Messages
- 1,022
Hi! I want to ask you why when i cast my Hypnosa spell, my camera pans to the center of playable map area (when the effect of Hypnosa ends) and why the leaderboard creates only the first time???Also my unit is unable to move while he is casting and cancel the spell... PLEASE help! ;(
-
The HIP Trigg
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Hypnosa [MindC]
-
Actions
- Set HypnosaUnits[0] = (Triggering unit)
- Set HypnosaUnits[1] = (Target unit of ability being cast)
- Set HypnosaUnitLocation[0] = (Position of HypnosaUnits[0])
- Set HypnosaUnitLocation[1] = (Position of HypnosaUnits[1])
- Set LevelOfHYPNOSA = (Level of Hypnosa [MindC] for HypnosaUnits[0])
- Set HypnosaOwnerOfTarget = (Owner of HypnosaUnits[1])
- Set HypnosaOwnerOfCaster = (Owner of HypnosaUnits[0])
- Set HypnosaDuration = (5 + (5 x (Level of Hypnosa [MindC] for HypnosaUnits[0])))
- Player Group - Add HypnosaOwnerOfTarget to HypnosaPlayerGroup
- Player Group - Add HypnosaOwnerOfCaster to HypnosaPlayerGroup
- Unit - Change ownership of HypnosaUnits[1] to HypnosaOwnerOfCaster and Retain color
- Leaderboard - Create a leaderboard for HypnosaPlayerGroup titled Duration Of Hypnosa
- Set HypnosaLeaderBoard = (Last created leaderboard)
- Custom script: call DestroyForce(udg_HypnosaPlayerGroup)
- Set HypnosaLeaderBValueColor = 100
- Leaderboard - Add HypnosaOwnerOfCaster to HypnosaLeaderBoard with label Time : and value HypnosaDuration
- Leaderboard - Change the color of the label for HypnosaOwnerOfCaster in HypnosaLeaderBoard to (100.00%, 80.00%, 20.00%) with 0.00% transparency
- Leaderboard - Change the color of the value for HypnosaOwnerOfCaster in HypnosaLeaderBoard to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Special Effect - Create a special effect attached to the overhead of HypnosaUnits[1] using Abilities\Spells\Other\HowlOfTerror\HowlTarget.mdl
- Set HypnosaSEtarget = (Last created special effect)
- Selection - Select HypnosaUnits[1]
- Camera - Pan camera for HypnosaOwnerOfCaster to HypnosaUnitLocation[1] over 0.50 seconds
- Unit - Add Cancel Hypnosa [MindC] to HypnosaUnits[1]
- Trigger - Turn on The HIP loop <gen>
- Trigger - Turn on MakeCasterFaceTarget <gen>
-
Events
-
The HIP loop
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Set HypnosaDuration = (HypnosaDuration - 1)
- Leaderboard - Change the value for HypnosaOwnerOfCaster in HypnosaLeaderBoard to HypnosaDuration
- Leaderboard - Change the color of the value for HypnosaOwnerOfCaster in HypnosaLeaderBoard to (100.00%, ((Real(HypnosaLeaderBValueColor)) - ((Real(HypnosaLeaderBValueColor)) / (Real(HypnosaDuration))))%, ((Real(HypnosaLeaderBValueColor)) - ((Real(HypnosaLeaderBValueColor)) / (Real(HypnosaDuration))))%) with 0.00% transparency
- Unit - Set life of HypnosaUnits[0] to ((Life of HypnosaUnits[0]) - (8.00 + (2.00 x (Real(LevelOfHYPNOSA)))))
- Unit - Set mana of HypnosaUnits[0] to ((Mana of HypnosaUnits[0]) - (8.00 + (2.00 x (Real(LevelOfHYPNOSA)))))
- Special Effect - Create a special effect attached to the origin of HypnosaUnits[0] using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect attached to the left hand of HypnosaUnits[0] using Abilities\Spells\Undead\DeathandDecay\DeathandDecayDamage.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect attached to the right hand of HypnosaUnits[0] using Abilities\Spells\Undead\DeathandDecay\DeathandDecayDamage.mdl
- Special Effect - Destroy (Last created special effect)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Mana of HypnosaUnits[0]) Equal to 0.00
-
Then - Actions
- Unit - Order HypnosaUnits[0] to Attack HypnosaUnits[1]
- Unit - Change ownership of HypnosaUnits[1] to HypnosaOwnerOfTarget and Retain color
- Leaderboard - Destroy HypnosaLeaderBoard
- Game - Display to (All players controlled by a (HypnosaOwnerOfCaster controller) player) the text: |CFFFE8A0EYou have ...
- Special Effect - Destroy HypnosaSEtarget
- Selection - Select HypnosaUnits[0]
- Trigger - Turn off MakeCasterFaceTarget <gen>
- Trigger - Turn off HypnosaCanceledBySpell <gen>
- Trigger - Turn off HypnosaCasterStopsCasting <gen>
- Camera - Pan camera for HypnosaOwnerOfCaster to HypnosaUnitLocation[0] over 0.50 seconds
- Custom script: call RemoveLocation(udg_HypnosaUnitLocation[0])
- Custom script: call RemoveLocation(udg_HypnosaUnitLocation[1])
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (HypnosaUnits[1] is alive) Equal to False
-
Then - Actions
- Unit - Order HypnosaUnits[0] to Stop
- Unit - Change ownership of HypnosaUnits[1] to HypnosaOwnerOfTarget and Retain color
- Leaderboard - Destroy HypnosaLeaderBoard
- Game - Display to (All players controlled by a (HypnosaOwnerOfCaster controller) player) the text: |CFFFE8A0EYour targ...
- Special Effect - Destroy HypnosaSEtarget
- Selection - Select HypnosaUnits[0]
- Trigger - Turn off MakeCasterFaceTarget <gen>
- Trigger - Turn off HypnosaCanceledBySpell <gen>
- Trigger - Turn off HypnosaCasterStopsCasting <gen>
- Camera - Pan camera for HypnosaOwnerOfCaster to HypnosaUnitLocation[0] over 0.50 seconds
- Custom script: call RemoveLocation(udg_HypnosaUnitLocation[0])
- Custom script: call RemoveLocation(udg_HypnosaUnitLocation[1])
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
Events
-
HypnosaCanceledBySpell
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Cancel Hypnosa [MindC]
-
Actions
- Unit - Order HypnosaUnits[0] to Stop
- Unit - Change ownership of HypnosaUnits[1] to HypnosaOwnerOfTarget and Retain color
- Leaderboard - Destroy HypnosaLeaderBoard
- Special Effect - Destroy HypnosaSEtarget
- Selection - Select HypnosaUnits[0]
- Unit - Remove Cancel Hypnosa [MindC] from HypnosaUnits[1]
- Animation - Reset HypnosaUnits[1]'s animation
- Trigger - Turn off MakeCasterFaceTarget <gen>
- Trigger - Turn off The HIP loop <gen>
- Trigger - Turn off HypnosaCasterStopsCasting <gen>
- Camera - Pan camera for HypnosaOwnerOfCaster to HypnosaUnitLocation[0] over 0.50 seconds
- Custom script: call RemoveLocation(udg_HypnosaUnitLocation[0])
- Custom script: call RemoveLocation(udg_HypnosaUnitLocation[1])
- Trigger - Turn off (This trigger)
-
Events
-
HypnosaCasterStopsCasting
-
Events
- Unit - A unit Finishes casting an ability
- Unit - A unit Stops casting an ability
-
Conditions
- (Ability being cast) Equal to Hypnosa [MindC]
-
Actions
- Unit - Change ownership of HypnosaUnits[1] to HypnosaOwnerOfTarget and Retain color
- Leaderboard - Destroy HypnosaLeaderBoard
- Special Effect - Destroy HypnosaSEtarget
- Selection - Select HypnosaUnits[0]
- Trigger - Turn off HypnosaCanceledBySpell <gen>
- Trigger - Turn off MakeCasterFaceTarget <gen>
- Trigger - Turn off The HIP loop <gen>
- Camera - Pan camera for HypnosaOwnerOfCaster to HypnosaUnitLocation[0] over 0.50 seconds
- Custom script: call RemoveLocation(udg_HypnosaUnitLocation[0])
- Custom script: call RemoveLocation(udg_HypnosaUnitLocation[1])
- Trigger - Turn off (This trigger)
-
Events
-
MakeCasterFaceTarget
-
Events
- Time - Every 0.02 seconds of game time
- Conditions
-
Actions
- Unit - Make HypnosaUnits[0] face HypnosaUnits[1] over 0.00 seconds
-
Events
Last edited: