Jump to content

Yet another broken script


Roycesraphim

Recommended Posts

So I have a mod with a vault that's infested with mirelurks. There are 7 that I have made specific to the quest. 3 in one room, 4 in another.

 

I have it scripted so far with 1 path that I know works, and two others that I'm not so sure about.

 

The first path is turning on an elevator for help (VTFIMainquestliberation == 100)

 

The second path is getting the assignment for the elevator and killing them yourself (vtfimainquestliberation == 75), in which help joins you in the second room (vtfimainquestliberation == 150).

 

The third option is the one I keep getting crashes and no quest advancement is where you sneak in the back door and kill either room in either order

(vtfimainquestliberation == 20) -> (vtfimainquestliberation == 175)

 

 

scn VTFIMQCrabbake
;this is for the mirelurks in the atrium .
Begin ondeath
	if	(VTFIMirelurk2Ref1.getdead == 1) && (VTFIMirelurk2Ref2.getdead == 1) && (VTFIMirelurk3Ref1.getdead == 1)
			if  (GetStage VTFIMainquestLiberation == 100) ;If the player unlocks the elevator before killing the mirelurks in the atrium
				setstage VTFIMainquestLiberation 150
				VTFIJTMarshREF.AddScriptPackage VTFIMQ150JTMarshdialog
			elseif  (GetStage VTFIMainquestLiberation == 75) ;if the player kills the mirelurks in the atrium before unlocking the elevator
				setstage VTFIMainquestLiberation 150
				VTFIJTMarshREF.moveto AbleAttack
				VTFIJTMarshREF.AddScriptPackage VTFIMQ150JTMarshdialog
				VTFVADoor.Unlock
				VTFISurfaceSwitch.Enable
			endif
;this is for the mirlurks on the farm
	elseif 	 (Getstage VTFIMainquestLiberation == 150) && (VTFIMirelurk2Ref3.getdead == 1) && (VTFIMirelurk2Ref4.getdead == 1) && (VTFIMirelurk3Ref2.getdead == 1) && (VTFIMirelurk3Ref3.getdead == 1)
	setstage VTFIMainquestLiberation 200
	VTFIJTMarshREF.AddScriptPackage VTFIMQ200JTMarshdialog
	endif
;this is for the 175 Rambo option...
	elseif (GetStage VTFIMainquestLiberation == 20)
		if (VTFIMirelurk2Ref1.getdead == 1) && (VTFIMirelurk2Ref2.getdead == 1) &&(VTFIMirelurk2Ref3.getdead == 1) && (VTFIMirelurk2Ref4.getdead == 1) && (VTFIMirelurk3Ref1.getdead == 1) && (VTFIMirelurk3Ref2.getdead == 1) && (VTFIMirelurk3Ref3.getdead == 1) 
			setstage VTFIMainquestLiberation 175
		endif
	endif
end

 

This was my latest script and now things are crashing.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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