Jump to content

[Req] Respawning captives


DeMocha

Recommended Posts

Basically i've played through the game a few times or so, and i often like to roam about after MQ has finished, so by and large i look for something in the wastelands to do (and killing Super mutants is fun) but by the time the MQ has finished you've seen all the outposts and the captives can only be freed once.

 

So i was thinking does anyone know how you can get the Captives to respawn (even though the captive of that area has been freed), and be able to free the captive again.

 

I selected 'respawn' in the 'wasteland captive' character template, but it doesn't appear to have worked.... would've been surprised if it was that easy tbh.

There is a script (SCN FFSupermutantCaptiveSCRIPT), but i'm not very good at reading it.

SCN FFSupermutantCaptiveSCRIPT

Short 	Freed
Short	ThankedPlayer
Short 	Button
Short	DoOnce

Float	Timer

BEGIN OnLoad

if ( Freed == 1 )
	disable
else (  Freed == 0 )
	RemoveFromFaction WastelandFreedCaptiveFACTION
	; ignore crime so that I won't respond to friendly fire
	IgnoreCrime 1
	; reset restrained state so I can get back into position after load
	set DoOnce to 0
	setRestrained 0
endif

END

BEGIN OnActivate

if ( GetDead == 0 )
	if ( freed == 0 )
		if ( IsActionRef player == 1 )
			if ( Player.IsInCombat == 0 )
				if ( GetIsSex Male == 1 ) 
					ShowMessage FFESupermutantCaptiveMessageBoxM
				elseif ( GetIsSex Female == 1 )
					ShowMessage FFESupermutantCaptiveMessageBoxF
				endif
			else
				ShowMessage FFSupermutantCaptiveNoActivateMessage
			endif
		endif
	endif	
elseIf ( GetDead == 1 )
	Activate
endif

END

BEGIN GameMode
; restrain me once I'm in position
if ( DoOnce == 0 )
	if ( GetSitting == 3 )
		set DoOnce to 1
		setRestrained 1
	endif
endif

if ( freed == 0 )
	set button to GetButtonPressed

	if ( button == 1 )
		SetRestrained 0
		ModPCMiscStat "Captives Rescued" 1
		RemoveFromFaction WastelandCaptiveFaction
		AddToFaction WastelanderFaction 1
		AddToFaction WastelandFreedCaptiveFaction 1
		setav Variable02 1
		addscriptpackage FFSupermutantCaptiveGreetPlayer
		set Freed to 1
		; stop ignoring crime
		ignoreCrime 0
	endif

	set Timer to ( Timer - GetSecondsPassed )

	if ( Timer <= 0 )
		set Timer to 10 

		if ( GetRandomPercent <= 50 )
			say FFSMCaptiveYellForHelp
		endif			
	endif
endif
	
END

 

 

I'd be very grateful if someone could do this for me or tell me how, (or both).

Link to comment
Share on other sites

  • Recently Browsing   0 members

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