What was your longest script ever?


 
												




ScriptName EndingBinksScript; This script is triggered at the end of the game, and controls which series of ending binks gets playedshort EndKarma;EndKarma: 1=High Karma 1, 2=High Karma 2, 3=High Karma 3, 4=Low Karma 1, 5=Low Karma 2, 6=Low Karma 3, 7=Neutra lKarmashort EndDeath;EndDeath: 1=Player Dies Good, 2=Player Lives, 3=Player Dies Evilshort EndEden;EndEden: 1=Player Didn't Side With Eden 1, 2=Player Didn't Side With Eden 2, 3=Player Sided With Edenshort KarmaCheck;checks player's Karma and sets the appropriate variableshort PlayIntroBink;checks whether the Intro Bink has been playedshort PlayKarmaBink;checks whether the Karma Bink has been playedshort PlayDeathBink;checks whether the Player Death Bink has been playedshort PlayEdenBink;checks whether the Eden Assist Bink has been playedshort PlayClosingBink;checks whether the Closing Bink has been playedshort PlayMainKarma;Checks whether the main karma bink as been playedBegin GameMode;This block plays the Introduction Bink if PlayIntroBink == 0; If GetStage MQ11 == 200 ;Play Introduction Bink Here PipBoyRadioOff ShowMessage EndingBink1 ;PlayMusic "Endgame01" PlayBink "B01.bik" 0 1 0 Set PlayIntroBink to 1; endifendif;This following section plays the appropriate Karma bink;---------------------------------------------------------------------------If PlayIntroBink == 1 If PlayKarmaBink == 0 If Player.GetAv Karma >= -249 If Player.GetAv Karma <= 249 ;Play Neutral Karma Bink Here ;ShowMessage EndingBink8 ;PlayMusic "Endgame08" PlayBink "B08.bik" 0 1 0 set PlayKarmaBink to 1 set PlayMainKarma to 1 endif endif endifendif If PlayIntroBink == 1 If PlayMainKarma == 0 If Player.GetAv Karma > 249 ;Play High Karma Bink 1 Here ;ShowMessage EndingBink2 ;PlayMusic "Endgame17" PlayBink "B17.bik" 0 1 0 set PlayMainKarma to 1 endif endifendif If PlayMainKarma == 1 If PlayKarmaBink == 0 If Player.GetAv Karma > 249 If GetStageDone Ms06 100 == 1 ;Play High Karma Bink 1 Here ;ShowMessage EndingBink2 ;PlayMusic "Endgame02" PlayBink "B02.bik" 0 1 0 set PlayKarmaBink to 1 endif endif endifendif If PlayMainKarma == 1 If PlayKarmaBink == 0 If Player.GetAv Karma > 249 If Getstage MS17 >= 100 ;Play High Karma Bink 2 Here ;ShowMessage EndingBink3 ;PlayMusic "Endgame03" PlayBink "B03.bik" 0 1 0 set PlayKarmaBink to 1 endif endif endifendif If PlayMainKarma == 1 If PlayKarmaBink == 0 If Player.GetAv Karma > 249 ;Play High Karma Bink 3 Here ;ShowMessage EndingBink4 ;PlayMusic "Endgame04" PlayBink "B04.bik" 0 1 0 set PlayKarmaBink to 1 endif endifendif If PlayIntroBink == 1 If PlayMainKarma == 0 If Player.GetAv Karma < -249 ;Play High Karma Bink 1 Here ;ShowMessage EndingBink2 ;PlayMusic "Endgame18" PlayBink "B18.bik" 0 1 0 set PlayMainKarma to 1 endif endifendif If PlayMainKarma == 1 If PlayKarmaBink == 0 If Player.GetAv Karma < -249 If MegatonDestroyed == 1 ;Play Low Karma Bink 1 Here ;ShowMessage EndingBink5 ;PlayMusic "Endgame05" PlayBink "B05.bik" 0 1 0 set PlayKarmaBink to 1 endif endif endifendif If PlayMainKarma == 1 If PlayKarmaBink == 0 If Player.GetAv Karma < -249 If MS10.InFlames >= 1 ;Play Low Karma Bink 2 Here ;ShowMessage EndingBink6 ;PlayMusic "Endgame06" PlayBink "B06.bik" 0 1 0 set PlayKarmaBink to 1 endif endif endifendif If PlayMainKarma == 1 If PlayKarmaBink == 0 If Player.GetAv Karma < -249 ;Play Low Karma Bink 3 Here ;ShowMessage EndingBink7 ;PlayMusic "Endgame07" PlayBink "B07.bik" 0 1 0 set PlayKarmaBink to 1 endif endifendif ;-------------------------------------------------------------;This section plays the Player Died Binks;--------------------------------------------------------------If PlayKarmaBink == 1 If PlayDeathBink == 0 If EndDeath == 1 ;Play Player Died (Good) Bink ;ShowMessage EndingBink9 ;PlayMusic "Endgame09" PlayBink "B09.bik" 0 1 0 set PlayDeathBink to 1 endif endifendif If PlayKarmaBink == 1 If PlayDeathBink == 0 If EndDeath == 2 ;Play Player Lives Bink ;ShowMessage EndingBink10 ;PlayMusic "Endgame10" PlayBink "B10.bik" 0 1 0 set PlayDeathBink to 1 endif endifendifIf PlayKarmaBink == 1 If PlayDeathBink == 0 If EndDeath == 3 ;Play Player Died (Evil) Bink ;ShowMessage EndingBink11 ;PlayMusic "Endgame11" PlayBink "B11.bik" 0 1 0 set PlayDeathBink to 2 endif endifendif;------------------------------------------------;This section plays the Sided With Eden Binks;-------------------------------------------------------------- If PlayDeathBink == 1 If PlayEdenBink == 0 If EndEden == 3 ;Play Player Sided With Eden Bink ;ShowMessage EndingBink14 ;PlayMusic "Endgame14" PlayBink "B14.bik" 0 1 0 set PlayEdenBink to 1 endif endifendifIf PlayDeathBink == 1 If PlayEdenBink == 0 If EndEden < 3 if MQ09.RRDestroy == 0 ;Play Player Didn't Side With Eden 1 Bink ;ShowMessage EndingBink12 ;PlayMusic "Endgame12" PlayBink "B12.bik" 0 1 0 set PlayEdenBink to 1 endif endif endifendifIf PlayDeathBink == 1 If PlayEdenBink == 0 If EndEden < 3 if MQ09.RRDestroy == 1 ;Play Player Didn't Side With Eden 2 Bink ShowMessage EndingBink13 ;PlayMusic "Endgame13" PlayBink "B13.bik" 0 1 0 set PlayEdenBink to 1 endif endif endifendif;------------------------------------------------------------;This block plays the closing binkIf PlayDeathBink >= 1 If PlayClosingBink == 0 If GetPCIssix Male == 1 ;Play Closing Bink ;ShowMessage EndingBink15 ;PlayMusic "Endgame15" PlayBink "B15.bik" 0 1 0 set PlayClosingBink to 1 endif endifendifIf PlayDeathBink >= 1 If PlayClosingBink == 0 If GetPCIssix Male == 0 ;Play Closing Bink ;ShowMessage EndingBink15 ;PlayMusic "Endgame16" PlayBink "B16.bik" 0 1 0 set PlayClosingBink to 1 endif endifendif;------------------------------------------------------------;This block plays the epilogue binkIf PlayClosingBink == 1 If GetPCIssix Male == 1 If GetPCIsRace AfricanAmerican == 1 PlayBink "B19.bik" 0 1 0 addachievement 13 ExitGame set PlayClosingBink to 2 endif endifendifIf PlayClosingBink == 1 If GetPCIssix Female == 1 If GetPCIsRace AfricanAmerican == 1 PlayBink "B20.bik" 0 1 0 addachievement 13 ExitGame set PlayClosingBink to 2 endif endifendifIf PlayClosingBink == 1 If GetPCIssix Male == 1 If GetPCIsRace Caucasian == 1 PlayBink "B21.bik" 0 1 0 addachievement 13 ExitGame set PlayClosingBink to 2 endif endifendifIf PlayClosingBink == 1 If GetPCIssix Female == 1 If GetPCIsRace Caucasian == 1 PlayBink "B22.bik" 0 1 0 addachievement 13 ExitGame set PlayClosingBink to 2 endif endifendifIf PlayClosingBink == 1 If GetPCIssix Male == 1 If GetPCIsRace Asian == 1 PlayBink "B23.bik" 0 1 0 addachievement 13 ExitGame set PlayClosingBink to 2 endif endifendifIf PlayClosingBink == 1 If GetPCIssix Female == 1 If GetPCIsRace Asian == 1 PlayBink "B24.bik" 0 1 0 addachievement 13 ExitGame set PlayClosingBink to 2 endif endifendifIf PlayClosingBink == 1 If GetPCIssix Male == 1 If GetPCIsRace Hispanic == 1 PlayBink "B25.bik" 0 1 0 addachievement 13 ExitGame set PlayClosingBink to 2 endif endifendifIf PlayClosingBink == 1 If GetPCIssix Female == 1 If GetPCIsRace Hispanic == 1 PlayBink "B26.bik" 0 1 0 addachievement 13 ExitGame set PlayClosingBink to 2 endif endifendifEnd
scn EndingBinksScriptInt EndKarma ; EndKarma: 1=High Karma 1, 2=High Karma 2, 3=High Karma 3, 4=Low Karma 1, 5=Low Karma 2, 6=Low Karma 3, 7=Neutra lKarmaInt EndDeath ; EndDeath: 1=Player Dies Good, 2=Player Lives, 3=Player Dies EvilInt EndEden ; EndEden: 1=Player Didn't Side With Eden 1, 2=Player Didn't Side With Eden 2, 3=Player Sided With EdenInt KarmaCheck ; checks player's Karma and Sets the appropriate variableInt PlayIntroBink ; checks whether the Intro Bink has been playedInt PlayKarmaBink ; checks whether the Karma Bink has been playedInt PlayDeathBink ; checks whether the Player Death Bink has been playedInt PlayEdenBink ; checks whether the Eden Assist Bink has been playedInt PlayClosingBink ; checks whether the Closing Bink has been playedInt PlayMainKarma ; Checks whether the main karma bink as been playedBegin GameMode If (PlayClosingBink == 2) Return Else ;============= Intro Binks ============= If PlayIntroBink If (PlayMainKarma == 0) If (Player.GetAv Karma > 249) PlayBink "B17.bik" 0 1 0 ElseIf (Player.GetAv Karma < -249) PlayBink "B18.bik" 0 1 0 Else If (PlayKarmaBink == 0) PlayBink "B08.bik" 0 1 0 Set PlayKarmaBink to 1 EndIf EndIf EndIf Set PlayMainKarma to 1 Else PipBoyRadioOff ShowMessage EndingBink1 PlayBink "B01.bik" 0 1 0 Set PlayIntroBink to 1 EndIf ;============= Karma Binks ============= If PlayMainKarma If (PlayKarmaBink == 0) Set PlayKarmaBink to 1 If (Player.GetAv Karma > 249) If GetStageDone Ms06 100 PlayBink "B02.bik" 0 1 0 EndIf If (Getstage MS17 >= 100) PlayBink "B03.bik" 0 1 0 EndIf PlayBink "B04.bik" 0 1 0 ElseIf (Player.GetAv Karma < -249) If MegatonDestroyed PlayBink "B05.bik" 0 1 0 EndIf If (MS10.InFlames >= 1) PlayBink "B06.bik" 0 1 0 EndIf PlayBink "B07.bik" 0 1 0 EndIf EndIf EndIf ;============= Player Died Binks ============= If PlayKarmaBink If (PlayDeathBink == 0) If (EndDeath == 1) PlayBink "B09.bik" 0 1 0 Set PlayDeathBink to 1 ElseIf (EndDeath == 2) PlayBink "B10.bik" 0 1 0 Set PlayDeathBink to 1 ElseIf (EndDeath == 3) PlayBink "B11.bik" 0 1 0 Set PlayDeathBink to 2 EndIf EndIf EndIf ;============= Sided With Eden Binks ============= If (PlayDeathBink == 1) If (PlayEdenBink == 0) If (EndEden == 3) PlayBink "B14.bik" 0 1 0 Set PlayEdenBink to 1 ElseIf (EndEden < 3) Set PlayEdenBink to 1 If MQ09.RRDestroy ShowMessage EndingBink13 PlayBink "B13.bik" 0 1 0 Else PlayBink "B12.bik" 0 1 0 EndIf EndIf EndIf EndIf ;============= Closing Bink ============= If (PlayDeathBink >= 1) If (PlayClosingBink == 0) Set PlayClosingBink to 1 If GetPCIssix Male PlayBink "B15.bik" 0 1 0 Else PlayBink "B16.bik" 0 1 0 EndIf EndIf EndIf ;============= Epilogue Bink ============= If PlayClosingBink ;Achievement 13 Set PlayClosingBink to 2 If GetPCIssix Male If GetPCIsRace AfricanAmerican PlayBink "B19.bik" 0 1 0 ElseIf GetPCIsRace Hispanic PlayBink "B25.bik" 0 1 0 ElseIf GetPCIsRace Asian PlayBink "B23.bik" 0 1 0 Else PlayBink "B21.bik" 0 1 0 EndIf Else If GetPCIsRace AfricanAmerican PlayBink "B20.bik" 0 1 0 ElseIf GetPCIsRace Hispanic PlayBink "B26.bik" 0 1 0 ElseIf GetPCIsRace Asian PlayBink "B24.bik" 0 1 0 Else PlayBink "B22.bik" 0 1 0 EndIf EndIf ExitGame EndIf EndIfEnd



 I'm gonna save that link!
 I'm gonna save that link!


 I've split my script up. It wasn't that fital to have it all in one script, just easier.
 I've split my script up. It wasn't that fital to have it all in one script, just easier.												
