Editing companion's through scripts.txt

Users who are viewing this thread

Toccs

Recruit
Introduction

This is a basic guide to help you change certain things about companions through scripts.txt, this has only been tested with Warband related mods.
I'm not a proper modder and have searched the forum I could find no such information, so decided to hand over my findings so that others more adept then I may find it useful.
If you find my information is incorrect please let me know.

Go to steamapps\common\MountBlade Warband\Modules\(the Module you want to edit)

Backup scripts.txt

Open up scripts.txt and navigate to initialize_npcs -1, you will see the following.

initialize_npcs -1
726 500 3 360287970189641059 52 1 500 3 360287970189641060 52 7 500 3 360287970189641061 52 7 500 3 360287970189641062 52 1 500 3 360287970189641063 52 7 500 3 360287970189641064 52 6 500 3 360287970189641065 52 4 500 3 360287970189641066 52 1 500 3 360287970189641067 52 4 500 3 360287970189641068 52 6 500 3 360287970189641069 52 2 500 3 360287970189641070 52 2 500 3 360287970189641071 52 2 500 3 360287970189641072 52 7 500 3 360287970189641073 52 5 500 3 360287970189641074 52 5 500 3 360287970189641075 52 1 500 3 360287970189641076 52 4 500 3 360287970189641077 52 4 500 3 360287970189641078 52 7 500 3 360287970189641079 52 4 500 3 360287970189641080 52 4 500 3 360287970189641081 52 6 500 3 360287970189641082 52 6 500 3 360287970189641083 52 2 500 3 360287970189641084 52 2 500 3 360287970189641085 52 6 500 3 360287970189641086 52 6 500 3 360287970189641087 52 1 500 3 360287970189641088 52 1 500 3 360287970189641089 52 1 500 3 360287970189641090 52 1 500 3 360287970189641091 52 6 500 3 360287970189641092 52 6 500 3 360287970189641093 52 6 500 3 360287970189641094 52 1 500 3 360287970189641095 52 1 500 3 360287970189641096 52 6 500 3 360287970189641097 52 6 500 3 360287970189641098 52 6 500 3 360287970189641099 52 1 500 3 360287970189641100 52 1 500 3 360287970189641101 52 1 500 3 360287970189641102 52 4 500 3 360287970189641103 52 5 500 3 360287970189641104 52 5 500 3 360287970189641105 52 6 500 3 360287970189641106 52 6 500 3 360287970189641107 52 6 500 3 360287970189641108 52 6 500 3 360287970189641109 52 6 500 3 360287970189641110 52 6 500 3 360287970189641111 52 2 500 3 360287970189641112 52 6 500 3 360287970189641113 52 6 500 3 360287970189641114 52 6 500 3 360287970189641115 52 2 500 3 360287970189641116 52 6 500 3 360287970189641117 52 6 500 3 360287970189641118 52 2 500 3 360287970189641119 52 6 500 3 360287970189641120 52 6 500 3 360287970189641179 52 1 500 3 360287970189641180 52 5 500 3 360287970189641139 52 6 500 3 360287970189641140 52 1 500 3 360287970189641141 52 1 500 3 360287970189641142 52 5 500 3 360287970189641143 52 6 500 3 360287970189641144 52 6 500 3 360287970189641145 52 6 500 3 360287970189641146 52 6 500 3 360287970189641147 52 6 500 3 360287970189641148 52 6 500 3 360287970189641149 52 6 500 3 360287970189641150 52 1 500 3 360287970189641151 52 6 500 3 360287970189641152 52 6 500 3 360287970189641153 52 6 500 3 360287970189641154 52 6 500 3 360287970189641155 52 7 500 3 360287970189641156 52 6 500 3 360287970189641157 52 6 500 3 360287970189641158 52 7 500 3 360287970189641160 52 1 500 3 360287970189641161 52 1 500 3 360287970189641162 52 5 500 3 360287970189641163 52 5 500 3 360287970189641164 52 6 500 3 360287970189641165 52 6 500 3 360287970189641166 52 2 500 3 360287970189641167 52 6 500 3 360287970189641168 52 6 500 3 360287970189641169 52 6 500 3 360287970189641170 52 6 500 3 360287970189641171 52 3 500 3 360287970189641121 52 6 500 3 360287970189641122 52 4 500 3 360287970189641123 52 1 500 3 360287970189641124 52 7 500 3 360287970189641125 52 7 500 3 360287970189641126 52 7 500 3 360287970189641127 52 7 500 3 360287970189641128 52 7 500 3 360287970189641129 52 7 500 3 360287970189641130 52 7 500 3 360287970189641131 52 2 500 3 360287970189641132 52 2 500 3 360287970189641133 52 6 500 3 360287970189641134 52 7 500 3 360287970189641135 52 2 500 3 360287970189641136 52 2 500 3 360287970189641137 52 6 500 3 360287970189641138 52 6 500 3 360287970189641172 52 6 500 3 360287970189641173 52 4 500 3 360287970189641174 52 6 500 3 360287970189641175 52 4 500 3 360287970189641176 52 4 500 3 360287970189641177 52 4 500 3 360287970189641178 52 4 500 3 360287970189641181 52 2 500 3 360287970189641182 52 1 500 3 360287970189641183 52 1 500 3 360287970189641184 52 6 500 3 360287970189641185 52 6 500 3 360287970189641186 52 6 500 3 360287970189641187 52 1 500 3 360287970189641188 52 1 500 3 360287970189641189 52 6 500 3 360287970189641190 52 2 500 3 360287970189641191 52 6 500 3 360287970189641192 52 6 500 3 360287970189641193 52 6 500 3 360287970189641194 52 2 500 3 360287970189641195 52 6 500 3 360287970189641196 52 2 500 3 360287970189641200 52 1 500 3 360287970189641201 52 1 500 3 360287970189641202 52 7 500 3 360287970189641203 52 6 500 3 360287970189641204 52 2 500 3 360287970189641205 52 2 500 3 360287970189641206 52 2 500 3 360287970189641208 52 2 500 3 360287970189641207 52 6 500 3 360287970189641209 52 6 500 3 360287970189641210 52 3 500 3 360287970189641211 52 6 500 3 360287970189641212 52 6 500 3 360287970189641213 52 6 500 3 360287970189641214 52 6 500 3 360287970189641215 52 6 500 3 360287970189641216 52 1 500 3 360287970189641217 52 6 500 3 360287970189641218 52 6 500 3 360287970189641219 52 7 500 3 360287970189641220 52 7 500 3 360287970189641221 52 6 500 3 360287970189641222 52 6 500 3 360287970189641223 52 1 500 3 360287970189641224 52 6 500 3 360287970189641225 52 6 500 3 360287970189641226 52 6 500 3 360287970189641227 52 2 500 3 360287970189641228 52 2 500 3 360287970189641229 52 6 500 3 360287970189641230 52 6 500 3 360287970189641231 52 6 500 3 360287970189641232 52 5 500 3 360287970189641233 52 2 500 3 360287970189641234 52 2 500 3 360287970189641235 52 1 500 3 360287970189641236 52 5 500 3 360287970189641237 52 5 500 3 360287970189641238 52 5 500 3 360287970189641239 52 6 500 3 360287970189641240 52 6 500 3 360287970189641241 52 6 500 3 360287970189641242 52 6 500 3 360287970189641243 52 7 500 3 360287970189641244 52 4 500 3 360287970189641245 52 6 500 3 360287970189641246 52 1 500 3 360287970189641247 52 6 500 3 360287970189641248 52 6 500 3 360287970189641249 52 1 500 3 360287970189641250 52 7 500 3 360287970189641251 52 6 500 3 360287970189641252 52 4 500 3 360287970189641253 52 6 500 3 360287970189641254 52 6 500 3 360287970189641255 52 6 500 3 360287970189641256 52 7 500 3 360287970189641257 52 6 500 3 360287970189641258 52 2 500 3 360287970189641259 52 6 500 3 360287970189641260 52 2 500 3 360287970189641261 52 7 500 3 360287970189641263 52 6 500 3 360287970189641264 52 7 500 3 360287970189641265 52 6 500 3 360287970189641266 52 1 500 3 360287970189641267 52 6 500 3 360287970189641268 52 6 500 3 360287970189641269 52 7 500 3 360287970189641270 52 6 500 3 360287970189641271 52 1 500 3 360287970189641272 52 6 500 3 360287970189641273 52 6 500 3 360287970189641274 52 6 500 3 360287970189641275 52 6 500 3 360287970189641276 52 2 500 3 360287970189641277 52 2 500 3 360287970189641278 52 6 500 3 360287970189641279 52 6 500 3 360287970189641280 52 1 500 3 360287970189641281 52 1 500 3 360287970189641282 52 5 500 3 360287970189641283 52 5 500 3 360287970189641284 52 5 500 3 360287970189641285 52 6 500 3 360287970189641286 52 6 500 3 360287970189641287 52 6 500 3 360287970189641288 52 6 500 3 360287970189641289 52 1 500 3 360287970189641290 52 1 500 3 360287970189641291 52 5 500 3 360287970189641292 52 3 500 3 360287970189641293 52 3 500 3 360287970189641294 52 3 500 3 360287970189641295 52 3 500 3 360287970189641296 52 4 500 3 360287970189641297 52 4 500 3 360287970189641298 52 6 500 3 360287970189641299 52 6 500 3 360287970189641300 52 5 500 3 360287970189641301 52 1 500 3 360287970189641302 52 1 500 3 360287970189641303 52 6 500 3 360287970189641304 52 6 500 3 360287970189641305 52 2 500 3 360287970189641306 52 6 500 3 360287970189641307 52 2 500 3 360287970189641308 52 1 500 3 360287970189641309 52 6 500 3 360287970189641310 52 6 500 3 360287970189641311 52 5 500 3 360287970189641312 52 5 500 3 360287970189641313 52 5 500 3 360287970189641314 52 5 500 3 360287970189641315 52 1 500 3 360287970189641316 52 6 500 3 360287970189641317 52 5 500 3 360287970189641318 52 1 500 3 360287970189641319 52 6 500 3 360287970189641320 52 6 500 3 360287970189641321 52 4 500 3 360287970189641322 52 6 500 3 360287970189641323 52 6 500 3 360287970189641324 52 4 500 3 360287970189641325 52 4 500 3 360287970189641326 52 4 500 3 360287970189641327 52 7 500 3 360287970189641328 52 6 500 3 360287970189641329 52 6 500 3 360287970189641330 52 6 500 3 360287970189641331 52 1 500 3 360287970189641332 52 1 500 3 360287970189641333 52 1 500 3 360287970189641334 52 1 500 3 360287970189641335 52 6 500 3 360287970189641336 52 1 500 3 360287970189641337 52 7 500 3 360287970189641338 52 6 500 3 360287970189641339 52 5 500 3 360287970189641340 52 5 500 3 360287970189641341 52 5 500 3 360287970189641342 52 1 500 3 360287970189641343 52 1 500 3 360287970189641344 52 1 500 3 360287970189641345 52 6 500 3 360287970189641346 52 1 500 3 360287970189641347 52 1 500 3 360287970189641348 52 1 500 3 360287970189641349 52 1 500 3 360287970189641350 52 1 500 3 360287970189641351 52 6 500 3 360287970189641352 52 1 500 3 360287970189641353 52 7 500 3 360287970189641354 52 6 500 3 360287970189641355 52 6 500 3 360287970189641356 52 6 500 3 360287970189641357 52 1 500 3 360287970189641358 52 1 500 3 360287970189641359 52 4 500 3 360287970189641360 52 5 500 3 360287970189641361 52 6 500 3 360287970189641362 52 5 500 3 360287970189641030 62 1 500 3 360287970189641030 63 4 500 3 360287970189641030 64 1 500 3 360287970189641030 66 -1 500 3 360287970189641030 71 999999999 500 3 360287970189641030 73 999999999 500 3 360287970189641030 75 360287970189641036 500 3 360287970189641030 60 648518346341351511 500 3 360287970189641030 141 0 500 3 360287970189641030 143 2 500 3 360287970189641030 144 360287970189640438 500 3 360287970189641030 67 648518346341351450 500 3 360287970189641030 14 0 500 3 360287970189641030 52 1 500 3 360287970189641031 62 5 500 3 360287970189641031 63 2 500 3 360287970189641031 64 4 500 3 360287970189641031 66 1 500 3 360287970189641031 71 999999999 500 3 360287970189641031 73 999999999 500 3 360287970189641031 75 360287970189641048 500 3 360287970189641031 60 648518346341351451 500 3 360287970189641031 141 0 500 3 360287970189641031 143 4 500 3 360287970189641031 144 360287970189640438 500 3 360287970189641031 67 648518346341351452 500 3 360287970189641031 14 0 500 3 360287970189641031 52 10 500 3 360287970189641032 62 5 500 3 360287970189641032 63 4 500 3 360287970189641032 64 1 500 3 360287970189641032 66 -1 500 3 360287970189641032 71 999999999 500 3 360287970189641032 73 999999999 500 3 360287970189641032 75 360287970189641051 500 3 360287970189641032 60 648518346341351463 500 3 360287970189641032 141 0 500 3 360287970189641032 143 5 500 3 360287970189641032 144 360287970189640438 500 3 360287970189641032 67 648518346341351463 500 3 360287970189641032 14 0 500 3 360287970189641032 52 1 500 3 360287970189641033 62 1 500 3 360287970189641033 63 4 500 3 360287970189641033 64 1 500 3 360287970189641033 66 -1 500 3 360287970189641033 71 999999999 500 3 360287970189641033 73 999999999 500 3 360287970189641033 75 360287970189641049 500 3 360287970189641033 60 648518346341351474 500 3 360287970189641033 141 0 500 3 360287970189641033 143 1 500 3 360287970189641033 144 360287970189640438 500 3 360287970189641033 67 648518346341351468 500 3 360287970189641033 14 0 500 3 360287970189641033 52 5 500 3 360287970189641034 62 1 500 3 360287970189641034 63 3 500 3 360287970189641034 64 -1 500 3 360287970189641034 66 0 500 3 360287970189641034 71 999999999 500 3 360287970189641034 73 999999999 500 3 360287970189641034 75 360287970189641036 500 3 360287970189641034 60 648518346341351459 500 3 360287970189641034 141 0 500 3 360287970189641034 143 2 500 3 360287970189641034 144 360287970189640438 500 3 360287970189641034 67 648518346341351461 500 3 360287970189641034 14 432345564227567658 500 3 360287970189641034 52 1 500 3 360287970189641035 62 3 500 3 360287970189641035 63 2 500 3 360287970189641035 64 4 500 3 360287970189641035 66 1 500 3 360287970189641035 71 999999999 500 3 360287970189641035 73 999999999 500 3 360287970189641035 75 360287970189641037 500 3 360287970189641035 60 648518346341351533 500 3 360287970189641035 141 0 500 3 360287970189641035 143 4 500 3 360287970189641035 144 360287970189640438 500 3 360287970189641035 67 648518346341351462 500 3 360287970189641035 14 432345564227567650 500 3 360287970189641035 52 9 500 3 360287970189641036 62 1 500 3 360287970189641036 63 3 500 3 360287970189641036 64 -1 500 3 360287970189641036 66 0 500 3 360287970189641036 71 999999999 500 3 360287970189641036 73 999999999 500 3 360287970189641036 75 360287970189641030 500 3 360287970189641036 60 648518346341351519 500 3 360287970189641036 141 0 500 3 360287970189641036 143 4 500 3 360287970189641036 144 360287970189640438 500 3 360287970189641036 67 648518346341351450 500 3 360287970189641036 14 432345564227567651 500 3 360287970189641036 52 1 500 3 360287970189641037 62 4 500 3 360287970189641037 63 3 500 3 360287970189641037 64 -1 500 3 360287970189641037 66 0 500 3 360287970189641037 71 999999999 500 3 360287970189641037 73 999999999 500 3 360287970189641037 75 360287970189641048 500 3 360287970189641037 60 648518346341351515 500 3 360287970189641037 141 0 500 3 360287970189641037 143 5 500 3 360287970189641037 144 360287970189640438 500 3 360287970189641037 67 648518346341351449 500 3 360287970189641037 14 432345564227567652 500 3 360287970189641037 52 9 500 3 360287970189641038 62 1 500 3 360287970189641038 63 2 500 3 360287970189641038 64 4 500 3 360287970189641038 66 1 500 3 360287970189641038 71 999999999 500 3 360287970189641038 73 999999999 500 3 360287970189641038 75 360287970189641049 500 3 360287970189641038 60 648518346341351453 500 3 360287970189641038 141 0 500 3 360287970189641038 143 5 500 3 360287970189641038 144 360287970189640438 500 3 360287970189641038 67 648518346341351472 500 3 360287970189641038 14 432345564227567660 500 3 360287970189641038 52 1 500 3 360287970189641039 62 3 500 3 360287970189641039 63 2 500 3 360287970189641039 64 2 500 3 360287970189641039 66 1 500 3 360287970189641039 71 999999999 500 3 360287970189641039 73 999999999 500 3 360287970189641039 75 360287970189641031 500 3 360287970189641039 60 648518346341351456 500 3 360287970189641039 141 0 500 3 360287970189641039 143 2 500 3 360287970189641039 144 360287970189640438 500 3 360287970189641039 67 648518346341351463 500 3 360287970189641039 14 432345564227567655 500 3 360287970189641039 52 10 500 3 360287970189641040 62 4 500 3 360287970189641040 63 3 500 3 360287970189641040 64 -1 500 3 360287970189641040 66 0 500 3 360287970189641040 71 999999999 500 3 360287970189641040 73 999999999 500 3 360287970189641040 75 360287970189641042 500 3 360287970189641040 60 648518346341351550 500 3 360287970189641040 141 0 500 3 360287970189641040 143 1 500 3 360287970189641040 144 360287970189640438 500 3 360287970189641040 67 648518346341351594 500 3 360287970189641040 14 432345564227567658 500 3 360287970189641040 52 10 500 3 360287970189641041 62 4 500 3 360287970189641041 63 3 500 3 360287970189641041 64 -1 500 3 360287970189641041 66 0 500 3 360287970189641041 71 999999999 500 3 360287970189641041 73 999999999 500 3 360287970189641041 75 360287970189641031 500 3 360287970189641041 60 648518346341351495 500 3 360287970189641041 141 0 500 3 360287970189641041 143 1 500 3 360287970189641041 144 360287970189640438 500 3 360287970189641041 67 648518346341351462 500 3 360287970189641041 14 432345564227567649 500 3 360287970189641041 52 9 500 3 360287970189641042 62 1 500 3 360287970189641042 63 3 500 3 360287970189641042 64 -1 500 3 360287970189641042 66 0 500 3 360287970189641042 71 999999999 500 3 360287970189641042 73 999999999 500 3 360287970189641042 75 360287970189641045 500 3 360287970189641042 60 648518346341351500 500 3 360287970189641042 141 0 500 3 360287970189641042 143 1 500 3 360287970189641042 144 360287970189640438 500 3 360287970189641042 67 648518346341351520 500 3 360287970189641042 14 432345564227567658 500 3 360287970189641042 52 1 500 3 360287970189641043 62 3 500 3 360287970189641043 63 4 500 3 360287970189641043 64 2 500 3 360287970189641043 66 -1 500 3 360287970189641043 71 999999999 500 3 360287970189641043 73 999999999 500 3 360287970189641043 75 360287970189641042 500 3 360287970189641043 60 648518346341351478 500 3 360287970189641043 141 0 500 3 360287970189641043 143 4 500 3 360287970189641043 144 360287970189640438 500 3 360287970189641043 67 648518346341351467 500 3 360287970189641043 14 432345564227567670 500 3 360287970189641043 52 9 500 3 360287970189641044 62 2 500 3 360287970189641044 63 2 500 3 360287970189641044 64 4 500 3 360287970189641044 66 1 500 3 360287970189641044 71 999999999 500 3 360287970189641044 73 999999999 500 3 360287970189641044 75 360287970189641046 500 3 360287970189641044 60 648518346341351552 500 3 360287970189641044 141 0 500 3 360287970189641044 143 2 500 3 360287970189641044 144 360287970189640438 500 3 360287970189641044 67 648518346341351468 500 3 360287970189641044 14 432345564227567653 500 3 360287970189641044 52 6 500 3 360287970189641045 62 1 500 3 360287970189641045 63 4 500 3 360287970189641045 64 3 500 3 360287970189641045 66 -1 500 3 360287970189641045 71 999999999 500 3 360287970189641045 73 999999999 500 3 360287970189641045 75 360287970189641043 500 3 360287970189641045 60 648518346341351567 500 3 360287970189641045 141 0 500 3 360287970189641045 143 5 500 3 360287970189641045 144 360287970189640438 500 3 360287970189641045 67 648518346341351447 500 3 360287970189641045 14 432345564227567651 500 3 360287970189641045 52 6 500 3 360287970189641046 62 1 500 3 360287970189641046 63 2 500 3 360287970189641046 64 1 500 3 360287970189641046 66 1 500 3 360287970189641046 71 999999999 500 3 360287970189641046 73 999999999 500 3 360287970189641046 75 360287970189641044 500 3 360287970189641046 60 648518346341351473 500 3 360287970189641046 141 0 500 3 360287970189641046 143 2 500 3 360287970189641046 144 360287970189640438 500 3 360287970189641046 67 648518346341351472 500 3 360287970189641046 14 432345564227567663 500 3 360287970189641046 52 10 500 3 360287970189641047 62 3 500 3 360287970189641047 63 4 500 3 360287970189641047 64 4 500 3 360287970189641047 66 1 500 3 360287970189641047 71 999999999 500 3 360287970189641047 73 999999999 500 3 360287970189641047 75 360287970189641042 500 3 360287970189641047 60 648518346341351586 500 3 360287970189641047 141 0 500 3 360287970189641047 143 1 500 3 360287970189641047 144 360287970189640438 500 3 360287970189641047 67 648518346341351464 500 3 360287970189641047 14 432345564227567659 500 3 360287970189641047 52 10 500 3 360287970189641048 62 4 500 3 360287970189641048 63 2 500 3 360287970189641048 64 -1 500 3 360287970189641048 66 0 500 3 360287970189641048 71 999999999 500 3 360287970189641048 73 999999999 500 3 360287970189641048 75 360287970189640438 500 3 360287970189641048 60 648518346341351468 500 3 360287970189641048 141 0 500 3 360287970189641048 143 4 500 3 360287970189641048 144 360287970189640438 500 3 360287970189641048 67 648518346341351471 500 3 360287970189641048 14 432345564227567664 500 3 360287970189641048 52 10 500 3 360287970189641049 62 1 500 3 360287970189641049 63 2 500 3 360287970189641049 64 1 500 3 360287970189641049 66 1 500 3 360287970189641049 71 999999999 500 3 360287970189641049 73 999999999 500 3 360287970189641049 75 360287970189641047 500 3 360287970189641049 60 648518346341351978 500 3 360287970189641049 141 0 500 3 360287970189641049 143 2 500 3 360287970189641049 144 360287970189640438 500 3 360287970189641049 67 648518346341351453 500 3 360287970189641049 14 432345564227567661 500 3 360287970189641049 52 8 500 3 360287970189641050 62 1 500 3 360287970189641050 63 2 500 3 360287970189641050 64 1 500 3 360287970189641050 66 1 500 3 360287970189641050 71 999999999 500 3 360287970189641050 73 999999999 500 3 360287970189641050 75 360287970189641036 500 3 360287970189641050 60 648518346341351468 500 3 360287970189641050 141 0 500 3 360287970189641050 143 5 500 3 360287970189641050 144 360287970189640438 500 3 360287970189641050 67 648518346341351471 500 3 360287970189641050 14 432345564227567652 500 3 360287970189641050 52 1 500 3 360287970189641051 62 1 500 3 360287970189641051 63 2 500 3 360287970189641051 64 1 500 3 360287970189641051 66 1 500 3 360287970189641051 71 999999999 500 3 360287970189641051 73 999999999 500 3 360287970189641051 75 360287970189641031 500 3 360287970189641051 60 648518346341351574 500 3 360287970189641051 141 0 500 3 360287970189641051 143 4 500 3 360287970189641051 144 360287970189640438 500 3 360287970189641051 67 648518346341351452 500 3 360287970189641051 14 432345564227567657 500 3 360287970189641051 52 3 500 3 360287970189641052 62 1 500 3 360287970189641052 63 2 500 3 360287970189641052 64 1 500 3 360287970189641052 66 1 500 3 360287970189641052 71 999999999 500 3 360287970189641052 73 999999999 500 3 360287970189641052 75 360287970189641031 500 3 360287970189641052 60 648518346341351590 500 3 360287970189641052 141 0 500 3 360287970189641052 143 4 500 3 360287970189641052 144 360287970189640438 500 3 360287970189641052 67 648518346341351462 500 3 360287970189641052 14 432345564227567650 500 3 360287970189641052 52 8 500 3 360287970189641053 62 4 500 3 360287970189641053 63 2 500 3 360287970189641053 64 -1 500 3 360287970189641053 66 0 500 3 360287970189641053 71 999999999 500 3 360287970189641053 73 999999999 500 3 360287970189641053 75 360287970189640438 500 3 360287970189641053 60 648518346341351705 500 3 360287970189641053 141 0 500 3 360287970189641053 143 4 500 3 360287970189641053 144 360287970189640438 500 3 360287970189641053 67 648518346341351458 500 3 360287970189641053 14 432345564227567657 500 3 360287970189641053 52 8 500 3 360287970189641054 62 4 500 3 360287970189641054 63 2 500 3 360287970189641054 64 -1 500 3 360287970189641054 66 0 500 3 360287970189641054 71 999999999 500 3 360287970189641054 73 999999999 500 3 360287970189641054 75 360287970189640438 500 3 360287970189641054 60 648518346341351563 500 3 360287970189641054 141 0 500 3 360287970189641054 143 4 500 3 360287970189641054 144 360287970189640438 500 3 360287970189641054 67 648518346341351448 500 3 360287970189641054 14 432345564227567664 500 3 360287970189641054 52 8 500 3 360287970189641055 62 4 500 3 360287970189641055 63 2 500 3 360287970189641055 64 -1 500 3 360287970189641055 66 0 500 3 360287970189641055 71 999999999 500 3 360287970189641055 73 999999999 500 3 360287970189641055 75 360287970189640438 500 3 360287970189641055 60 648518346341351786 500 3 360287970189641055 141 0 500 3 360287970189641055 143 4 500 3 360287970189641055 144 360287970189640438 500 3 360287970189641055 67 648518346341351470 500 3 360287970189641055 14 432345564227567657 500 3 360287970189641055 52 8 500 3 360287970189641056 62 4 500 3 360287970189641056 63 2 500 3 360287970189641056 64 -1 500 3 360287970189641056 66 0 500 3 360287970189641056 71 999999999 500 3 360287970189641056 73 999999999 500 3 360287970189641056 75 360287970189640438 500 3 360287970189641056 60 648518346341351514 500 3 360287970189641056 141 0 500 3 360287970189641056 143 4 500 3 360287970189641056 144 360287970189640438 500 3 360287970189641056 67 648518346341351462 500 3 360287970189641056 14 432345564227567650 500 3 360287970189641056 52 6 500 3 360287970189641057 62 4 500 3 360287970189641057 63 2 500 3 360287970189641057 64 -1 500 3 360287970189641057 66 0 500 3 360287970189641057 71 999999999 500 3 360287970189641057 73 999999999 500 3 360287970189641057 75 360287970189640438 500 3 360287970189641057 60 648518346341351465 500 3 360287970189641057 141 0 500 3 360287970189641057 143 4 500 3 360287970189641057 144 360287970189640438 500 3 360287970189641057 67 648518346341351465 500 3 360287970189641057 14 432345564227567658 500 3 360287970189641057 52 6 500 3 360287970189641058 62 4 500 3 360287970189641058 63 2 500 3 360287970189641058 64 -1 500 3 360287970189641058 66 0 500 3 360287970189641058 71 999999999 500 3 360287970189641058 73 999999999 500 3 360287970189641058 75 360287970189641040 500 3 360287970189641058 60 648518346341351474 500 3 360287970189641058 141 0 500 3 360287970189641058 143 4 500 3 360287970189641058 144 360287970189640438 500 3 360287970189641058 67 648518346341351474 500 3 360287970189641058 14 432345564227567658 500 3 360287970189641058 52 6 2121 3 144115188075856858 141 101 6 3 1224979098644774912 360287970189641030 360287970189641059 6 3 1224979098644774913 0 144115188075856858 2120 3 1224979098644774914 1224979098644774913 101 2122 3 1224979098644774915 1224979098644774913 29 2120 3 1224979098644774916 216172782113784300 1224979098644774915 2105 2 1224979098644774916 1224979098644774912 2106 2 1224979098644774916 360287970189641030 500 3 1224979098644774912 1224979098644774914 1224979098644774916 3 0 3 0 1 6 936748722493063671 45 360287970189639680 -1 -1 -1 500 3 360287970189641363 14 432345564227567661 500 3 360287970189641364 14 432345564227567662 500 3 360287970189641365 14 432345564227567665 500 3 360287970189641366 14 432345564227567663 500 3 360287970189641367 14 432345564227567666 500 3 360287970189641368 14 432345564227567654 6 3 1224979098644774917 360287970189641363 360287970189641369 500 3 1224979098644774917 52 0 3 0
objectionable_action -1

Among the code you will find instances such as 62, 63, 64, 66, 71, 72, 75, 60, 141, 143, 144, 67 and 14. I've broken the code down for you below into segments, each segment is a troop_set_slot starting with 62 and ending with 14(so trp_npc1, trp_npc2, trp_npc3 and so on) These are the companions within the game. I will tell you what each number does shortly.

500 3 360287970189641030 62 1
500 3 360287970189641030 63 4
500 3 360287970189641030 64 1
500 3 360287970189641030 66 -1
500 3 360287970189641030 71 360287970189641031
500 3 360287970189641030 73 360287970189640438
500 3 360287970189641030 75 360287970189641036
500 3 360287970189641030 60 648518346341351511
500 3 360287970189641030 141 250
500 3 360287970189641030 143 2
500 3 360287970189641030 144 360287970189640438
500 3 360287970189641030 67 648518346341351450
500 3 360287970189641030 14 0

The segment

(500) : Each line starts with this, i think it means troop_set_slot, best to leave it alone.
(3) : Not sure, best to leave it alone.
(360xxxxxxxxxxxxx) :  This is the unit ID, the name of the companion (aka trp_npc1) you can see in Morgh's Editor which NPC this relates to, initialize_npcs -1 seems to count up so 1 - onwards. This means that the first number you come across in this format will most likely be trp_npc1.

The meaning of each line within the segment.

(62) : slot_troop_morality_type                  [Example]: Egalitarian
(63) : slot_troop_morality_value
(64) : slot_troop_2ary_morality_type          [Example]: Honest
(66) : slot_troop_2ary_morality_value
(71) : slot_troop_personalityclash_object    [Who this NPC doesn't like 1, in script.txt ID format]
(73) : slot_troop_personalityclash2_object  [Who this NPC doesn't like 2, in script.txt ID format]
(75) : slot_troop_personalitymatch_object  [Who this NPC likes, in script.txt ID format]
(60) : slot_troop_home                              [The NPC's home]
(141) : slot_troop_payment_request          [How much the npc wants to be paid before being hired]
(143) : slot_troop_kingsupport_argument
(144) : slot_troop_kingsupport_opponent
(67) : slot_troop_town_with_contacts
(14) : slot_lord_reputation_type                [Example]: Custodian

The most useful ones

The lines which most people what to change are. 71, 73 and 141.

500 3 360287970189641030 71 360287970189641031
500 3 360287970189641030 73 360287970189640438
500 3 360287970189641030 141 250

Do the following if you want all NPC's to get along and cost nothing.

500 3 360287970189641030 71 9999999
500 3 360287970189641030 73 9999999
500 3 360287970189641030 141 0

Do the following if you want all NPC's to hate you and complain about you being in the party. (This was quite funny when testing)

500 3 360287970189641030 71 1
500 3 360287970189641030 73 1
500 3 360287970189641030 141 0

If you want to change which companion likes/hates who then you will need to match up and find the ID of the companion from within scripts.txt under initialize_npcs -1 and swap it out with the ID in 71, 73 and 75.

REMEMBER You have to do this with every instance of 71, 73 and 141 within scripts.txt under initialize_npcs -1. You also have to start a new game for it to work properly.

Let me know if you found this useful and also of any mistakes. Thank you for your time.

Toccs





 
Very useful post, Toccs, thanks a lot ! A little error though :

the companion script group doesn't end with "500 3 ... 14 ..." but with "500 3 ... 52 ...".

I don't know what for "14" stand but "52" is the code for the companion's reputation as a lord.

Example, Rolph in native (fourth npc) :

500 3 360287970189639877 62 1
500 3 360287970189639877 63 4
500 3 360287970189639877 64 4
500 3 360287970189639877 66 -1
500 3 360287970189639877 71 360287970189639883
500 3 360287970189639877 73 360287970189639880
500 3 360287970189639877 75 360287970189639878
500 3 360287970189639877 60 648518346341351548
500 3 360287970189639877 141 300
500 3 360287970189639877 143 1
500 3 360287970189639877 144 360287970189639879
500 3 360287970189639877 67 648518346341351447
500 3 360287970189639877 14 0
500 3 360287970189639877 52 4

Rolf reputation as lord : "52 4" --> 4 = cunning.

Source : scripts.txt, morgh's troops editor, "make your own companions" thread.

 
 
Oh, I really needed this guide several years ago when I wanted to edit some of PoP companions. :twisted:

Toccs said:
(3) : Not sure, best to leave it alone.
A number of variables used in the operation.

Toccs said:
(360xxxxxxxxxxxxx) :  This is the unit ID, the name of the companion (aka trp_npc1) you can see in Morgh's Editor which NPC this relates to, initialize_npcs -1 seems to count up so 1 - onwards. This means that the first number you come across in this format will most likely be trp_npc1.
Companion's № in .txt files = 360287970189639680 + his/her № in Morghs.

Also to hell with morality which is complicated, but I think people could use a list of reputation numbers from the module sys:
lrep_martial        = 1 #chivalrous but not terribly empathetic or introspective, - eg Richard Lionheart, your average 14th century French baron
lrep_quarrelsome    = 2 #=badtempered #spiteful, cynical, a bit paranoid, possibly hotheaded - eg Robert Graves' Tiberius, some of Charles VI's uncles
lrep_selfrighteous  = 3 #=pitiless #coldblooded, moralizing, often cruel - eg William the Conqueror, Timur, Octavian, Aurangzeb (although he is arguably upstanding instead, particularly after his accession)
lrep_cunning        = 4 #=calculating #coldblooded, pragmatic, amoral - eg Louis XI, Guiscard, Akbar Khan, Abd al-Aziz Ibn Saud
lrep_debauched      = 5 #=sadistic #spiteful, amoral, sadistic - eg Caligula, Tuchman's Charles of Navarre
lrep_goodnatured    = 6 #chivalrous, benevolent, perhaps a little too decent to be a good warlord - eg Hussein ibn Ali. Few well-known historical examples maybe. because many lack the drive to rise to faction leadership. Ranjit Singh has aspects
lrep_upstanding    = 7 #moralizing, benevolent, pragmatic, - eg Bernard Cornwell's Alfred, Charlemagne, Salah al-Din, Sher Shah Suri

lrep_roguish        = 8 #used for commons, specifically ex-companions. Tries to live life as a lord to the full
lrep_benefactor    = 9 #used for commons, specifically ex-companions. Tries to improve lot of folks on land
lrep_custodian      = 10 #used for commons, specifically ex-companions. Tries to maximize fief's earning potential
... for the slot slot_lord_reputation_type which is 52, not 14.

What module did you copy the sample script from?
 
Back
Top Bottom