Creating a companion

Users who are viewing this thread

ZeXorG

Sergeant
Well, I've tried to create a companion, but I'm absolutely new to moding. I've surfed the forum, trying to collect information piece by piece, but that's really a big problem for me as I'm not able to spend a lot of time near the monitor.
Could anyone, please, write an instruction for creating a companion, step by step. I would be thankfull like... I don't know how =) Please... If anyone has some free time...
 
Lord Leoric of Wercheg said:
Get the troop editor. Make or edit a troop. Give him the "Hero" flag. Voila! You've got yourself a companion!

That won't make them appear in Taverns and be available for hire, also they won't have any chat options.

Do the first part, get the troop editor, and edit a companion already in the game.

Edit : Oh, the companion you edit will keep the same Dialog, but you can change their appearence and starting statistics as well as items. Also keep in mind for these changes to take affect, you will need to start a new game.
 
Could you please explain me how to change their appearance?

Edit: Wrong question. Where to put the appearance code?
 
When you start up the game, put it into Edit Mode from the first splash screen thingammyjig.  Then, when you go to the face-creation screen in-game there will be a space at the top left full of numbers.  As you alter the face in the normal way, the numbers will change.  Once you've got the face the way you want it, press Copy underneath the list of numbers, then minmize M&B and paste the numbers into a new text file.

These numbers can then be added to the Troop Editor (I think... I've never done it that way) and will give your chosen character the face you designed.

The only other way to do it is through the Python Modules.
 
Flanged said:
These numbers can then be added to the Troop Editor (I think... I've never done it that way) and will give your chosen character the face you designed.

The only other way to do it is through the Python Modules.

Yes, sorry, the main problem is where to put this code. I have installed Python module. Maybe it's easier to explain how to do this through it?
 
Flanged said:
These numbers can then be added to the Troop Editor (I think... I've never done it that way) and will give your chosen character the face you designed.

That's half-true, Hokie meant to add it in, but hasn't finished it yet. As for the Python system, sorry I've got no idear.
 
I've actually done this :smile: you need to use the module system (python)

In module_troops copy one of the existing companions and dump it wherever (i put mine directly underneath the originals).  This is where you have to paste the "face" code

eg:

["npc16","Klethi","Klethi",tf_female|tf_hero|tf_unmoveable_in_party_window, 0, reserved,  fac_commoners,[itm_peasant_dress,itm_nomad_boots, itm_dagger, itm_throwing_knives],
  str_7|agi_11|int_8|cha_7|level(2),wp(80),knows_tracker_npc|
  knows_power_throw_3|knows_athletics_2|knows_power_strike_1,
  0x00000000000c100739ce9c805d2f381300000000001cc7ad0000000000000000],

["npc17","Dana","Dana",tf_female|tf_hero|tf_unmoveable_in_party_window, 0, reserved,  fac_commoners,[itm_ragged_outfit,itm_wrapping_boots, itm_hunting_bow, itm_arrows, itm_quarter_staff],
  str_8|agi_9|int_10|cha_6|level(2),wp(80),knows_tracker_npc|
  knows_tracking_2|knows_athletics_2|knows_spotting_1|knows_pathfinding_1|knows_power_draw_2,
  0x00000001bf003002011b65b64361b6db00000000001db6fb0000000000000000],

the red is my custom companion, the bold is face code.

then you need to edit both "module_strings" and "module_scripts"... look for "npc1" and just copy and insert your own dialogues...  (make sure you get all instances of npc1 or whatever number you copied)

Hit the module build and bob's your uncle :smile: any text edits you've done will have to be redone though.  I made a backup of troops.txt, then edited the entries for the new companions once it was built (to give them the stats and items I wanted)
 
there are many help threads on getting into moding and the module system.  Check the links in my sig.
 
Back
Top Bottom