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

GreatWarrior

Major
38 Badges
Feb 3, 2002
575
8
  • Stellaris: Apocalypse
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings Complete
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Crusader Kings III
  • Europa Universalis IV
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Crusader Kings II
  • Europa Universalis III Complete
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
I tried making events to make my rulers really good but they wont work I don't know why here are the events I made plz help!


Code:
#############################################################
# good stuff                                                #
#############################################################
character_event = {
	id = 1177

	picture = "event_intrigue"

	trigger = { 
		condition = { type = prestige value = 2000 }
		condition = { type = gold value = 20000 }
		condition = { 
			type = or 
			condition = {
				type = is_independent
			}
			condition = {
				type = is_vassal
			}
		}
		
	}

	mean_time_to_happen = {
		months = 240

	}

	action_a = {#Ok
		effect = { type = diplomacy value = 18 }
		effect = { type = martial for = value = 18 }
		effect = { type = intrigue value = 18}
		effect = { type = stewardship value = 18}


	}
}

#########################################################
# stufffffffffffffffffffffffffffffffffff                #
#########################################################
character_event = {
	id = 1178

	picture = "event_intrigue"

	trigger = { 
		condition = { type = prestige value = 2000 }
		condition = { type = gold value = 20000 }
		condition = { 
			type = or 
			condition = {
				type = is_independent
			}
			condition = {
				type = is_vassal
			}
		}
		
	}

	mean_time_to_happen = {
		months = 240

	}

	action_a = {#Ok
		effect = { type = add_trait value = forgiving }
		effect = { type = add_trait value = energetic }
		effect = { type = add_trait value = merciful }
		effect = { type = add_trait value = wise }
		effect = { type = add_trait value = valorous }
		effect = { type = add_trait value = temperate }
		effect = { type = add_trait value = generous }
		effect = { type = add_trait value = honest }

	}
}
 
effect = { type = martial for = value = 18 }


What does the word "for" do in the line above?? :confused:
 
You could just jack their stats up by editting the save file...

Anyway:

First off, do not script with event IDs below 10000. You will very likely run into conflict with something else (and that something else could be a hardcoded event with it's own reserved ID).

Next: your event #1177 has a syntax error in the martial line of the effects. You must specify the target character for a martial increase.

Oh...and you *do* realise that this is additive, right? Those stats will each increase by 18, not be set at 18.

All those spectacular traits you want to give yourself also require a target character to be specified in the event syntax.

Please check the event effects.txt file for a listing of allowable targets.

Have fun...er....modding. ;)
 
Sonny said:
effect = { type = martial for = value = 18 }


What does the word "for" do in the line above?? :confused:
Sytax is type = martial for = [target char] value = V so it's right...he just forgot to specify the target.
 
GreatWarrior, why don't you simply change your ruler's stats in the save file? That would be much simpler than trying to script events for it.

Unless, of course, you intend to do it on a more regular basis... ;)
 
MrT said:
Sytax is type = martial for = [target char] value = V so it's right...he just forgot to specify the target.

I knew that - I was just trying to get him to take a closer look at his script.

(Actually I didn't know what was supposed to go there but I knew something was supposed to go there.) :eek:o

Thanks T.
 
How do I specify a character for the trait events and would ruler_child do for a character? I wish CK would have explenation on that one site like other paradox games did. Becuase this is pretty confusing.
 
Whats wrong now? :(

Code:
#########################################################
# Give lots of nice stuff to person :)                  #
#########################################################
character_event = {
	id = 10002

	picture = "event_intrigue"

	trigger = { 
		condition = { type = prestige value = 2000 }
		condition = { type = gold value = 20000 }
		condition = { 
			type = or 
			condition = {
				type = is_independent
			}
			condition = {
				type = is_vassal
			}
		}
		
	}

	mean_time_to_happen = {
		months = 240

	}

	action_a = {#Ok
		effect = { type = add_trait for = ruler_child value = forgiving }
		effect = { type = add_trait for = ruler_child value = energetic }
		effect = { type = add_trait for = ruler_child value = merciful }
		effect = { type = add_trait for = ruler_child value = wise }
		effect = { type = add_trait for = ruler_child value = valorous }
		effect = { type = add_trait for = ruler_child value = temperate }
		effect = { type = add_trait for = ruler_child value = generous }
		effect = { type = add_trait for = ruler_child value = honest }

	}
}
 
GreatWarrior said:
Whats wrong now? :(
Um...where did "ruler_child" come from? :confused: You can't just make up a tag, it must be fully defined in the game as being applicable to that event library.

Available tags for character events are:

  • liege
  • father
  • random_son
  • worst_son
  • best_son
  • random_neighbor
  • worst_neighbor
  • best_neighbor
  • random_vassal
  • worst_vassal
  • best_vassal
  • random_courtier
  • worst_courtier
  • best_courtier
  • random_enemy

Oh...and this should really be in the scenarios and mods forum, not the GD forum.

Moving it...
 
for = [target char] is optional.

If you want it to happen for this character, it should not be used.

ruler_child is a condition, not a [target char]

To the list of [target char] that MrT gave, you can add spouse :)

Cat