Jump to content

Help with GECK scripting


Sh0uter

Recommended Posts

Hey, so Iâm trying to write a script where when you have 10 strength your body transforms into a more muscular form. I tried following the script from the Ghoulification mod by Highsight but the script wonât save. Any help is appreciated.

 

The script btw:

Scn HerculeanScript

 

Begin GameMode

 

If Player.GetPermanentActorValue Strength == 10

Player.matchrace HerculesRef

 

Endif

End

Link to comment
Share on other sites

1. Look in \Fallout New Vegas\EditorWarnings.log for the script errors.

 

OR, much better,

 

2. Install the Geck Extender (if you haven't already), and change file \Fallout New Vegas\Data\nvse\Plugins\geckextender.ini and change this:

[Script]
.....
bScriptCompileWarningPopup=1
....

For starters tho, I would think you would only want to do that MatchRace command once, not every time the GameMode block runs.

Edited by GamerRick
Link to comment
Share on other sites

  • 5 weeks later...

No.

Begin GameMode
//(anything here runs every time)
 
If Player.GetPermanentActorValue Strength == 10
//(if the player's strength is 10 anything here also runs every time, if the player's strength is not 10 this is skipped)
endif
 
//(anything here runs every time)
end

Oblivion worked the same way.

 

If you want it to dynamically update, you can do something like this:

Scn MuscularScript
 
int ThisCheck
int LastCheck
Begin GameMode
 
Set ThisCheck to Player.GetPermanentActorValue Strength
 
If ThisCheck!=LastCheck
 
If ThisCheck == 10
Player.matchrace MuscularRaceGuyRef
Else
Player.matchrace WimpyRaceGuyRef
Endif
 
Endif   ; end ThisCheck != LastCheck
 
Set LastCheck to ThisCheck
End
Edited by madmongo
Link to comment
Share on other sites

  • Recently Browsing   0 members

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