Jump to content

Need help from a scripter


Yourking777

Recommended Posts

I am not too sure how well this will look in the forum but it is a follower script for ttw that was converted from fo3, it is not my work but after the follower has been fired they teleport to the player whenever you leave or enter a new world space. I am looking at it but I am not very good and any help would be appreciated, also if anyone could add a companion wheel to this that would be great.















scn AmataSCRIPT


short waiting
short CombatStyleRanged
short CombatStyleMelee
short IsFollowingDefault
short IsFollowingShort
short IsFollowingLong
short FollowerSwitchAggressive


short TeammateSwapped


begin ONACTIVATE
if isactionref player && AmataREF.GetPlayerTeammate == 1
set TeammateSwapped to 1
SetPlayerTeammate 0
ACTIVATE
else
ACTIVATE
endif
END


begin GAMEMODE
if teammateswapped == 1
set TeammateSwapped to 0
SetPlayerTeammate 1
endif
END


begin OnDeath
if getStage MS16 > 10 && getstage MS16 < 100
set MS16.AmataKilled to 1
if getDeadCount Overseer == 0
setStage MS16 160
elseif getDeadCount Vault101Security01 == 0
setStage MS16 162
elseif getDeadCount AllenMack == 0
setStage MS16 164
endif
endif


;If player was reporting to her about stopping the Overseer and kills her, fail MS16
if getStage MS16 == 140
setStage MS16 200
endif
end


BEGIN OnCombatEND


if ( GetPlayerTeammate == 1 )
resethealth
restoreav perceptioncondition 100
restoreav endurancecondition 100
restoreav leftattackcondition 100
restoreav leftmobilitycondition 100
restoreav rightattackcondition 100
restoreav rightmobilitycondition 100
endif


END


BEGIN OnDeath


if ( FollowerAmata.AmataHired == 1 )
set FollowerAmata.AmataHired to 0
ShowMessage FollowerDeadAmata
endif


END

Edited by Yourking777
Link to comment
Share on other sites

You need to unset her from being player teammate when you fire her.

AmataRef.SetPlayerteammate 0

Then everything should be fine. (event with special TTW scripts which hide her companion menu)

Thanks for the help, I will take another look at it. Where would I actually put that line though?

Also I like your profile picture

Link to comment
Share on other sites

It would be better to just give her full companion wheel support.

 

The author hasn't responded to me for permission so this mod and a few others will remain unconverted until such time (hopefully with F4 arrival) that they become active on the forums again and read their messages.

Link to comment
Share on other sites

It would be better to just give her full companion wheel support.

 

The author hasn't responded to me for permission so this mod and a few others will remain unconverted until such time (hopefully with F4 arrival) that they become active on the forums again and read their messages.

Yeah I hate it when that happens, I was just gonna make it for myself and then ask for permission to post it, and if that failed which it sounds like it would have I was gonna post a guide on how to fix it or something. I am not trying to steal anyones work here, just trying to enjoy my game.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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