Jump to content

result script not working for "companion fired yes"


McFearo

Recommended Posts

Here's the script in question:

 

ShowMessage DixieFiredMsg
ShowMessage DixiePerkRemovedMsg
Set DixieREF.Waiting to 0
Set DixieREF.HasBeenHired to 0
Set DixieREF.L38 to 0
Set DixieREF.IsFollowingDefault to 0
Set DixieREF.IsFollowingLong to 0
DixieREF.SetPlayerTeammate 0
Player.RemovePerk DixieCompanionPerk
DixieREF.evp
DixieREF.MoveToMarkerWithFade DixieHomeMarkerREF

Where my companion's reference ID is DixieREF

 

I've tried deleting lines from this script to see where it starts causing problems and the issue begins at the third line. Originally I had the ref ID as "00DixieREF" and learned from a different thread that starting a ref ID with numbers was a bad idea so I changed it but I'm still getting problems.

 

I've verified over and over that I have the ref ID in there correctly with no typos and this ref ID isn't causing problems in any of the other topic scripts. I'm following a video series by gerokeymaster on youtube.

 

I can't see any other issues with the script itself. If it's throwing errors in the GECK is it possible it will still work just fine in the actual game? This script shouldn't be a problem...

Link to comment
Share on other sites

Looks OK to me. Can you post Dixie's script?

 

You didn't accidentally forget to assign the script with all of those variables to Dixie in the NPC form did you?

This is the script I have for him

 

scn 00DixieCompanionScript


short HasBeenHired
short L38
short DoOnce


int CombatStyleRanged
int CombatStyleMelee
int IsFollowingDefault
int IsFollowingLong
int FollowerSwitchAggressive
int Waiting


Begin GameMode
  If (DoOnce != 1)
    Set HasBeenHired to 0
    Set L38 to 0
    Set CombatStyleRanged to 0
    Set CombatStyleMelee to 1
    Set IsFollowingDefault to 0
    Set IsFollowingLong to 0
    Set FollowerSwitchAggressive to 0
    Set Waiting to 0
    Set DoOnce to 1
  EndIf
End

Again this one just comes from the video and was provided by the modder who made the video.

Link to comment
Share on other sites

Get rid of the 00 at the beginning of the script name.

That might have been the problem, or the GECK was just being funky. I did as you said and closed the GECK and reopened, pasted the script in all over again, and it seems to be working now.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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