If you're using net reflector, you can follow the reference tree so you can see what it's being used by. I'm sure there's something similar for whatever decompiler you use.
Take a look at ClanFinanceModel, it has some overrideable methods like CalculateClanIncome() that will be at least a part of a mod that wants to change this.
http://www.blackwasp.co.uk/ReflectionInvokeMethods.aspx that's a straightforward and uncomplicated tutorial on how to invoke methods in your own code. Invoking that method is only part of it though. As mentioned earlier, you'll need to patch other parts of the game, depending on where/what...
On my phone right now, but the AI behavior is decided on every hourly tick, so you may need to look into that. Using a debugger is helpful for situations like this.
Setting a breakpoint and use the VS debugger would be my suggestion. The game will completely pause until you click "Continue" in the IDE.
See my post here if you're not sure how to set VS to debug the game...
This is not a problem with the language of C#, it's a problem with there being no devtools for bannerlord at the moment. Because guess what? Even if we were using Perl,Python,Ruby,Javascript, etc. right now, we'd still need to hook into the game's internal code, and compile it to a .dll somehow...
You would do well to go through free CS101 classes online, or even something from udemy on C#. All of the things that confuse you would be answered with a mere week of study. People here have been pretty patient with you imo, you should either put in a week of learning to mod this game, or wait...
Yes... What exactly is the argument here? I was agreeing with you lol.
Edit: I understand. I was missing a comma, which makes a world of difference in this case. Anyway, I was crediting you for having already mentioned that, so no worries! Edited my post above.
It can be done, just not in .xml, as Capalin already mentioned. You can find my explanation of the recruitment system workings here:https://forums.taleworlds.com/index.php?threads/1-0-4-prisoner-conformity-bar-bugged.401841/#post-9299751
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.