Jump to content

Scripting for mercenary


lillbobby

Recommended Posts

I am working on a mod that I believe would be pretty sweet. Ive done some of the work so far but am stumped on how to make a vendor sell mercenaries. When it comes to scripting Im really new at it so any help would be totally apreciated.
Link to comment
Share on other sites

You will have to have a quest with some custom dialog options. A companion cannot be bought and sold like a sword or apple. It will not be done in the merchant minigame. You will need to make a result script in your dialogs that changes a quest variable, setstage, or global variable to trigger a custom AI package on the mercenary.

 

Your task is quite doable, but it has many interacting parts and all of them must be done right.

 

I recommend that you download my mod The Cave of WishCraft and see how the mercenary in that mod works. He himself has the dialog rather than a store owner, but some of the principles are the same.

 

Here is a link to a tutorial you might find useful:

Simple Companion Tutorial

Link to comment
Share on other sites

You will have to have a quest with some custom dialog options. A companion cannot be bought and sold like a sword or apple. It will not be done in the merchant minigame. You will need to make a result script in your dialogs that changes a quest variable, setstage, or global variable to trigger a custom AI package on the mercenary.

 

Your task is quite doable, but it has many interacting parts and all of them must be done right.

 

I recommend that you download my mod The Cave of WishCraft and see how the mercenary in that mod works. He himself has the dialog rather than a store owner, but some of the principles are the same.

 

Here is a link to a tutorial you might find useful:

Simple Companion Tutorial

 

 

 

Thank you for the help, I will download the mods and check it all out. I am hoping to make each city its own faction and have it only after you beat the main quest line. I have a great story line, A working base for a fortress that I have made and many ideas to throw in the mix. All I need to do is figure out this scripting thing lol.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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