Hi all
I'm playing EU:R again after a break from the forums. What's more, I'm taking my first steps into modding and so far I'm loving it.
My goal is to flesh out the Rome-Carthage conflict in the main campaign a bit, with some events and a few specific missions.
I started by coding an event in Sicily, fired it from the console, and it worked like a charm.
I then tried to break down the old mission for Rome ("Break the Carthaginians") into smaller parts. However, I can't for the life of me figure out the command to fire my mission from the console, to see if it works.
Can any of you modding experts help me out? Maybe I should copy my new mission right here...
As you can see, I included a title and description.
Can I leave it there, or should I move it over to the localisation folder (and what does this folder do, exactly?)
Any help kindly appreciated!
I'm playing EU:R again after a break from the forums. What's more, I'm taking my first steps into modding and so far I'm loving it.
My goal is to flesh out the Rome-Carthage conflict in the main campaign a bit, with some events and a few specific missions.
I started by coding an event in Sicily, fired it from the console, and it worked like a charm.
I then tried to break down the old mission for Rome ("Break the Carthaginians") into smaller parts. However, I can't for the life of me figure out the command to fire my mission from the console, to see if it works.
Can any of you modding experts help me out? Maybe I should copy my new mission right here...
Code:
drive_the_carthaginians_from_corsica_and_sardinia = {
type = country
duration = 20 # Player has 20 years to complete this mission
allow = {
tag = ROM
exists = CAR
not = { war_with = CAR }
not = { alliance_with = CAR }
owns = 90 # Etruria
owns = 91 # Umbria
owns = 92 # Picenum
owns = 93 # Roma
owns = 94 # Samnium
owns = 95 # Campania
owns = 96 # Lucania
owns = 97 # Apulia
owns = 98 # Tarentum
owns = 99 # Ager Bruttius
CAR = { owns = 247 } # Carthage
CAR = { owns = 102 } # Sardinia
CAR = { owns = 104 } # Corsica
title = "Drive the Carthaginians from Corsica and Sardinia"
desc = "The islands of Corsica and Sardinia lie within our sphere of influence, but our rival rules them. Time to stop this. Seize control of Corsica and Sardinia."
}
abort = {
not = { exists = CAR }
}
success = {
controls = 102
controls = 104
}
chance = {
factor = 1000
modifier = {
factor = 1.5
not = { relation = { who = CAR value = 0 } }
}
modifier = {
factor = 1.5
not = { relation = { who = CAR value = -100 } }
}
modifier = {
factor = 1.5
controls = 100 # Already controls Syracusae
}
modifier = {
factor = 1.5
controls = 101 # Already controls Panormus
}
}
# The effect always has country scope (for the country that gets the mission)
effect = {
ruler = {
change_martial = 1
popularity = 10
}
treasury = 80
war_exhaustion = -3
}
fail_effect = {
ruler = {
prominence = -5
popularity = -10
}
treasury = -40
}
}
As you can see, I included a title and description.
Can I leave it there, or should I move it over to the localisation folder (and what does this folder do, exactly?)
Any help kindly appreciated!