fornarch Posted April 10, 2007 Share Posted April 10, 2007 I was wondering what the scripting would be to make it so when the player tries to open a locked door a message box pops up. (I have to try and cover all possible angles for the quest im working on, a lot of work!)Thanks for your help! Always easier to just ask here when I hit a trouble spot! Link to comment Share on other sites More sharing options...
Povuholo Posted April 10, 2007 Share Posted April 10, 2007 scn YourDoorScript BeginOnactivate if isactionref player messagebox "You can't pass muwahaha!" endif endThe door doesn't necessarily have to be locked for this, the player will never be able to open the door. If you want the player to be able to go through when he has the key: scn YourDoorScript BeginOnactivate if isactionref player && player.getitemcount YourKey >= 1 activate endif if isactionref player && player.getitemcount Yourkey == 0 messagebox "You can't pass muwahaha!" endif end Link to comment Share on other sites More sharing options...
fornarch Posted April 10, 2007 Author Share Posted April 10, 2007 scn YourDoorScript BeginOnactivate if isactionref player messagebox "You can't pass muwahaha!" endif endThe door doesn't necessarily have to be locked for this, the player will never be able to open the door. If you want the player to be able to go through when he has the key: scn YourDoorScript BeginOnactivate if isactionref player && player.getitemcount YourKey >= 1 activate endif if isactionref player && player.getitemcount Yourkey == 0 messagebox "You can't pass muwahaha!" endif end sweet...thanks, the 2nd one will work perfectly! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.