• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

FunGaming

Colonel
7 Badges
Nov 24, 2013
833
897
  • Cities: Skylines
  • Hearts of Iron IV: Cadet
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings III
  • Crusader Kings II
I have a question to all the genius modders, how would i make a simple mod that does the following.

I use a couple console commands in every game, but how would i turn that into a simple button press.

Example console command charinfo or console command allow_laws

How would i turn these into a right click button press on my character, is there a simple code that lets me do this ?
 
Console commands and script effects are not the same thing, and there often won't be a one-to-one correspondence. I don't think there is one for allow_laws. You would have to edit every law to check for a flag, that you set on yourself with a targeted decision. Definitely not a simple mod :)
 
What i mean is you got the console command allow_laws, now is there a way to turn that into a right mouse click on my characters portrait like there are so many other cheats working this way.
 
I get that, and what I mean is that such a thing would not be easy :)

Here, this is the list of console commands: https://ck2.paradoxwikis.com/Console_commands They are commands you can type in the cheat menu in-game, and it includes allow_laws.

This, however, is the list of script effects aka script commands: https://ck2.paradoxwikis.com/Commands These are the commands that you can put behind a button press. As you can see, the list is quite a bit longer and also does not hold many of the items that the first list does hold.

Making such a button would be possible, but it would be quite a bit of work because you have to replicate the effects of allow_laws without having access to the same command.