Jump to content

Scripting a companion


psoliver

Recommended Posts

Hello,

 

I'm struggling to find a tutorial or mod that explains how to copy an entire vanilla companion's scripts to another companion. I am in the process of making Marcus a companion so I have copied and renamed Lily's packages, messages that pop etc. But copying parts from the vNPCFollowersQuestSCRIPT to another script doesn't seem to work. I have the script I'm making set as quest. I even typed out the script and it still wouldn't compile. The tutorials I've found are either about companions with extra features and it's difficult to sift through and find what I want, or are not very clear on what I've got to do.

 

Anyone able to give me a step by step guide, or point me to a tutorial that copies exactly a vanilla companion?

 

I would be truly grateful

 

thanks in advance

Link to comment
Share on other sites

Im no script expert so i dont know how u would use regular scripts for a companion, but ive used both the RR and NCCS companion systems in the past and they work well.

 

If you want to try it, download the nccs companion tutorial and esp here: http://www.newvegasnexus.com/downloads/file.php?id=38059

 

It will teach you everything you need to know about making a companion

Link to comment
Share on other sites

This the script i used to make a radraoch companion and it does every thing the vanilla ones do, i did not use a script for the dialogue though... i don't think you realy need to unless you wan't to do something complicated.

 

scn NameScript

 

;Variables

short HasBeenHired

short CombatStyleRanged

short CombatStyleMelee

short IsFollowingDefault

short IsFollowingLong

short FollowerSwitchAggressive ; 0 = Passive (wait for player), 1 = Aggressive (attack when see enemy)

short Waiting

short Fired

short L38

short TeammateToggle

short DoOnce1

 

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

Link to comment
Share on other sites

You might know this already but you will also have to do a dialogue quest and obviously packages that use thouse variables just look at vnpcfollowers to see what there did and semi copy it to what you need.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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