amokrun1 Posted February 13 Share Posted February 13 So basically I am trying to alter the script attached to the gate you activate when leaving the Sierra Madre and going back to the Mojave. The script as it is now gives an option to stay or leave when activated, and plays the ending slides, puts you back in the BOS bunker etc when the former is selected. What I want is to create an activator object(a totem) that behaves in the same way in that it gives a choice to stay or leave. But when leaving is chosen, I want the character to pass out and then the end slides play. It's pretty much the exact same event at the start of Dead Money, only placed at the ending. I have basically mashed two scripts together, one for the gas trigger at the DLC's start for passing out, and the gate script at the end. However, when attached to the script, it does not behave at all as I want. Here is what I have. Any advice would be greatly appreciated. scn NVDLC01SMGateMojaveSCRIPT ; JSH 10.11.10 ; Script that returns player to BoS Bunker in Mojave Wasteland. ; CES 10/26/10 ; Updating the script to move the ending slideshow from here to the Vault Elevator ;Variables Short bButton ;Grabs the button pressed for the message box short bActivated ;Tracks if the player has exited the DLC short StartUp short EndStartUp float TimerA float TimerB float TimerC float TimerD float TimerE float TimerZ ; Ending must have played at least once short bEndingDone ref rCountryRadio BEGIN OnActivate if (IsActionRef player) && (GetLocked == 0) ShowMessage NVDLC01TravelToMojaveMsg endif END BEGIN GameMode set bButton to GetButtonPressed if ( bButton == 1 ) && (bActivated == 0) && (StartUp == 0) DisablePlayerControls 1 1 1 1 1 1 1 Set bActivated to 1 Set TimerA to 1 Set TimerA to .2 Set StartUp to 1 endif ; Player gets gassed. if ( StartUp == 1 ) if ( TimerA > 0 ) Set TimerA to ( TimerA - GetSecondsPassed ) else player.AddScriptPackage NVDLC01PlayerKnockedOut Set TimerB to 2 Set StartUp to 2 endif endif ; Player hits the ground, dazed. if ( StartUp == 2 ) if ( TimerB > 0 ) Set TimerB to ( TimerB - GetSecondsPassed ) else Set TimerC to 8 Set StartUp to 3 endif endif ; Player slowly passes out. if ( StartUp == 3 ) if ( TimerC > 0 ) Set TimerC to ( TimerC - GetSecondsPassed ) else imod FadeToBlackISFX Set TimerC to 5 Set StartUp to 4 endif endif ; Player wakes up. if ( StartUp == 4 ) if ( TimerC > 0 ) Set TimerC to ( TimerC - GetSecondsPassed ) else StartQuest NVDLC01Ending player.MoveTo NVDLC01SlideshowMarker Set TimerE to 5 Set StartUp to 5 endif endif if ( StartUp == 5 ) if ( TimerC > 0 ) Set TimerC to ( TimerC - GetSecondsPassed ) else Player.RemoveScriptPackage Set StartUp to 6 ;EnablePlayerControls endif endif ; Enable FNV Radio Stations on DLC end RNVTARef.Enable; ;Enable Radio New Vegas set rCountryRadio to vCountryRadioREF.GetLinkedRef; ;Country Radio has no ref name, so getlinked rCountryRadio.Enable; ;Disable Country Radio NVDLC01Bartender.AlwaysShowActorSubtitles 0; ;Set up hologram vendors to stop showing subtitles NVDLC01HologramVendor1REF.AlwaysShowActorSubtitles 0 NVDLC01HologramVendor2REF.AlwaysShowActorSubtitles 0 NVDLC01HologramVendor3REF.AlwaysShowActorSubtitles 0 NVDLC01HoloDealer03.AlwaysShowActorSubtitles 0 NVDLC01HoloDealer02.AlwaysShowActorSubtitles 0 NVDLC01HoloDealer01.AlwaysShowActorSubtitles 0 StarletHologramVillaRef.SetNPCRadio 0 NVDLC01RadioStationRef; ;Stop the Starlet Hologram playing the Starlet Radio audio at the fountain ; NVDLC01RadioDisable ; Disable DLC Radio Stations on DLC End NVDLC01RadioStationChristineREF.disable StopQuest NVDLC01RadioChristine NVDLC01RadioStationDeanREF.disable StopQuest NVDLC01RadioDeanQuest NVDLC01RadioStationDogREF.disable StopQuest NVDLC01RadioDog NVDLC01RadioStationSpeakersREF.disable StopQuest NVDLC01RadioSpeakers NVDLC01RadioStationDeanMusicREF.disable StopQuest NVDLC01RadioDeanMusic NVDLC01RadioStationElijahREF.disable StopQuest NVDLC01RadioElijah RemoveImageSpaceModifier FriendOfTheNightInteriorISFX RemoveImageSpaceModifier FriendOfTheNightISFX player.DispelAllSpells ; Removes all chem effects. PipBoyRadioOff ; Turn off PipBoy radio. Player.ResetHealth PlayMusic EndSlideShow StopQuest NVDLC01ChristineBarkTimer player.MoveTo NVDLC01SlideshowMarker END Link to comment Share on other sites More sharing options...
amokrun1 Posted February 13 Author Share Posted February 13 Resolved. Link to comment Share on other sites More sharing options...
Recommended Posts