• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Problems with spell trigger...

Status
Not open for further replies.
Level 14
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>
  • 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 (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
  • 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)
  • 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)
  • MakeCasterFaceTarget
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Unit - Make HypnosaUnits[0] face HypnosaUnits[1] over 0.00 seconds
Please help me! +rep ofcourse! (oh! I forgot - in the object editor - delete the 'Mind Weaken' and Mana drain abilities, because Mind Weaken is a copy of Hypnosa with the same order ID + i don't need it )
 
Last edited:
Make sure field Follow Through Time in you channel base ability has low value. If you use default 180 seconds, your unit will spend 3 mins before it can move somewhere else. I'm not close to editor now, sorry. Will try to help without checking map.

About hidden tags - write: hidden="NameOfYourTag" {stuff here} [/hidden]. Starting hidden tag also has to be between '[' and ']', but I can't use it now because I'll create hidden tag instead of text. You can click to quote my post to see how to make it properly, egzample:
Don't touch me!
 
Status
Not open for further replies.
Top