
First create a door. It can be locked or unlocked.
Next create a Message. Example text:
An examination of the door's security components reveals that several parts and connections were damaged when raiders tried to break in. It should be repairable with the right parts, or perhaps the system can be bypassed. [Repair of 40 or greater required, plus 2 pieces of Scrap Electronics and a Sensor Module are required to repair the door.] [Science of 50 or greater required to bypass the security system.]
There will be three options:
Then create a the fixed door messages:
You fixed the Safe House North Entry Door, but it remains locked.
and/or
You bypassed the security system on the Safe House North Entry Door.
Finally, attach the following script to the door:
scn TISHNorthFixDoorScript
short bFixed ; 1 = Player has repaired the door.
short Button
begin OnActivate player
if bFixed
Activate
else
ShowMessage TISHBrokenDoorMSG
endif
end
BEGIN GameMode
set Button to GetButtonPressed
if ( Button == 1 )
set bFixed to 1
ShowMessage TISHNorthFixedDoorMsg
player.removeitem SensorModule 1
player.removeitem ScrapElectronics 2
RewardXP 100
else
if ( Button == 2 )
set bFixed to 1
ShowMessage TISHNorthBypassedDoorMsg
RewardXP 100
Unlock
endif
endif
END