• 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.

[Trigger] Unlock door trigger (dummy spell)

Status
Not open for further replies.
Level 5
Joined
Dec 10, 2007
Messages
65
Hi, im having troubles on how to open a door with a lockpick 'item'. Now what i want it to do is: click on the lockpick and select the door you want to unlock. seems easy enough? I cant figure out which spell to use in place of the lockpicks ability. I am currently using cripple(unit) with its target as debris, and the door has its targeted as: debris, invunerable. The trigger I have currently to do this is:

  • unlock floor 1 lockpick 1
  • Events:
    • Unit - A unit Uses an item
    • Unit - A unit Starts the effect of an ability
  • Conditions:
    • (Item-type of (Item being manipulated)) Equal to Lockpick
    • (Target destructible of ability being cast) Equal to Door - Lockpick (Horizontal) 1821 <gen>
    • (Ability being cast) Equal to Cripple
  • Actions:
    • Destructible - Remove Door - Lockpick (Horizontal) 1821 <gen>
    • Destructible - Create a Door - Unlocked (Horizontal) at (Position of (Target destructible of ability being cast)) facing 0.00 with scale 1.00 and variation 0
    • Set LockpickDestructable[1] = (Last created destructible)
    • Sound - Play Lever <gen>
    • Destructible - Open LockpickDestructable[1]
What happens is the item gets used and it shows its cooldown, but nothing actually happens to the lockpick door. Could someone help me please??
 
Status
Not open for further replies.
Top