Jump to content

Money for key script


choochoo1

Recommended Posts

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

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 Door01Script

short doorunlocked

 

On Activate

if doorunlocked == 0

Player.removeitem bottlecaps XXXX

Player.additem doorkey 1 :adding the key to player's inventory is only for realism

Door01REF.unlock

set doorunlocked to 1

elseif doorunlocked == 1

activate

endif

end

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...