Jump to content

Kill Targets script


Roycesraphim

Recommended Posts

So, what I have laid out is that there is an important room where there are mirelurks.

 

I hit and switch and people swarm in. I want the quest to advance when the Mirelurk hunters and king are killed. Then the people advance with the player character to farm and kill the mirelurks there. I plan to have these mirelurks have the following scripts.

 

scn VTFIMQCrabshell
;this is for the mirlurks in the atrium
Begin ondeath
if
	(VTFIMirelurk2Ref1.getdead = 1)
	(VTFIMirelurk2Ref2.getdead = 1)
	(VTFIMirelurk3Ref1.getdead = 1)

setstage VTFIMainquestLiberation 150
endif
end

scn VTFIMQCrabbake
;this is for the mirelurks on the farm.
Begin ondeath
if
	(VTFIMirelurk2Ref3.getdead = 1)
	(VTFIMirelurk2Ref4.getdead = 1)
	(VTFIMirelurk3Ref2.getdead = 1)
	(VTFIMirelurk3Ref3.getdead = 1)

setstage VTFIMainquestLiberation 200
endif
end

 

Please critique.

 

Thank you.

Link to comment
Share on other sites

scn VTFIMQCrabshell
;this is for the mirlurks in the atrium
Begin ondeath
if (VTFIMirelurk2Ref1.getdead == 1) && (VTFIMirelurk2Ref2.getdead == 1) && (VTFIMirelurk3Ref1.getdead == 1)
	setstage VTFIMainquestLiberation 150
endif
end

scn VTFIMQCrabbake
;this is for the mirelurks on the farm.
Begin ondeath
if (VTFIMirelurk2Ref3.getdead == 1) && (VTFIMirelurk2Ref4.getdead == 1) && (VTFIMirelurk3Ref2.getdead == 1) && (VTFIMirelurk3Ref3.getdead == 1)
	setstage VTFIMainquestLiberation 200
endif
end

 

Use two "=" instead of one ("=="). And line all the conditions up and separate them with "&&"

Edited by Alexx378
Link to comment
Share on other sites

  • Recently Browsing   0 members

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