- 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]
-