joshbaker47 Posted June 20, 2009 Share Posted June 20, 2009 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 OnActivateif IsActionRef player == 1if 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 endifelse ShowMessage BobbleheadNone Link to comment Share on other sites More sharing options...
Khet Posted June 20, 2009 Share Posted June 20, 2009 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 More sharing options...
joshbaker47 Posted June 21, 2009 Author Share Posted June 21, 2009 ok did it and then i get a diffrent error line 4 if / else so im just not goign to deal with it adn take the bobble head stand out of new player room in new loc thanks for the help thou and i will rem the code thing next time Link to comment Share on other sites More sharing options...
AlexxEG Posted June 21, 2009 Share Posted June 21, 2009 add this to the buttom Endif endif end Link to comment Share on other sites More sharing options...
Recommended Posts