Jump to content

Recommended Posts

Posted (edited)

Hi,

At a certain point in my quest, I want the player to be the target of daily ambushes until they complete the next objective.
My goal is for the ambushes to play out similarly to the Legion/NCR hit squads: spawn > run up to player > 'you're dead' > fight > wait a day > repeat.
I'm having difficulty implementing the idea, particularly since the process of reverse engineering the NCR and Legion hit squads is so convoluted.

Would anybody lend me some advice as to how I might accomplish this? Are there any mods that do a similar thing?
Simple ways to implement the idea are fine, so long as they work!

Many thanks.

Edited by GenericDomain
Posted

This is the script I use in my Deathsong Brotherhood mod for a recurring ambush. It happens twice a week and uses the same four npc's to do it, and alternates between the four npcs two at a time. and it will only happen 6 times because of the count timer at the end of the script.

Feel free to use/modify this for your needs.

 

Hope it helps!

scn JL121DSBHAssassinAmbushScript

short ambush
float cday
float cday2
short doOnce
short count
short setcount

begin GameMode

if setcount != 1 && getstage JL121DSBHBrotherHoodEnemyQuest == 1
set count to 0
endif


if (player.GetInWorldSpace WastelandNV) && getstage JL121DSBHBrotherHoodEnemyQuest == 1
if ambush == 0 && cday == 0 

	set cday to gamedayspassed + 3
	set ambush to 1

	JL121DSBHAssassinRef01.moveto player  -600 -600
	JL121DSBHAssassinRef03.moveto player  -600 -600

	JL121DSBHAssassinRef01.startcombat player
	JL121DSBHAssassinRef03.startcombat player


elseif ambush == 1 && gamedayspassed > cday


	JL121DSBHAssassinRef02.moveto player -600 -600
	JL121DSBHAssassinRef04.moveto player -600 -600

        JL121DSBHAssassinRef02.startcombat player
	JL121DSBHAssassinRef04.startcombat player

	set ambush to 2

elseif ambush == 2
     set cday2 to gamedayspassed + 2
     set ambush to 3

elseif ambush == 3 && gamedayspassed > cday2

     set cday2 to 0
	set ambush to 0
     set cday to 0
	set count to count + 1

	JL121DSBHAssassinRef01.moveto Jl121DSBHAssassinHousingXMarker
	JL121DSBHAssassinRef02.moveto Jl121DSBHAssassinHousingXMarker
	JL121DSBHAssassinRef03.moveto Jl121DSBHAssassinHousingXMarker
	JL121DSBHAssassinRef04.moveto Jl121DSBHAssassinHousingXMarker

	JL121DSBHAssassinRef01.resurrect
	JL121DSBHAssassinRef02.resurrect
	JL121DSBHAssassinRef03.resurrect
	JL121DSBHAssassinRef04.resurrect

elseif count >= 5

	setstage JL121DSBHBrotherhoodEnemyQuest 5
	set ambush to -1
	set cday to -1
     set cday2 to -1


endif
endif

end
  • 1 month later...
Posted
  On 8/4/2014 at 11:37 AM, joshua121 said:

 

This is the script I use in my Deathsong Brotherhood mod for a recurring ambush. It happens twice a week and uses the same four npc's to do it, and alternates between the four npcs two at a time. and it will only happen 6 times because of the count timer at the end of the script.

 

Feel free to use/modify this for your needs.

 

Hope it helps!

 

 

Hi there, do you mind if I borrow your script for something I'm making for Fallout 3? I customized it to my quest and it's working like a charm.

  • Recently Browsing   0 members

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