Jump to content

Need help modifying or disabling a script


Gatortribe

Recommended Posts

A little preface: I've never made a mod in a previous Fallout/ES game, the closest thing to that was changing the damage value on a mod.

 

What I do know is there's a script that I'd like gone, or modified. I don't know if it's possible in game but I do know it probably is via cheat engine, like the "Unlimited Building" table does. Could anyone lead me in the right direction, or is this a lost cause?

 

Script, before doing Blind Betrayal (potential spoilers!):

 

 

 

http://i.imgur.com/h2D2VGE.png

 

 

Script, after doing Blind Betrayal:

 

 

http://i.imgur.com/MwZ08KB.png

 

 

 

As you can see, there's one thing causing me from having what I want: A play through where I can have my damn Brotherhood companion alongside myself.

 

Other things I've noticed:

  • There are 3 AVIF files for the mission (known as BoS302): COMQC_BoS302DanseIsSynthAV, COMQC_BoS302DanseDiedAV, and COMQC_BoS302DanseLivedAV

Not sure why there's 3, as far as I know he's either a synth or he dies.

  • BoS302DanseFaction is a thing, but he's not in it according to his file (which seems to get overwritten by the script, as it lists him as an ally to the brotherhood in the ESM)
  • Removing him and the player from "BoSDanseBoSEnemyFaction" does nothing
  • A few Form IDs exist that seem related: BoS302DanseExecuted [GLOB:0017B40E], BoS302DanseExiled [GLOB:00141A14], BoS302DanseSolved [GLOB:001AC335], BoS302Friend [GLOB:0014D135], BoS302NotFriend [GLOB:0014D136]
    • After Betrayal, both Friend and NotFriend are set to 1 with and without Danse following. Exiled is set to 1 no matter what.
  • The script in question activates DanseBosHostilityMessageOn [MESG:0023E5FB]
  • Danse is the only companion not listed as a companion in the NPC list: BoSPaladinDanse "<Error: No strings file for lstring ID 000145DE>" [NPC_:02027683]
    • His factions list him being in all the necessary BoS factions and none of the hostile ones
    • Other Companions are known as "CompanionCait" for example
    • His actual ref ID in game is 0005DE4D

 

 

Link to comment
Share on other sites

Okay, well the script is DansePostQuestBoSHostilityScript 100%, since the purpose of it is "handles making player an enemy of BoS when Danse is current companion and near the player" I'm not sure if there's a way to disable it. I'm pretty sure by looking at it (I have no prior experience with scripts so bear with me) the script checks CurrentCompanionFaction and then temporarily changes you relationship with the Brotherhood to enemies. Here's the script, if anyone cares/wants to help:

 

 

 

Header info:
Version: 3.9
Source: g:\_F4\Art\Raw\Scripts\DansePostQuestBoSHostilityScript.psc
Game id: 2
User: builds
Comp: RKVBGSBUILD06
User flags:
mandatory=5
collapsedonref=3
default=2
hidden=0
conditional=1
collapsedonbase=4
Class:
Name: DansePostQuestBoSHostilityScript
Parent: Actor
Doc: handles making player an enemy of BoS when Danse is current companion and near the player
Is const: 0
User flags: 0x0
Variables:
const faction ::CurrentCompanionFaction_var;
const message ::DanseBosHostilityMessageOff_var;
Bool ProcessLocked;
const message ::DanseBosHostilityMessageOn_var;
Actor PlayerRef;
const faction ::BrotherhoodofSteelFaction_var;
const Float timerGameTimeInterval = 12;
Bool IsBoSHostile;
Properties:
faction BrotherhoodofSteelFaction;
faction CurrentCompanionFaction;
message DanseBosHostilityMessageOff;
message DanseBosHostilityMessageOn;
State: default
void ::remote_FollowersScript_CompanionChange(followersscript akSender, Var[] akArgs);
void Process(Bool showMessage);
void OnLoad();
void MakeBoSHostile();
void OnTimerGameTime(Int aiTimerID);
dumped

Link to comment
Share on other sites

Hey finally found a "fix" for this. You can download here: http://www.nexusmods.com/fallout4/mods/2043/?

 

I used Skyrim's creation kit to compile a blank pex file to overwrite the script: DansePostQuestBoSHostilityScript. Since the script is only used to make you hostile to BoS when Danse is your companion it shouldn't effect anything else.

Awesome, thank you so much! It should be noted in the description that you have to dismiss Danse before using this, otherwise you will be permanently hostile with the BoS (and still have no penalty for killing them).

Link to comment
Share on other sites

  • 3 weeks later...
  • Recently Browsing   0 members

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