Leifdin said:I'm quite sure you can't. There is a cheat to upgrade troops though...Ctrl+X I think
dlga_regular_member_talk:do_regular_member_view_char 69631 1720 1 30 2 144115188075856163 1 CHEAT:_Upgrade_One_Member 1722 11 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1 2 936748722493063192 144115188075855987 1670 3 648518346341351424 1224979098644774912 72057594037927936 NO_VOICEOVER
dlga_regular_member_talk:do_regular_member_view_char.1 69631 1720 1 30 2 144115188075856163 1 CHEAT:_Upgrade_Full_Stack 1722 13 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1 2 936748722493063192 144115188075855987 1653 3 72057594037927937 648518346341351424 1224979098644774912 2107 2 72057594037927936 72057594037927937 1670 3 648518346341351424 1224979098644774912 72057594037927936 NO_VOICEOVER
Hanakoganei said:Not sure if it'll work with just a .txt tweak. Frankly I don't understand a lot of the values in the conversation.txt file. But these are the actual lines in conversation.txt file. You're likely going to have to change the first two sets of numbers (69631 and 1720). But again, I'm not too sure what these are and what they're supposed to be. They're values that get assigned to lines in the .txt files when you compile and it will vary from mod to mod.
Code:dlga_regular_member_talk:do_regular_member_view_char 69631 1720 1 30 2 144115188075856163 1 CHEAT:_Upgrade_One_Member 1722 11 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1 2 936748722493063192 144115188075855987 1670 3 648518346341351424 1224979098644774912 72057594037927936 NO_VOICEOVER dlga_regular_member_talk:do_regular_member_view_char.1 69631 1720 1 30 2 144115188075856163 1 CHEAT:_Upgrade_Full_Stack 1722 13 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1 2 936748722493063192 144115188075855987 1653 3 72057594037927937 648518346341351424 1224979098644774912 2107 2 72057594037927936 72057594037927937 1670 3 648518346341351424 1224979098644774912 72057594037927936 NO_VOICEOVER
Adding these lines will likely not work and even cause problems in your game (like dialog being shifted for some people, like the king talking like he's your wife or something).
But if you know the basics of how to use the module system and you have the source files of the other mod, it's a simple copy+paste procedure and it will be bug free. I can teach you what to do if you actually have the source files and the ability to compile the source files for the other mod.
Hanakoganei said:Again it probably won't work. It might not get any "errors" but you might have mixed up dialogue in game. You need to change the first two numerical values into something and it varies, so I can't tell you what to change the values into. If I'm not mistaken, at least one of those values refers to who you should be talking to for those dialog options to show up.
Caba`drin said:Having seen a number of these threads come and go, I figured it was time to throw the code together to do this.
This adds XP cheat options to dialogs with party members (accessed via your party window), if the cheatmenu is active.
0. Backup conversation.txt
1. Open conversation.txt
2. Add 2 to the number at the top of the file (native 1.153 change 2769 to 2771)
3. At the very bottom of the file, add
4. Save, play.Code:dlga_regular_member_talk:do_regular_member_view_char 69631 1320 1 30 2 144115188075856163 1 Upgrade_One_Member 1322 11 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1 2 936748722493063190 144115188075855987 1670 3 648518346341351424 1224979098644774912 72057594037927936 NO_VOICEOVER dlga_regular_member_talk:do_regular_member_view_char.1 69631 1320 1 30 2 144115188075856163 1 Upgrade_Full_Stack 1322 13 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1 2 936748722493063190 144115188075855987 1653 3 72057594037927937 648518346341351424 1224979098644774912 2107 2 72057594037927936 72057594037927937 1670 3 648518346341351424 1224979098644774912 72057594037927936 NO_VOICEOVER
Drop at bottom of fileCode:[anyone|plyr,"regular_member_talk", [(ge, "$cheat_mode", 1)], "Upgrade One Member", "do_regular_member_view_char",[ (assign, ":stack", -1), (party_get_num_companion_stacks, ":num_of_stacks", "p_main_party"), (try_for_range, ":i", 0, ":num_of_stacks"), (party_stack_get_troop_id, ":stack_troop", "p_main_party", ":i"), (eq, ":stack_troop", "$g_talk_troop"), (assign, ":stack", ":i"), (assign, ":num_of_stacks", 0), (try_end), (neq, ":stack", -1), (call_script, "script_game_get_upgrade_xp", "$g_talk_troop"), (party_add_xp_to_stack, "p_main_party", ":stack", reg0), ]], [anyone|plyr,"regular_member_talk", [(ge, "$cheat_mode", 1)], "Upgrade Full Stack", "do_regular_member_view_char",[ (assign, ":stack", -1), (party_get_num_companion_stacks, ":num_of_stacks", "p_main_party"), (try_for_range, ":i", 0, ":num_of_stacks"), (party_stack_get_troop_id, ":stack_troop", "p_main_party", ":i"), (eq, ":stack_troop", "$g_talk_troop"), (assign, ":stack", ":i"), (assign, ":num_of_stacks", 0), (try_end), (neq, ":stack", -1), (call_script, "script_game_get_upgrade_xp", "$g_talk_troop"), (party_stack_get_size, reg1, "p_main_party", ":stack"), (val_mul, reg0, reg1), (party_add_xp_to_stack, "p_main_party", ":stack", reg0), ]],
I did what you said but it didn't work.Hanakoganei said:I suggest you use the .txt tweak because it doesn't require recompiling the module system.
Here's a trick you can try for the mod you're trying to edit. It might actually work:
1. Go look at the other mod's conversations.txt file. Back it up too.
2. Search for "do_regular_member_view_char" and pay attention to the numbers right after it. The first one is probably going to be 69631 but the second number will likely be different. Just in case though, copy both numbers properly.
3. Paste the .txt tweak lines at the bottom of the file. Replace the two numbers after do_regular_member_view_char with the same numbers that you see in the original file.
4. Add 2 to the number at the top of the file like they said in the instructions.
5. Save the file and try it out.
Try that first. If it doesn't work or you can't find that line there are alternatives you can search for, but we need to be sure first.
Caba`drin said:You could look in the file yourself or send it my way.
Taking
as a starting point...Caba`drin said:Code:dlga_regular_member_talk:do_regular_member_view_char 69631 1510 1 30 2 144115188075856163 1 Give_10,000_XP 1512 10 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1670 3 648518346341351424 1224979098644774912 10000 NO_VOICEOVER dlga_regular_member_talk:do_regular_member_view_char.1 69631 1510 1 30 2 144115188075856163 1 Give_100,000_XP 1512 10 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1670 3 648518346341351424 1224979098644774912 100000 NO_VOICEOVER
Check what number is where 1510 is in a line that starts
dlga_regular_member_talk:
and change 1510 to match.
Then see what number is where 1512 is in a line that has
:do_regular_member_view_char
and change 1512 to match.
4 numbers to change in total (ignore all my previous looking for 144115188075856163 type number stuff...that was junk, sorry) from the Native tweak.
Hanakoganei said:Hmm. It's hard to say for sure. But it's most likely because of the wrong ID of something. I'm pretty sure those two numbers are IDs for something but I don't understand what yet. They're either troop ID or some event ID or something. So if you make a mistake with those numbers the game might be looking for an ID of something that doesn't exist in the other mod because it's referencing the ID of something from Floris. That's why it's different from mod to mod.
dlga_regular_member_talk:do_regular_member_view_char 69631 1510 1 30 2 144115188075856163 1 Give_10,000_XP 1512 10 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1670 3 648518346341351424 1224979098644774912 10000 NO_VOICEOVER
dlga_regular_member_talk:do_regular_member_view_char.1 69631 1510 1 30 2 144115188075856163 1 Give_100,000_XP 1512 10 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1670 3 648518346341351424 1224979098644774912 100000 NO_VOICEOVER
Hanakoganei said:That 1512 is why they seem to be saying random things though. If you search for 1512 you'll probably find the line where they say I_have_nothing_against_you_man.
I just realized something though. The give 10,000 exp version instead of upgrade full stacks version should work just fine with any mod as it doesn't call any scripts whatsoever, or at least it shouldn't. It contains all of its script information in each line, in those long strings of seemingly random numbers and it gives a defined amount of exp. As long as the second number (the one we marked in red) is the correct ID and not conflicting with anything else anyway. If it matches the ID of something else, when the game gets into a situation that matches the prerequisites for this conversation (player is talking to a troop and cheat mode is on), the game will display all valid conversations starting from whatever is listed first.
I used both of the triggers in PoP and the one gives you a lot of exp to upgrade your troops but it also level up you and your companions while the other give you 35 Pendor noblemen. I am going to check it for other mods too with taking care of the troop ID thing.Hanakoganei said:Could you link to the actual post? That seems to lead to a page where people are arguing about something. D: Are you talking about this one?