I've been wondering how to make the use of a trap door dependent on the position of a "false" bed.
"False" because it moves when you have the appropriate key, so the trap door is revealed.
In case the player finds the trap door beneath the bed, I want to prevent him from using it - until the bed is moved away.. makes some sense, doesn't it?
Now, the question is: How do I do that?
I tried it that way:
begin IT_dh_trapdoor
; trap door is only accessable if
; the false bed has been moved to the 'open' position
if ( OnActivate == 1 )
if ( "_it_dh_falsebed"->MoveWorld X, 15 == 1 )
activate
else
messagebox "You cannot pass since the bed is blocking the trap door"
endif
endif
end
; trap door is only accessable if
; the false bed has been moved to the 'open' position
if ( OnActivate == 1 )
if ( "_it_dh_falsebed"->MoveWorld X, 15 == 1 )
activate
else
messagebox "You cannot pass since the bed is blocking the trap door"
endif
endif
end
But I got, as you probably realized, an error message (because of line 10).
So would you help me out a bit?
P.S.: I work with all 3 .esms (Morrowind, Tribunal and Bloodmoon) - that seems important, somehow (I reckon it's because of the limited functions with "pure" Morrowind or whatsoever).
Thanks a lot!