Jump to content

How to script a (player created) DLC creature companion


Shayu

Recommended Posts

I've been trying all day now. I've mostly used data from rex excluding the model and animation. Sometimes i can get him to appear in game but i can't figure out how to script hiring and firing or much less the companion wheel. I'm trying to make a follower version of the hellhound from the monster mod. I'm not sure what to do now, I don't know how to assign him the followers quest as i have been told to do, i can't create any hiring/firing dialogue, or figure out how to integrate him into the companion wheel. I've been trying to analyze other mod files but im still confused, can anyone clear this mess up for me? how can i make this creature my follower? This again is a Modded DLC creature so I can't just use NCCS because i have to use another master file.
Link to comment
Share on other sites

I've been trying all day now. I've mostly used data from rex excluding the model and animation. Sometimes i can get him to appear in game but i can't figure out how to script hiring and firing or much less the companion wheel. I'm trying to make a follower version of the hellhound from the monster mod. I'm not sure what to do now, I don't know how to assign him the followers quest as i have been told to do, i can't create any hiring/firing dialogue, or figure out how to integrate him into the companion wheel. I've been trying to analyze other mod files but im still confused, can anyone clear this mess up for me? how can i make this creature my follower? This again is a Modded DLC creature so I can't just use NCCS because i have to use another master file.

Yes I appologizr i tried to delete the last one but ended up not knowing how to delete it >.< . I just want to know how i can script this follower.

Link to comment
Share on other sites

Here's how to create a new follower. This assumes you have placed your follower in the world somewhere and given it a refID (i.e. MyCritterRef).

 

1)

Copy a script from an existing companion.

Paste it into a new script for your new companion. Choose the new script from the dropdown on their NPC window.

This is really just for the variables, you can keep or remove the rest as you like.

 

2)

Create a new quest for your follower.

Go to the VNPCFollowers Quest. Open up the quest script and take the block of variables for one NPC.

Paste it into a new script, change the variable name to your follower name (i.e. change bVeronicaHired to bMyCreatureHired).

Make it a quest script, and save it. Choose it from the script dropdown on the quest you just made.

This is to avoid conflicts with other mods that might touch the vanilla vnpcfollowers quest.

 

3)

Go back to the VNPCFollowers quest. Go to topics tab. On each topic, make a copy of the existing info for a given vanilla follower. Change the conditions to match

a) the ID of your creature (i.e. change GetIsID Veronica to GetIsID MyCritter)

b) the conditions for the variables you created in steps 1 and 2 above (i.e. change GetScriptVariable Veronicaref.waiting to GetScriptVariable MyCritterRev.waiting)

repeat for all conditions

c)change result scripts to match your critter instead of vanilla follower (i.e. change "set veronicaref.waiting to 1" to "set mycritterref.waiting to 1")

Change all the dialog text to your preference.

 

Repeat for all relevant topics.

Link to comment
Share on other sites

Here's how to create a new follower. This assumes you have placed your follower in the world somewhere and given it a refID (i.e. MyCritterRef).

 

1)

Copy a script from an existing companion.

Paste it into a new script for your new companion. Choose the new script from the dropdown on their NPC window.

This is really just for the variables, you can keep or remove the rest as you like.

 

2)

Create a new quest for your follower.

Go to the VNPCFollowers Quest. Open up the quest script and take the block of variables for one NPC.

Paste it into a new script, change the variable name to your follower name (i.e. change bVeronicaHired to bMyCreatureHired).

Make it a quest script, and save it. Choose it from the script dropdown on the quest you just made.

This is to avoid conflicts with other mods that might touch the vanilla vnpcfollowers quest.

 

3)

Go back to the VNPCFollowers quest. Go to topics tab. On each topic, make a copy of the existing info for a given vanilla follower. Change the conditions to match

a) the ID of your creature (i.e. change GetIsID Veronica to GetIsID MyCritter)

b) the conditions for the variables you created in steps 1 and 2 above (i.e. change GetScriptVariable Veronicaref.waiting to GetScriptVariable MyCritterRev.waiting)

repeat for all conditions

c)change result scripts to match your critter instead of vanilla follower (i.e. change "set veronicaref.waiting to 1" to "set mycritterref.waiting to 1")

Change all the dialog text to your preference.

 

Repeat for all relevant topics.

I'm sorry please bare with me im quite new to modding. What do you mean by block variables? and how do I make a "New Script" ? I appriciete you actually telling me what i asked in the first place. Now if you could just clarify a little i should be all set ^^

Link to comment
Share on other sites

Thanks for the info. Is there a reason to do this, instead of using NCCS?

If you want to make a mod that includes a follower but don't want to require your users use NCCS. Or just to be l33t.

 

Thanks for the info. Is there a reason to do this, instead of using NCCS?

Yeah I'm using a sepret master file for the mesh

That's not really a reason... your plugin can have as many masters as you need. Or more if you're like that.

 

I'm sorry please bare with me im quite new to modding. What do you mean by block variables? and how do I make a "New Script" ? I appriciete you actually telling me what i asked in the first place. Now if you could just clarify a little i should be all set ^^

 

When you look at the existing script you will see what I mean.

To make a new script, go to gameplay->edit scripts-> scripts-> new

Then give it a new name by making the first line

scn mynewscriptname

 

Save.

Link to comment
Share on other sites

Thanks for the info. Is there a reason to do this, instead of using NCCS?

If you want to make a mod that includes a follower but don't want to require your users use NCCS. Or just to be l33t.

 

Thanks for the info. Is there a reason to do this, instead of using NCCS?

Yeah I'm using a sepret master file for the mesh

That's not really a reason... your plugin can have as many masters as you need. Or more if you're like that.

 

I'm sorry please bare with me im quite new to modding. What do you mean by block variables? and how do I make a "New Script" ? I appriciete you actually telling me what i asked in the first place. Now if you could just clarify a little i should be all set ^^

 

When you look at the existing script you will see what I mean.

To make a new script, go to gameplay->edit scripts-> scripts-> new

Then give it a new name by making the first line

scn mynewscriptname

 

Save.

Whenever i try to load a plugin with a different master it automatically loads it's original master without me telling it to and then it reminds me i can't load multiple masters at once

Link to comment
Share on other sites

Furthermore which part of the NPCFollowers quest script should i take? this?

; Rex variables

int RexHired ; 0 = Not in party, 1 = In party

int RexAvailable ; 0 = Rex cannot be hired, 1 = Rex can be hired

int RexFired ; 0 = Rex has not been fired, 1 = Rex was fired

short bRexL38;

short bRexDead

Link to comment
Share on other sites

  • Recently Browsing   0 members

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