choochoo1 Posted September 23, 2012 Share Posted September 23, 2012 Can someone please help me. I need a simple script that I can link so that when u walk up to a locked door you can pay XXXX caps for the key. I need so be able to use it on multiple different doors with different amounts. Im also looking for someone to help me script upgradable buildings and guards. Im planning to use this for my firebase phoenix mod that places a miitary base in a new world that u can usew for RTS/Wasteland Defense. If anyone would wanna help me with the script or anyother aspects please let me know. Link to comment Share on other sites More sharing options...
DizzasterJuice Posted September 24, 2012 Share Posted September 24, 2012 Can someone please help me. I need a simple script that I can link so that when u walk up to a locked door you can pay XXXX caps for the key. I need so be able to use it on multiple different doors with different amounts. Im also looking for someone to help me script upgradable buildings and guards. Im planning to use this for my firebase phoenix mod that places a miitary base in a new world that u can usew for RTS/Wasteland Defense. If anyone would wanna help me with the script or anyother aspects please let me know.This is off the top of my head so you need to double check my syntax:(this script doesn't offer an opt out. If you need one then it will have to be written a bit different) ;---------item script on door----------scn Door01Scriptshort doorunlocked On Activateif doorunlocked == 0Player.removeitem bottlecaps XXXXPlayer.additem doorkey 1 :adding the key to player's inventory is only for realismDoor01REF.unlockset doorunlocked to 1elseif doorunlocked == 1activateendifend Link to comment Share on other sites More sharing options...
choochoo1 Posted September 25, 2012 Author Share Posted September 25, 2012 Thanks man. im gonna have to figure out how to link it to the doors. but this is a big step. Link to comment Share on other sites More sharing options...
Ladez Posted October 1, 2012 Share Posted October 1, 2012 The best and easiest way to do this would be to use a perk with an activation entry point. That way you avoid having to attach a script to all types of doors. The NVSE function GetOpenKey may be useful for getting the key that unlocks a door reference. Link to comment Share on other sites More sharing options...
Recommended Posts