erennuman_mb said:
Man kraggrim, how do you know all this stuff?
In this case I seem to remember from a different tweak that the bits before the spoken dialog are conditions that need to be filled for it to be available. Might be the relevant ones here, I dunno.
In general it's knowledge gathered from a variety of different places, like
this thread, the tweakmb tweak-viewer function, and studying the source code for native warband. Most important is cross-referencing that native source code with it's header_operations file and then the VC files then filling in the blanks. This was great advice from
kalarhan
, I didn't even notice this before, I was just looking for familiar patterns and systems, took bloody ages.
The header_operations file shows how different operations show up in the text files, and explains what they do. So for instance the 31 in this line in the text files:
dlga_lord_talk:lord_give_troops 69631 204 2 31 2 144115188075855887 432345564227567629 2147484208 3 144115188075855885 8 0 I_want_to_give_some_troops_to_you. 242 0
is this in header operations:
eq = 31 # (eq, <value1>, <value2>),
# Checks that value1 == value2
Which we now know corresponds to this source code line:
[anyone|plyr,"lord_talk", [(eq, "$g_talk_troop_faction", "fac_player_supporters_faction"),
in the native code. This checks that the lord is a of the player's created kingdom. In VC I think this has probably changed to check that the player is the marshal of that lord's faction, but I can't be sure since I don't remember how this system works in VC.
The 2 before that 31 is how many operations are going to be used here, so since we're removing both (probably unnecessary to do both but whatever) we set it to 0.