kilkeeper7 Posted December 9, 2010 Share Posted December 9, 2010 Hello everyone, I am creating a simple bunker home for myself. I want to make a script that works like if u have the key to the door, it wil let u in. But if u dont have the keya screen pops up and says something like: The bunker is securley locked. Try looking around for notes. I am awful at scripting so i will apriciate is if someone helps me.The door is called: 01BunkerMainentranceThe key is called: 01BunkerKeyMainentrance Thanks! Link to comment Share on other sites More sharing options...
Aragron Posted December 9, 2010 Share Posted December 9, 2010 Begin OnActivate player ;Only run when the player uses the doorif player.getitemcount 01BunkerKeyMainentrance >= 1 ;if 01BunkerKeyMainentrance is not the Editor ID,put the Editor ID here...activateelseshowmessage "Message ID" ;Without the "" ,create a message and put the Editor ID hereendifend place the script on the door. Link to comment Share on other sites More sharing options...
kilkeeper7 Posted December 9, 2010 Author Share Posted December 9, 2010 Begin OnActivate player ;Only run when the player uses the doorif player.getitemcount 01BunkerKeyMainentrance >= 1 ;if 01BunkerKeyMainentrance is not the Editor ID,put the Editor ID here...activateelseshowmessage "Message ID" ;Without the "" ,create a message and put the Editor ID hereendifend place the script on the door. Thanks man! Link to comment Share on other sites More sharing options...
kilkeeper7 Posted December 9, 2010 Author Share Posted December 9, 2010 Okay so i copied that in the geck and but when i try to save othing happens. Please help me :o Link to comment Share on other sites More sharing options...
Aragron Posted December 9, 2010 Share Posted December 9, 2010 You gave a name to the script,and substitued the editors when needed,right?Because i tested it and saved without problems...If you are new,read some tuturials to learn more... http://geck.bethsoft.com/index.php/Useful_Scripts Link to comment Share on other sites More sharing options...
kilkeeper7 Posted December 9, 2010 Author Share Posted December 9, 2010 Yea i made it likes this: scn 01Bunkernokeymessage Begin OnActivate player ;Only run when the player uses the doorif player.getitemcount 01BunkerKeyMainentrance >= 1 ;if 01BunkerKeyMainentrance is not the Editor ID,put the Editor ID here...activateelseshowmessage "01Bunkernokey" ;Without the "" ,create a message and put the Editor ID hereendifend Link to comment Share on other sites More sharing options...
Aragron Posted December 9, 2010 Share Posted December 9, 2010 (edited) I tested it again(substituing the Editor ID) and it worked againif the script Don't save,it is a problem with your Editor ID,try changing the Editor ID to A01Bunkernokey ,there is a problem in GECK when you start with a number,if i remember right. Edited December 9, 2010 by Aragron Link to comment Share on other sites More sharing options...
kilkeeper7 Posted December 9, 2010 Author Share Posted December 9, 2010 It didnt work. Its really weird because i press save and then i press the cross to exit and then it askes to save and then i press yes and it didnt close or anything. Link to comment Share on other sites More sharing options...
rickerhk Posted December 10, 2010 Share Posted December 10, 2010 You don't want your script name to start with a number either. Nothing should start with a number. Link to comment Share on other sites More sharing options...
kilkeeper7 Posted December 10, 2010 Author Share Posted December 10, 2010 That doesnt work either! Link to comment Share on other sites More sharing options...
Recommended Posts