I am having trouble with a script, it is a recycled script from somebody here who I did not get their name. It is a modded transportalponder script and it will not save in the geck and I do not see what I did wrong here.
scn TTWNVDLC03TransportalponderSCRIPT
; this script modifies the Transportalponder ( NVDLC03WeapTeleporter xx00E1B0 )
; this script is used instead of NVDLC03WeapTeleporterSCRIPT, which some of this script is copied from
short button
short checkButtons
BEGIN OnFire
If ( Player.IsInInterior == 1 )
; Player is in an interior - no teleport allowed.
ShowMessage NVDLC03TeleporterInInteriorMsg
ElseIf ( Player.GetEquipped HVExplosiveCollar == 1 )
; Hidden Valley Explosive Collar.
ShowMessage MQ05CantUseNowMessage
ElseIf ( Player.IsInCombat == 1) || ( GetVATSMode != 0 )
; Player is in combat - no teleport allowed.
ShowMessage NVDLC03TeleporterInCombatMsg
Else
Set checkButtons To 1
; this message below is what determines the destinations of this mod
; the message has a condition on each location that make sure you have discovered a map marker before you can travel there
; to add destinations, you need to add them to the message, and also add them to this script below
; IMPORTANT: The desitinations NEED to be in the same order in the message box as they are in this script
ShowMessage TTWNVDLC03TransportalponderTravelMsg
EndIf
END
BEGIN GameMode
If ( checkButtons == 1 )
set button to getbuttonpressed
if button > -1
; ==========================================================================
if button == 0
player.moveto RefNVDLC03SinkArrivalMarker
PlaySound NVDLC03FXTeleporter
setstage TTWFunctions 0
setstage TTWFunctions 2
; ==========================================================================
elseif button == 1
Player.MoveTo RefVMQYesMan38CasinoSpot
PlaySound NVDLC03FXTeleporter
setstage TTWFunctions 0
setstage TTWFunctions 3
; ==========================================================================
elseif button == 2
player.moveto RefNVDLC01VillaFountainMarker
PlaySound NVDLC03FXTeleporter
setstage TTWFunctions 0
setstage TTWFunctions 2
; ==========================================================================
elseif button == 3
player.moveto RefNVDLC02StartCOCMarker
PlaySound NVDLC03FXTeleporter
setstage TTWFunctions 0
setstage TTWFunctions 2
; ==========================================================================
elseif button == 4
player.moveto RefNVDLC04EDEReturnMarkerREF
PlaySound NVDLC03FXTeleporter
setstage TTWFunctions 0
setstage TTWFunctions 2
; ==========================================================================
elseif button == 5
player.moveto RefxMS11LucasPatrolBomb01
PlaySound NVDLC03FXTeleporter
setstage TTWFunctions 1
setstage TTWFunctions 2
; ==========================================================================
elseif button == 6
player.moveto RefDLC01TrainYardMapMARKER
PlaySound NVDLC03FXTeleporter
setstage TTWFunctions 0
setstage TTWFunctions 2
; ==========================================================================
elseif button == 7
player.moveto RefDLC05EngineCoreStage03AlienSpawn01REF
PlaySound NVDLC03FXTeleporter
setstage TTWFunctions 0
setstage TTWFunctions 2
; ==========================================================================
elseif button == 8
player.moveto RefDLC04KennyEntranceMapMarker
PlaySound NVDLC03FXTeleporter
setstage TTWFunctions 0
setstage TTWFunctions 2
; ==========================================================================
elseif button == 9
; don't do anything, action cancelled
endif
set checkButtons to 0
endif ; if button > -1
endif ; checkbuttons
END
