Troops.txt, Troops and their 0 based index number

Users who are viewing this thread

Here is a list of all the troops in troops.txt, along with their ID number.
Code:
0	arma
1	temp_troop
2	game
3	novice_fighter
4	regular_fighter
5	veteran_fighter
6	champion_fighter
7	farmer
8	townsman
9	watchman
10	caravan_guard
11	mercenry
12	hired_blade
13	swadian_peasant
14	swadian_militia
15	swadian_footman
16	swadian_infantry
17	swadian_sergeant
18	swadian_skirmisher
19	swadian_crossbowman
20	swadian_sharpshooter
21	swadian_man_at_arms
22	swadian_knight
23	vaegir_peasant
24	vaegir_footman
25	vaegir_skirmisher
26	vaegir_archer
27	vaegir_marksman
28	vaegir_veteran
29	vaegir_infantry
30	vaegir_guard
31	vaegir_horseman
32	vaegir_knight
33	river_pirate
34	bandit
35	brigand
36	moutain_bandit
37	sea_raider
38	manhunter
39	deserter
40	slave_keeper
41	slave_driver
42	slave_hunter
43	slave_crusher
44	slaver_chief
45	khergit_tribesman
46	khergit_skirmisher
47	khergit_raider
48	khergit_horseman
49	khergit_cavalry
50	steppe_bandit
51	black_khergit_horseman
52	inquisition_knight
53	ghoul
54	undead_walker
55	undead_horseman
56	undead_nomad
57	undead
58	hell_knight
59	follower_woman
60	hunter_woman
61	fighter_woman
62	sword_sister
63	pilgrim
64	refugee
65	peasant_woman
66	vagabond
67	vagabond_woman
68	antler_crossbowman
69	antler_squire
70	antler_knight
71	dark_knight
72	dark_hunter
73	caravan_master
74	kidnapped_girl
75	tax_collector
76	nobleman
77	runaway_slave
78	desert_bandit
79	slaver
80	ubeyir
81	pharnivar
82	knutszar
83	aibu
84	yesim
85	weapon_merchant
86	armor_merchant
87	enemy_hero
88	father_erascus
89	tournament_master
90	trainer
91	dunga
92	rabugti
93	constable_hareck
94	ramun_the_slave_trader
95	xerina
96	dranton
97	kradus
98	marnid
99	arethra_rulqarn
100	overseer_drahu
101	arethra_pasarev
102	welrog_pasarev
103	ursag
104	sarsu_the_healer
105	father_larchas
106	arishkar
107	mardhug
108	ralegk_the_wolf
109	krahhar
110	zarchas
111	lord_paugard
112	sergeant_rapek
113	sir_lagein
114	galeas
115	baron_rolf
116	jabbara
117	borcha
118	ymira
119	king_harlaus
120	duke_taugard
121	count_grimar
122	count_haxalye
123	count_belicha
124	count_nourbis
125	count_rhudolg
126	king_yaroglek
127	count_aolbrug
128	count_rasevas
129	count_leomir
130	count_haelbrad
131	count_mira
132	count_camechaw
133	sargoth_castle_guard
134	tihr_castle_guard
135	suno_castle_guard
136	praven_castle_guard
137	uxkhal_castle_guard
138	jelkala_castle_guard
139	veluca_castle_guard
140	reyvadin_castle_guard
141	khudan_castle_guard
142	tulga_castle_guard
143	curaw_castle_guard
144	wercheg_castle_guard
145	rivacheg_castle_guard
146	halmar_castle_guard
147	urumuda
148	alin
149	ganzo
150	beranz
151	mirchaud
152	stamar
153	regos
154	meltor
155	imirza
156	rimusk
157	talbar
158	kramuk
159	chau
160	zelk
161	struga
162	sebula
163	gutlans
164	khavel
165	ryis
166	plais
167	belgaru
168	norskh
169	doru
170	nelag
171	vlan
172	mleza
173	dibus
174	crahask
175	tavernkeeper
176	turegor
177	matheas
178	imbrea
179	falsevor
180	gharmall
181	belinda
182	ruby
183	qaelmas
184	rose
185	ralcha
186	naldera
187	laruqen
188	willow
189	reamald
190	prescan
191	qlurzach
192	ruhbus
193	givea_alsev
194	klargus
195	belanz
196	meriga
197	pelagn
198	tarchias
199	brula
200	irya
201	raichs
202	bendina
203	turya
204	vuldrat
205	barezan
206	gustav_the_bone_breaker
207	lady_reincila
208	scorpion
209	harcaud
210	sir_daelrac
211	lerias_welon
212	akhad_thell
213	captain_rucas
214	knight_blegas
215	hchin
216	barthai_khan
217	uruzuge
218	nuyukh_khan
219	ecatha_the_necromancer
220	sir_gunivar
221	jevna
222	stulgar
223	brother_largus
224	enemy_soldier
 
Here is a list of all the speaker IDs from conversation.txt, save those of the player:
Code:
74
76
89
90
93
94
95
97
98
107
114
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
131
132
133
134
135
137
138
139
140
141
142
143
144
145
146
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
218
221
222
223
131071
131072
131073
131077
131078
131080
131084
131085
131091
131092
131093
131094
131095
131096
131098
131099
131100
131102
131103
131106
131108
131109
131110
131112
131117
131118
131123
196609
196612
196613
196614
196629
 
Wow, nice job getting all of those... if we had a mod forum I'd say sticky this immediatly! :wink: :wink: :roll:


edit- woo! we have a mod forum.
 
n00854180t said:
Here is a list of all the speaker IDs from conversation.txt, save those of the player:

FYI, the "speaker id" is made of the following bits:

0-15: speaker id
16: view player
17: party

if the party bit is set, then the speaker id is the index in party_templates.txt, otherwise the speaker id is the index in troops.txt.

If the "view player" bit is set, the window will focus on the player when speaking that line of text.

Additionally, 0xFFFF is special in that it will display for everyone that goes to that conversation id. (I think)
 
Ahh, thank you. I was wondering how it was set up. I know I had seen you post something about that earlier, but couldn't remember where I saw it, and didn't want to hunt it down.

I'm writing a program to use the info I posted here. Hehe.
 
n00854180t said:
I'm writing a program to use the info I posted here. Hehe.
I've written a couple quick programs to read some of the text files and dump the data in more useable formats. But I've pretty much quit since I'm sure that once I got it all complete armagan will release tools.

I did grab Eclipse thinking I'd use this as an excuse to mess around with Java and design a simple UI around the data (I haven't written any Java code in many years). But after spending 20 minutes clicking all over Eclipse I gave up and just wrote some console apps in C++ to dump the data to delimited files. My patience with UI is non-existant. :)
 
I'm just doing a simple PHP script, but going to put into PHP-GTK. Will be a dialog editor, basically. Personally, I can't stand Java. I used BCB if I'm going to deal with GUI, or PHP if I'm dealing with files. Being able to read the file in in two lines is nice for me.

I could do C++, but I'd rather just write in PHP for faster results.
 
I'm just doing a simple PHP script, but going to put into PHP-GTK. Will be a dialog editor, basically. Personally, I can't stand Java. I used BCB if I'm going to deal with GUI, or PHP if I'm dealing with files. Being able to read the file in in two lines is nice for me.

I could do C++, but I'd rather just write in PHP for faster results.


:shock:
 
n00854180t said:
I'm just doing a simple PHP script, but going to put into PHP-GTK. Will be a dialog editor, basically. Personally, I can't stand Java. I used BCB if I'm going to deal with GUI, or PHP if I'm dealing with files. Being able to read the file in in two lines is nice for me.

I could do C++, but I'd rather just write in PHP for faster results.

It's all what your used to I suppose. I used to use Delphi for UI work, but now if I have to do any UI it ends up being HTML (which I write in Visual Studio, go figure). I still have my copy of Delphi 5 laying around here somewhere, so if I got desparate I'd probably break it out.

And I can't stand Java either...
 
This list is now outdated as the order of the units has changed in the newest versions. Use the editor to get the character numbers. Theres only one trick to conversations. When an npc speaks it willl start with his character number and the other half (when you are talking back) of the conversation will start with a longer number. That is just his character number and a camera control bit.

dlg_0 83 15 0 People_of_Zendar,_our_Count_invites_you_to_serve_him_in_this_cause._Those_of_you_that_volunteer_now_will_be_equipped_with_arms_and_armor_at_the_Count's_expense_and_shall_be_granted_the_right_to_hunt_down_the_river_pirates,_ending_their_miserable_lives_by_death_or_imprisonment,_and_keeping_their_ill-gotten_gains_to_yourselves_without_tax_or_tribute._Moreover,_you_will_be_paid_a_reward_of_5_denars_from_the_Count's_treasury_for_every_river_pirate_group_you_vanquish. 6 0
dlg_0 83 0 0 What_do_you_want? 16 0
dlg_0 65619 16 1 31 33554721 0 0 I_want_to_sign_up_to_hunt_down_the_river_pirates. 17 0


Put 65619 in wincalc, convert to hex and you get 10053. The 1 is for some camera control and the 53 is just the characters number in hex. 53 hex is 83 decimal.

For end of the line codes, the first one just tells you what line conversation number to jump to when you are done with this line. A "6" means end the conversation so you shouldnt start a conversation line with a 6. It will never get picked up.
 
Okay, I think I understand this, or I can at least work my way through it, but I still have two problems.
1) I don't know what Hex is, and 2) I don't know that I have wincalc. :oops:

At any rate, I appreciate your continued help wanker. :wink: Makes it a lot easier to keep modding. :)
 
wincalc is just a calculator that everyone has... go to program files/accessories and youll see it.

Then click it over to scientific notation on the options bar. Youll see 4 boxes to tick. hex/dec/oct/bin
 
Okay, so I created a farmer named Zel in Zendar.

I want him to say "Hello I am Zel."
I want my character to say "Hello."

so, should my code line look like this:

dlg_0 224 398 0 Hello_I_am_Zel. 399 0
dlg_0 18780 399 0 Hello. 6 0

Where 224 is Zel's ID number, and 399 is the conversation tag.
Does that look right?
18780 is 100224 in Hex--did I do that correctly?

Edit: Okay, I believe he's still using the generic hero line, that goes like this:

dlg_0 65535 0 0 Hello._What_can_I_do_for_you? 396 0
dlg_0 131071 396 1 -2147483604 0 0 0 Tell_me_about_yourself 397 0
dlg_0 65535 397 0 Ok_then_listen_to_this... 11 1 13016 0 0 0
dlg_0 65535 11 0 Anything_else? 396 0
dlg_0 131071 396 1 44 0 0 0 _Good-bye. 6 0
dlg_0 131071 396 1 -2147483604 0 0 0 _[Leave] 6 0

How do I make him use something else?

I have to go to supper right now before the place closes, so forgive me for not replying quickly.
 
Back
Top Bottom