Jump to content

Script help


ugsquish

Recommended Posts

I am attempting to make a trigger script that will stop the player and start a quest on entrance of an area. But the script will not save which I come to find out that means there is an error in it. can anyone help me to identify the error so I can finish my mod please?

 

scriptname <scriptname>
short StartUp
short EndStartUp
float TimerA
float TimerZ

short bTimerZDone

BEGIN OnTrigger player

if (StartUp==0)
	SetStage <quest> 0
	DisablePlayer Controls 1 1 1 1 1 1 1
	Set TimerA to1
	Set TimerA to .2
	Set Startup to1
endif

END

BEGIN GameMode

if (StartUP==1)
	if (TimerZ>0) && (WbTimerDone==0)
		Set TimerZ to (TimerZ - GetSecondsPassed)
	else
		set bTimerDone to 1
	endif

	if (TimerA>0)
		Set TimerA to (TimerA - GetSecondsPassed)
	else
		PipboyRadioOff
                       StartQuest <questname>
		Set RFCWTimerB to 2
		Set RFCWStartUp to 2
	endif
endif
END

Link to comment
Share on other sites

oh and I used this script first:

ScriptName <name>

begin onTriggerEnter	player
if getStageDone <quest> 10 == 0
	if IsActionRef player == 1
		StartQuest <quest>
	endif	
endif
End

 

But the player could enter the area and just keep moving till they activated something. eg talk to npc, open inventory (which crashes the game), open pause menu...

I just want it to trigger the moment they enter. for now.

I do actually want to do a "knock the player out" thing. I do not have any dlc's so i can't just snag dead moneys script. any suggestions there ether?

Edited by ugsquish
Link to comment
Share on other sites

 

Syntax error. You need a space between "to" and "1".

 

Ah, that got it. thanks. so easy to look over lol

I've found usually that when GECK refuses to save a script, it's either a syntax error or a typo in a variable.

 

Install GECK PowerUp:

 

http://newvegas.nexusmods.com/downloads/file.php?id=41642

 

It'll make GECK actually give you useful error messages rather than simply refusing to save for an unspecified reason. It's a lifesaver.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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