Jump to content

Start radio after leaving V101


kevkas

Recommended Posts

I'm trying to make the RivenRadio mod start when you first leave Vault 101. I opened up the mod in the GECK and I see the Talking Activator, the audio files, and the Quest too.

 

I want to add a script and a pop-up message saying that the PipBoy picked up the frequency or something like that (just for flavor). However, I'm having a hard time with the script. I'm trying to use the same kind of script used in other radio mods, or even in Operation Anchorage. This is what I have so far:

 

scn RivenRadioScript

short RadioEnabled

float StartTimer

BEGIN GameMode

if ( RadioEnabled == 0 )
	if ( RadioEnclaveRef.GetDisabled == 0 )
		RivenRadioQuestRef.Disable
		ForceRadioStationUpdate
		Set RadioEnabled to 1
		set StartTimer to 10
	elseif ( GetStage MQ09 >= 60 )
		RivenRadioQuestRef.Enable
		ForceRadioStationUpdate
		ResetPipboyManager
		Set RadioEnabled to 1
		Set StartTimer to 10
	endif
elseif ( RadioEnabled == 1 )
	if ( StartTimer <= 0 )
		ShowMessage RivenRadioACTIVATEMessage
		RivenRadioQuestRef.Enable
		ForceRadioStationUpdate
		ResetPipboyManager
		Set RadioEnabled to 2
	else
		set StartTimer to ( StartTimer - GetSecondsPassed )
	endif
	
endif


END

 

The GECK keeps giving me the same error when I want to save it:

SCRIPT: Script 'RivenRadioScript', line 11:

Syntax error. Invalid reference 'RivenRadioQuestRef' (only object references and references variables are allowed in this context).

 

Does anyone know what am I doing wrong?

 

Hope you guys can help me.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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