• 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.

Hideous

Major
108 Badges
May 28, 2002
722
543
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • BATTLETECH
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • BATTLETECH - Digital Deluxe Edition
  • Imperator: Rome Sign Up
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Stellaris: Federations
  • Hearts of Iron IV: La Resistance
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Imperator: Rome
  • Prison Architect
I have no modding experience beyond editing values in existing files and I can't find any "modding Crusader Kings 2 for simpletons" guide. I mostly play Byzantium and during the three games that I have played them not even once have I been attacked by anyone (I never did get up to mongols tho). I'd like to see my enemies be much much more stronger.

I'd like to see following effects ingame, be it by events or whatever modifier:
1. Less revolts for muslim nations. I thought ideal would be +50 relationship bonus between muslim ruler and his vassals.
2. Bonus magic troops for Pechenegs, maybe some mercenaries only they can hire for free.
3. Negative relations bonus for ruler of Hungary, HRE, Papal States and maybe even France towards Byz ruler. Some events where they get free claims on Byz if its their neighbour would be truly great too.
4. Random event where if Byz is at war neighbours start another war if they are at peace, have proper claims or option for holy war.

I'm going to go look the game files more if there is anything I can find there but I thought Id post if anyone has pointers and/or time to help on how to start making these since as said I don't really know how to make these things from scratch and I can't find proper guide. Anyother ideas to beef up the enemies of the empire is welcome too.

So if anyone can help, Id really appreciate it.
 
1 & 3 are very doable but kind of tricky because you want to get an opinion_modifier on very specific people but all of them that might ever exist.

For 1 & 3 I would maybe make an event that adds an opinion modifier to the people you want to have dislike the Byzantine ruler. Take a look at the crusade_events, the very first one "Arriving at the crusade". It adds a trait Crusader. You basically want to do the same thing except an opinion_modifier. You'd want to change the trigger so that the person is one of the people you want to add it to.

The trigger for 1 should be relatively easy, it is just a check to see if they're muslim and a ruler and a vassal of a ruler.

For 2, I have no idea.
For 4, again it is just an event, with the proper trigger (Byz at war). Check the cb_type.txt for some examples of triggering a CB when the proper conditions are met. That should help you write the trigger.
 
Okay, thanks, that was a lot of useful info. For 2 I got the idea from the Varangian Guard for Byzantine Empire, the mercenary unit they can instead of hiring raise. I was able to find the mercenary unit sizes in static_modifiers. But havent located the info how to tie them to someone or set the price.

I decided to start with adding the relations bonus for muslims first since the cb_type.txt looks too advanced for me right now. So I have to do two things, write an event and ad a trait. Couple of questions regarding that, first I am not sure what is proper trigger so that the person to whom the event fires is either vassal or ruler. Secondly whatelse or where else is there information in regards of traits since I don't see anyway to modify which icon the trait uses in the traits.txt and the save file uses numbers for traits so I don't know how to assign number for any trait I might add.
 
Writing the triggers is the hard part.

So lets start with the opinion modifier. Below is how you add an opinion modifier. Obviously, yours will not be scheming bastard but will be "Muslim Unity! Woot!" or whatever you decide to call it. There is no icon for an opinion modifier, so just copy and paste an existing opinion modifier and rename it.

Code:
opinion = {
modifier = scheming_bastard
	who = ROOT
	months = 1200
}

As for the trigger...poke around through the event files looking at existing triggers. You're going to need things like "is_ruler", "is_vassal_or_lower" or "is_liege".
 
# Muslim friends
character_event = {
id = 85001

trigger = {
religion = sunni
is_vassal

}

mean_time_to_happen = {
months = 1
}

option = {
name = "EXCELLENT"
opinion = {
modifier = muslim
who = liege
months = 1200
}
}
}

After some trial and error I got it to work but now it keeps triggering repeatedly. I tried to use opinion and reverse_opinion commands to prevent it firing after vassals opinion is over 50, but that didnt work, tho ideal would be if it just fired once per characther. How to make it trigger once per character?
 
I wonder if it can be limited to Tengri alone so only cumans and pechenegs could recruit them. I don't necessarely want to see all the baltic or finnish tribes using those mercs.
 
You can remove the "option" and make it an "immediate" , that way there will be no pop-up for a human player (if for some reason a human player was playing as a muslim).

But to your specific question, add to your trigger

Code:
NOT = { has_opinion_modifier = muslim }

and that should do it as that should prevent it from triggering if they already have the modifier.
 
Code:
# Muslim friends
character_event = {
	id = 85001
	
	trigger = {
		religion = sunni
		is_vassal
		NOT = { has_opinion_modifier = muslim }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	immediate = {
		name = "EXCELLENT"
			opinion = {
			modifier = muslim
			who = liege
			months = 1200
		}
	}
}

Unfortunately with that line the event stops firing all together. I tried some different combinations too but I can't figure out whats wrong.

I also tried to make event that gives negative penalty to the king of Hungary towards Byzantine. I get the event to fire for the proper person but I don't know how to make the negative opinion target the Byz Emperor.

Code:
immediate = {
		opinion = {
		modifier = despicable_emperor
		who = { 
			primary_title = {
				title = e_byzantium
			}
		}
		months = 1200
	}