Jump to content

Script Bobblehead New Location


joshbaker47

Recommended Posts

ok ive been trying for a week now to get this script workign and it keeps giving me

SCRIPTS: Script BobbleheadDisplaySanctuaryScript', line 3 : Mismatched begin/end block starting on line 3. could i get someone to look at this and tell me what im doing wrong

 

Im making a mod of a new town thats underground that would add about 10 quests to start with and more to come but at the end of this mod this is the only script i can not get to work i have 4 venders 10 quests and alot others but i can not get this to work ......

 

 

 

 

scn BobbleheadDisplaySanctuaryScript

 

begin OnActivate

if IsActionRef player == 1

if BH01.Carrying == 1

Set BH01.Carrying to 0

if ( BH01.HaveAGL == 1 )

SANAGLRef.Enable

Player.RemoveItem BobbleheadAGL 1

endif

 

if ( BH01.HaveBART == 1 )

SANBarterRef.Enable

Player.RemoveItem BobbleheadBART 1

endif

 

if ( BH01.HaveBGUN == 1 )

SANBigGunsRef.Enable

Player.RemoveItem BobbleheadBGUN 1

endif

 

if ( BH01.HaveCHA == 1 )

SANCHARef.Enable

Player.RemoveItem BobbleheadCHA 1

endif

 

if ( BH01.HaveEND == 1 )

SANENDRef.Enable

Player.RemoveItem BobbleheadEND 1

endif

 

if ( BH01.HaveERGW == 1 )

SANEnergyWeaponsRef.Enable

Player.RemoveItem BobbleheadERGW 1

endif

 

if ( BH01.HaveEXPL == 1 )

SANExplosivesRef.Enable

Player.RemoveItem BobbleheadEXPL 1

endif

 

if ( BH01.HaveINT == 1 )

SANINTRef.Enable

Player.RemoveItem BobbleheadINT 1

endif

 

if ( BH01.HaveLOCK == 1 )

SANLockpickRef.Enable

Player.RemoveItem BobbleheadLOCK 1

endif

 

if ( BH01.HaveLUK == 1 )

SANLUKRef.Enable

Player.RemoveItem BobbleheadLUK 1

endif

 

if ( BH01.HaveMEDI == 1 )

SANMedicineRef.Enable

Player.RemoveItem BobbleheadMEDI 1

endif

 

if ( BH01.HaveMELE == 1 )

SANMeleeRef.Enable

Player.RemoveItem BobbleheadMELE 1

endif

 

if ( BH01.HavePER == 1 )

SANPERRef.Enable

Player.RemoveItem BobbleheadPER 1

endif

 

if ( BH01.HaveREPR == 1 )

SANRepairRef.Enable

Player.RemoveItem BobbleheadREPR 1

endif

 

if ( BH01.HaveSCNC == 1 )

SANScienceRef.Enable

Player.RemoveItem BobbleheadSCNC 1

endif

 

if ( BH01.HaveSGUN == 1 )

SANSmallGunsRef.Enable

Player.RemoveItem BobbleheadSGUN 1

endif

 

if ( BH01.HaveSNEK == 1 )

SANSneakRef.Enable

Player.RemoveItem BobbleheadSNEK 1

endif

 

if ( BH01.HaveSPCH == 1 )

SANSpeechRef.Enable

Player.RemoveItem BobbleheadSPCH 1

endif

 

if ( BH01.HaveSTR == 1 )

SANSTRRef.Enable

Player.RemoveItem BobbleheadSTR 1

endif

 

if ( BH01.HaveUARM == 1 )

SANUnarmedRef.Enable

Player.RemoveItem BobbleheadUARM 1

endif

else

ShowMessage BobbleheadNone

Link to comment
Share on other sites

The reason for your error is because you have no End at the end of your script. At the bottom, slap an End and the error will go away. Right now, your script has a beginning, but there's nothing on it saying "Okay, stop here, there's nothing else for this Begin block.

 

Also, in the future, use a [ Code] [ /code] command to post scripts. (without the spaces)

 

SCN ScriptName

Begin GameMode

Something here

end

Link to comment
Share on other sites

  • Recently Browsing   0 members

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