Need Someone to check my script

Post » Mon Mar 14, 2011 2:04 pm

I have been reviewing this script for awhile looking for the flaw...but I cannot seem to locate it.
Whenever I start a new game, I get my option choices (this is an alternate start mod) where to start, I select my choice, watch the intro video, create my character and get my new equipment at start, but after I finish all my character creation stuff (editing face, choosing birthsign, and selecting class) and right when I am about to hit the road on my big quest...well...it crashes. Oh, it does give me the quest pop up for the journal entry too! but after I close that, it takes a minute with no HUD on screen, then it crashes.

The "Knowledge Start Quest Script" is the new addition to the original script where the most changes happened. There were only minor changes that happened in the original 3 script and that was adding 3 lines of script:
	CasteGateREF01.enable	CastleGateRef02.enable	CastleGateREF03.enable


So here is the master quest (where I suspect the problem is)

Spoiler
scn aamlmasterquestscriptshort controlvarshort buttonshort stateshort goldshort toolsShort ChoosingShort ChoiceShort WorkingFloat fQuestDelayTimeBegin GameMode  If (Working == 1) && getstage aamlmasterquest < 4    Set Choosing to -1    Set Working to 0  Endif  If (Choosing == 0) && getstage aamlmasterquest < 4 ;meaning it shouldn't be running    StopQuest aamlmasterquest    ;Add anything that needs to be re-initialized    Return  Elseif (Choosing == -1) && getstage aamlmasterquest < 4 ;Display your menu    Messagebox "Choose Your Story:" "The Blacksmith's Heir..." "An Assassin on the Run..." "A Scholar in Training..." "A Lonely Ruler..."    Set Choosing to 1    Set Choice to -1	set gold to 25 + 0.99 * GetRandompercent  Elseif (Choosing == 1) ;Catch the player's decision    If (Choice == -1) ;No choice yet      Set Choice to GetButtonPressed    Elseif (Choice == 0) ;First Option      ; Blacksmith Start Script	 ; ===================	;setinchargen 1	setstage aamlmasterquest 5	stopquest aamlmasterquest	player.additem 0000000f gold	player.additem WeapIronLongswordFine 1	player.additem LowerShoes01 1	player.additem LowerPants01 1	player.additem LowerShirt01 1	player.additem Book2CommonManualArms01 1	player.additem Book2CommonManualArmor 1	player.additem RepairHammer 12	player.additem Torch02 5	player.additem HammerandAxeKey 1	player.addspell aamlblacksmithspell	player.addspell aamlblacksmithLV1	aamlblacksmithbasedoorRef.enable	aamlblacksmithbasewallRef.enable	CasteGateREF01.enable	CastleGateRef02.enable	CastleGateREF03.enable	SetCellOwnership BrumaHammerAndAxe aamlblacksmith	aamlblacksmithdoorRef.SetOwnership aamlblacksmith	aamlhammerdoorRef.SetOwnership aamlblacksmith	player.SetFactionRank aamlblacksmith, 0	set aamlAblacksmith.fQuestDelayTime to 0.1	setstage aamlAblacksmith 1	player.moveto aamlstartblacksmithnewRef      Set Choosing to 0 ;to finish up    Elseif (Choice == 1) ;Second Option      ; Assassin Start Script	 ; =================	;setinchargen 1	setstage aamlmasterquest 5	stopquest aamlmasterquest	player.additem 0000000f gold	player.additem WeapSteelDagger 1	player.additem FurBoots 1	player.additem FurGreaves 1	player.additem FurCuirass 1	player.additem FurGauntlets 1	player.additem Book2CommonManualMixedUnitTactics 1	player.additem Lockpick 21	player.additem Torch02 5	player.addspell aamlassassinspell	player.addspell aamlassassinability	aamlassassincamptargetRef.enable	aamlassassincampfireRef.enable	aamlassassincampfirelogRef.enable	aamlassassincampcookingplankRef.enable	aamlassassincamppotRef.enable	aamlassassincampstoolRef.enable	aamlassassincampmarkerRef.enable	aamlassassincamlsackoneRef.enable	aamlassassincampsacktwoRef.enable	aamlassassincampfoodtwoRef.enable	aamlassassincampfoodthreeRef.enable	aamlassassincampshieldRef.enable	aamlassassincamphelmRef.enable	aamlassassincampbowRef.enable	aamlassassincamparrowsRef.enable	CasteGateREF01.enable	CastleGateRef02.enable	CastleGateREF03.enable	aamlcamptentRef.enable	aamltentdoorRef.enable	set aamlBassassin.fQuestDelayTime to 0.1	setstage aamlBassassin 1	player.moveto aamlstartassassintentRef      Set Choosing to 0 ;to finish up    Elseif (Choice == 2) ;Third Option      ; Scholar Start Script	 ; ================	;setinchargen 1	setstage aamlmasterquest 5	stopquest aamlmasterquest	player.additem 0000000f gold	player.additem aamlmagestaffweap 1	player.additem LowerShoes02 1	player.additem LowerRobe03hood 1	player.additem LowerRobe03 1	player.additem Book2CommonManualSpellcraft 1	player.additem SoulGem1Petty1PettySoul 5	player.additem SoulGemEmpty1Petty 3	player.additem Torch02 5	player.addspell DefaultPlayerSpell	player.addspell StandardFireDamageTarget1Novice	player.addspell aamlmageability	aamlmageruinRef.enable	aamlmageruinbuildingRef.enable	aamlmageruinmarkerRef.enable	aamlmageruindecoonceRef.enable	aamlmageruindecotwoRef.enable	aamlmageruindecotreeRef.enable	aamlmageruindecophorRef.enable	aamlmageruindecopheveRef.enable	aamlmagestatueRef.enable	CasteGateREF01.enable	CastleGateRef02.enable	CastleGateREF03.enable	set aamlCscholar.fQuestDelayTime to 0.1	setstage aamlCscholar 1	player.moveto aamlmageruinstartRef      Set Choosing to 0 ;to finish up    Elseif (Choice == 3) ;Fourth Option ; Knowledge Start Script	 ; ================	;setinchargen 1	setstage aamlmasterquest 5	stopquest aamlmasterquest	player.additem 0000000f 15000	player.additem aamldSixStringAxe 1	player.additem aalmDRoyalRebelSandals 1	player.additem aamldRoyalRebelBlouse 1	player.additem aamldRoyalRebelGata 1	player.additem Book2CommonManualSpellcraft 1	player.additem SoulGem1Petty1PettySoul 5	player.additem SoulGemEmpty1Petty 3	player.additem Torch02 5	player.addspell DefaultPlayerSpell	player.addspell StandardFireDamageTarget1Novice	player.addspell aamlmageability	aalmMapMarkerRef.enable	set aamlDTheRulerofKnowledge.fQuestDelayTime to 0.1	setstage aamlDTheRulerofKnowledge 1	player.moveto aamldKnowledgestart		Set Choosing to 0 ;to finish up    Endif  EndifEnd;NOTE;---------;No Additem Spam;tempContainerRef.addItem deathDagger 1;tempContainerRef.removeAllItems player


and here is quest script for the chosen start (I was using a previous 3 alt. start mod as a template, I have only added one new start)
Spoiler
scn aamlrulerofknowledgescriptfloat fQuestDelayTimeshort dooncebegin menumode 1036	if doonce == 0		StreamMusic "data\music\Themes\theme_knowledge.mp3"		set doonce to 1	endifendbegin gamemode	if getstage aamlDTheRulerofKnowledge == 1		showbirthsignmenu		setstage aamlDTheRulerofKnowledge 2	endifendbegin gamemode	if getstage aamlDTheRulerofKnowledge == 2		showclassmenu		setstage aamlDTheRulerofKnowledge 3	endifendbegin gamemode	if getstage aamlDTheRulerofKnowledge == 3		setstage aamlDTheRulerofKnowledge 100	endifend


Obviously if the problem is not in the script it is a conflict, which I am currently searching for but I onyl have one other mod installed other than this one, so I am clueless what could cause the conflict.
User avatar
Courtney Foren
 
Posts: 3418
Joined: Sun Mar 11, 2007 6:49 am

Return to IV - Oblivion