Jump to content

What's wrong with the script ?


ChrissyMcp

Recommended Posts

I just don't understand this wont save, I've shortened the script that I'm only adding in the Player.moveto function and the reference id for the marker (PlayerEndgameExteriorMarker). The GECK's way of saving scripts annoys me, it doesn't tell me what's wrong with the script. http://forums.nexusmods.com/public/style_emoticons/dark/wallbash.gif I've tried Cipcsis' scripting utility and it doesn't show anything wrong with my script. Please, modders, help me out and have a look at the script.

 

Original working script.

____________________________________________________________________________________________________________________________________________________________

 

 

scn FadeToCreditsTimerScript

 

short DoOnce ;Script blocker

float Timer ;Timer used for animation control

short bFadeOutDone

 

BEGIN GameMode

 

if (bFadeOutDone == 1)

return

endif

 

if ( DoOnce== 0 )

PlaySound QSTEndTransitionStinger

PlayMusic EndTransitionStinger

set Timer to 7.8

set DoOnce to 1

endif

 

set Timer to ( Timer - GetSecondsPassed )

 

 

if ( Timer <= 0 )

set vHDBattleController.iBattleState to -1

stopquest vHDBattleController

stopquest VHDHouseBattle

stopquest VHDIndependentBattle

stopquest VHDLegionBattle

CraigBooneRef.Enable

ArcadeRef.Enable

RaulRef.Enable

VeronicaRef.Enable

LilyRef.Enable

RoseOfSharonCassidyRef.Enable

RexRef.Enable

VHDSecuritronEscort01Ref.Disable

EnablePlayerControls

enablefasttravel 1 1 1

set bFadeoutDone to 1

if VHDBattleController.iBattleState > 0

endif

 

endif

 

END

 

 

____________________________________________________________________________________________________________________________________________________________

 

Not working script

 

 

scn FadeToCreditsTimerScript

 

short DoOnce ;Script blocker

float Timer ;Timer used for animation control

short bFadeOutDone

 

BEGIN GameMode

 

if (bFadeOutDone == 1)

return

endif

 

if ( DoOnce== 0 )

PlaySound QSTEndTransitionStinger

PlayMusic EndTransitionStinger

set Timer to 7.8

set DoOnce to 1

endif

 

set Timer to ( Timer - GetSecondsPassed )

 

 

if ( Timer <= 0 )

set vHDBattleController.iBattleState to -1

stopquest vHDBattleController

stopquest VHDHouseBattle

stopquest VHDIndependentBattle

stopquest VHDLegionBattle

CraigBooneRef.Enable

ArcadeRef.Enable

RaulRef.Enable

VeronicaRef.Enable

LilyRef.Enable

RoseOfSharonCassidyRef.Enable

RexRef.Enable

VHDSecuritronEscort01Ref.Disable

EnablePlayerControls

enablefasttravel 1 1 1

set bFadeoutDone to 1

if VHDBattleController.iBattleState > 0

Player.moveto REF.PlayerEndgameExteriorMarker

endif

 

endif

 

END

____________________________________________________________________________________________________________________________________________________________

 

 

 

Any ideas, I think it's going to be something obvious that I've overlooked. http://forums.nexusmods.com/public/style_emoticons/dark/dry.gif

Link to comment
Share on other sites

This is invalid:

Player.moveto REF.PlayerEndgameExteriorMarker

 

If PlayerEndgameExteriorMarker is the ReFID of a persistent reference that you placed in the editor, then just use this:

 

Player.moveto PlayerEndgameExteriorMarker

 

If you want to know what's wrong with your scripts, use this: http://newvegas.nexusmods.com/mods/41642

Link to comment
Share on other sites

Wow............. Turns out I done the script right the first time I typed it in. I hadn't checked the Persistent Reference box http://forums.nexusmods.com/public/style_emoticons/dark/facepalm.gif. Thanks rickerhk, I downloaded the GECK 1 4 Power Up file. It helped. I knew the problem was going to be something obvious http://forums.nexusmods.com/public/style_emoticons/dark/biggrin.gif

 

Thanks again,

 

Chrissy_M_

Link to comment
Share on other sites

  • Recently Browsing   0 members

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