SvenOdinsson
30.04.12, 01:39
Hallo liebe Leute,
Ich habe vor einiger Zeit einen tieferen Blick in den Provinzevent-Code geworfen, allerdings schaue ich immer noch nicht durch manche Funktionen einiger der Zeilen durch.
Vielleicht könnt ihr mir hier ein bisschen auf die Sprünge helfen. Ich bin dabei, eine Mod "Kalmarer Union" zu schreiben und wollte, neben dem Einfügen eines Imperiums, auch ein entsprechendes kulturwechselndes Event einfügen, das nach Reichsgründung die einzelnen skandinavischen Kulturen in eine gemeinsame ändert.
Dazu fand ich das englische Pendant "The English Melting Pot". Nach vielen Versuchen des Umschreibens, bekomme ich aber immer nur leere Eventfenster, die dann ein Weiterspielen unmöglich machen.
Da von euch sicherlich auch einige das leidige Problem kennen, dass man bei eigenen Texten gerne mal fehlerblind wird, würde ich euch gerne bitten, über folgenden Code rüberzuschauen. (angefügt sind der Originalcode, wie auch weiter unten der bearbeitete.)
Als weitere Zusatzinfos: Die Eventtexte sind schon in der passenden csv.-Datei eingefügt und der entsprechende Kultureintrag wurde in die Kulturdatenbank ebenfalls schon hinterlegt.
Schonmal herzlichen Dank für eure Hilfe.
#################################################
#
# PROVINCE EVENTS AND EVENTS AFFECTING PROVINCES
#
#################################################
# Province culture changes
character_event = {
id = 55000
desc = "EVTDESC55000"
picture = GFX_evt_throne_room #Placeholder
only_rulers = yes
trigger = {
any_demesne_province = {
NOT = { culture = ROOT }
any_neighbor_province = {
culture = ROOT
owner = { culture = ROOT }
}
}
}
mean_time_to_happen = {
months = 600
modifier = {
factor = 1.5
NOT = { stewardship = 2 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 3 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 4 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 5 }
}
modifier = {
factor = 0.75
stewardship = 10
}
modifier = {
factor = 0.75
stewardship = 11
}
modifier = {
factor = 0.75
stewardship = 12
}
modifier = {
factor = 0.75
stewardship = 13
}
}
option = {
name = "EVTOPTA55000"
random_demesne_province = {
limit = {
NOT = { culture = ROOT }
any_neighbor_province = {
culture = ROOT
owner = { culture = ROOT }
}
}
culture = ROOT
}
}
}
# Bring in some settlers
character_event = {
id = 55001
desc = "EVTDESC55001"
picture = GFX_evt_carriage
only_rulers = yes
trigger = {
any_demesne_province = {
NOT = { culture = ROOT }
NOT = { religion_group = ROOT }
NOT = {
any_neighbor_province = {
culture = ROOT
owner = { culture = ROOT }
}
}
}
}
mean_time_to_happen = {
months = 600
modifier = {
factor = 1.5
NOT = { stewardship = 2 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 3 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 4 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 5 }
}
modifier = {
factor = 0.75
stewardship = 10
}
modifier = {
factor = 0.75
stewardship = 11
}
modifier = {
factor = 0.75
stewardship = 12
}
modifier = {
factor = 0.75
stewardship = 13
}
modifier = {
factor = 0.5
culture = turkish
}
modifier = {
factor = 0.5
culture = mongol
}
}
option = {
name = "EVTOPTA55001"
random_demesne_province = {
limit = {
NOT = { culture = ROOT }
NOT = { religion_group = ROOT }
NOT = {
any_neighbor_province = {
culture = ROOT
owner = { culture = ROOT }
}
}
}
culture = ROOT
}
}
}
# The English Melting Pot
character_event = {
id = 55002
desc = "EVTDESC55002"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = norman
any_demesne_province = {
kingdom = {
title = k_england
}
culture = saxon
}
}
mean_time_to_happen = {
months = 1200
modifier = {
factor = 0.75
learning = 7
}
modifier = {
factor = 0.75
learning = 9
}
modifier = {
factor = 0.75
learning = 11
}
modifier = {
factor = 0.75
learning = 13
}
modifier = {
factor = 1.5
NOT = { learning = 5 }
}
modifier = {
factor = 1.5
NOT = { learning = 3 }
}
modifier = {
factor = 2.0
NOT = { learning = 1 }
}
}
option = {
name = "EVTOPTA55002"
culture = english
random_demesne_province = {
limit = {
kingdom = {
title = k_england
}
culture = saxon
}
culture = english
}
}
}
# It's spreading
character_event = {
id = 55003
desc = "EVTDESC55003"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = english
any_demesne_province = {
kingdom = {
title = k_england
}
OR = {
culture = saxon
culture = norman
}
}
}
mean_time_to_happen = {
months = 720
}
option = {
name = "EVTOPTA55003"
random_demesne_province = {
limit = {
kingdom = {
title = k_england
}
OR = {
culture = saxon
culture = norman
}
}
culture = english
}
}
}
#Make my court speak English
character_event = {
id = 55004
desc = "EVTDESC55004"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = english
top_liege = {
primary_title = {
title = k_england
}
}
any_courtier = {
OR = {
culture = saxon
culture = norman
}
}
}
mean_time_to_happen = {
months = 120
}
option = {
name = "EVTOPTA55004"
random_courtier = {
limit = {
OR = {
culture = saxon
culture = norman
}
}
culture = english
hidden_tooltip = {
character_event = { id = 55006 days = 3 }
}
}
}
}
#Make my vassal speak English
character_event = {
id = 55005
desc = "EVTDESC55005"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = english
top_liege = {
primary_title = {
title = k_england
}
}
any_vassal = {
OR = {
culture = saxon
culture = norman
}
}
}
mean_time_to_happen = {
months = 720
}
option = {
name = "EVTOPTA55005"
random_vassal = {
limit = {
OR = {
culture = saxon
culture = norman
}
}
culture = english
hidden_tooltip = {
character_event = { id = 55006 days = 3 }
}
}
}
}
character_event = {
id = 55006
desc = "EVTDESC55006"
picture = GFX_evt_throne_room
is_triggered_only = yes
option = {
name = "EVTOPTA55006"
culture = english
}
}
# The Nordic Melting Pot
character_event = {
id = 55007
desc = "EVTDESC55007"
picture = GFX_evt_throne_room
trigger = {
year = 1100
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
any_demesne_province = {
kingdom = {
title = e_scandinavia
}
culture = nordic
}
}
mean_time_to_happen = {
months = 600
modifier = {
factor = 0.75
learning = 7
}
modifier = {
factor = 0.75
learning = 9
}
modifier = {
factor = 0.75
learning = 11
}
modifier = {
factor = 0.75
learning = 13
}
modifier = {
factor = 1.5
NOT = { learning = 5 }
}
modifier = {
factor = 1.5
NOT = { learning = 3 }
}
modifier = {
factor = 2.0
NOT = { learning = 1 }
}
}
option = {
name = "EVTOPTA55007"
culture = nordic
random_demesne_province = {
limit = {
empire = {
title = e_scandinavia
}
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
culture = nordic
}
}
}
# It's spreading
character_event = {
id = 55008
desc = "EVTDESC55008"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = nordic
any_demesne_province = {
empire = {
title = e_scandinavia
}
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
}
mean_time_to_happen = {
months = 600
}
option = {
name = "EVTOPTA55008"
random_demesne_province = {
limit = {
empire = {
title = e_scandinavia
}
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
culture = nordic
}
}
}
#Make my court speak English
character_event = {
id = 55009
desc = "EVTDESC55009"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = nordic
top_liege = {
primary_title = {
title = e_scandinavia
}
}
any_courtier = {
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
}
mean_time_to_happen = {
months = 120
}
option = {
name = "EVTOPTA55009"
random_courtier = {
limit = {
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
culture = nordic
hidden_tooltip = {
character_event = { id = 55009 days = 3 }
}
}
}
}
#Make my vassal speak English
character_event = {
id = 55010
desc = "EVTDESC55010"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = nordic
top_liege = {
primary_title = {
title = e_scandinavia
}
}
any_vassal = {
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
}
mean_time_to_happen = {
months = 720
}
option = {
name = "EVTOPTA55010"
random_vassal = {
limit = {
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
}
}
culture = nordic
hidden_tooltip = {
character_event = { id = 55006 days = 3 }
}
}
}
}
character_event = {
id = 55011
desc = "EVTDESC55011"
picture = GFX_evt_throne_room
is_triggered_only = yes
option = {
name = "EVTOPTA55011"
culture = nordic
}
}
Ich habe vor einiger Zeit einen tieferen Blick in den Provinzevent-Code geworfen, allerdings schaue ich immer noch nicht durch manche Funktionen einiger der Zeilen durch.
Vielleicht könnt ihr mir hier ein bisschen auf die Sprünge helfen. Ich bin dabei, eine Mod "Kalmarer Union" zu schreiben und wollte, neben dem Einfügen eines Imperiums, auch ein entsprechendes kulturwechselndes Event einfügen, das nach Reichsgründung die einzelnen skandinavischen Kulturen in eine gemeinsame ändert.
Dazu fand ich das englische Pendant "The English Melting Pot". Nach vielen Versuchen des Umschreibens, bekomme ich aber immer nur leere Eventfenster, die dann ein Weiterspielen unmöglich machen.
Da von euch sicherlich auch einige das leidige Problem kennen, dass man bei eigenen Texten gerne mal fehlerblind wird, würde ich euch gerne bitten, über folgenden Code rüberzuschauen. (angefügt sind der Originalcode, wie auch weiter unten der bearbeitete.)
Als weitere Zusatzinfos: Die Eventtexte sind schon in der passenden csv.-Datei eingefügt und der entsprechende Kultureintrag wurde in die Kulturdatenbank ebenfalls schon hinterlegt.
Schonmal herzlichen Dank für eure Hilfe.
#################################################
#
# PROVINCE EVENTS AND EVENTS AFFECTING PROVINCES
#
#################################################
# Province culture changes
character_event = {
id = 55000
desc = "EVTDESC55000"
picture = GFX_evt_throne_room #Placeholder
only_rulers = yes
trigger = {
any_demesne_province = {
NOT = { culture = ROOT }
any_neighbor_province = {
culture = ROOT
owner = { culture = ROOT }
}
}
}
mean_time_to_happen = {
months = 600
modifier = {
factor = 1.5
NOT = { stewardship = 2 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 3 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 4 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 5 }
}
modifier = {
factor = 0.75
stewardship = 10
}
modifier = {
factor = 0.75
stewardship = 11
}
modifier = {
factor = 0.75
stewardship = 12
}
modifier = {
factor = 0.75
stewardship = 13
}
}
option = {
name = "EVTOPTA55000"
random_demesne_province = {
limit = {
NOT = { culture = ROOT }
any_neighbor_province = {
culture = ROOT
owner = { culture = ROOT }
}
}
culture = ROOT
}
}
}
# Bring in some settlers
character_event = {
id = 55001
desc = "EVTDESC55001"
picture = GFX_evt_carriage
only_rulers = yes
trigger = {
any_demesne_province = {
NOT = { culture = ROOT }
NOT = { religion_group = ROOT }
NOT = {
any_neighbor_province = {
culture = ROOT
owner = { culture = ROOT }
}
}
}
}
mean_time_to_happen = {
months = 600
modifier = {
factor = 1.5
NOT = { stewardship = 2 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 3 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 4 }
}
modifier = {
factor = 1.5
NOT = { stewardship = 5 }
}
modifier = {
factor = 0.75
stewardship = 10
}
modifier = {
factor = 0.75
stewardship = 11
}
modifier = {
factor = 0.75
stewardship = 12
}
modifier = {
factor = 0.75
stewardship = 13
}
modifier = {
factor = 0.5
culture = turkish
}
modifier = {
factor = 0.5
culture = mongol
}
}
option = {
name = "EVTOPTA55001"
random_demesne_province = {
limit = {
NOT = { culture = ROOT }
NOT = { religion_group = ROOT }
NOT = {
any_neighbor_province = {
culture = ROOT
owner = { culture = ROOT }
}
}
}
culture = ROOT
}
}
}
# The English Melting Pot
character_event = {
id = 55002
desc = "EVTDESC55002"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = norman
any_demesne_province = {
kingdom = {
title = k_england
}
culture = saxon
}
}
mean_time_to_happen = {
months = 1200
modifier = {
factor = 0.75
learning = 7
}
modifier = {
factor = 0.75
learning = 9
}
modifier = {
factor = 0.75
learning = 11
}
modifier = {
factor = 0.75
learning = 13
}
modifier = {
factor = 1.5
NOT = { learning = 5 }
}
modifier = {
factor = 1.5
NOT = { learning = 3 }
}
modifier = {
factor = 2.0
NOT = { learning = 1 }
}
}
option = {
name = "EVTOPTA55002"
culture = english
random_demesne_province = {
limit = {
kingdom = {
title = k_england
}
culture = saxon
}
culture = english
}
}
}
# It's spreading
character_event = {
id = 55003
desc = "EVTDESC55003"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = english
any_demesne_province = {
kingdom = {
title = k_england
}
OR = {
culture = saxon
culture = norman
}
}
}
mean_time_to_happen = {
months = 720
}
option = {
name = "EVTOPTA55003"
random_demesne_province = {
limit = {
kingdom = {
title = k_england
}
OR = {
culture = saxon
culture = norman
}
}
culture = english
}
}
}
#Make my court speak English
character_event = {
id = 55004
desc = "EVTDESC55004"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = english
top_liege = {
primary_title = {
title = k_england
}
}
any_courtier = {
OR = {
culture = saxon
culture = norman
}
}
}
mean_time_to_happen = {
months = 120
}
option = {
name = "EVTOPTA55004"
random_courtier = {
limit = {
OR = {
culture = saxon
culture = norman
}
}
culture = english
hidden_tooltip = {
character_event = { id = 55006 days = 3 }
}
}
}
}
#Make my vassal speak English
character_event = {
id = 55005
desc = "EVTDESC55005"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = english
top_liege = {
primary_title = {
title = k_england
}
}
any_vassal = {
OR = {
culture = saxon
culture = norman
}
}
}
mean_time_to_happen = {
months = 720
}
option = {
name = "EVTOPTA55005"
random_vassal = {
limit = {
OR = {
culture = saxon
culture = norman
}
}
culture = english
hidden_tooltip = {
character_event = { id = 55006 days = 3 }
}
}
}
}
character_event = {
id = 55006
desc = "EVTDESC55006"
picture = GFX_evt_throne_room
is_triggered_only = yes
option = {
name = "EVTOPTA55006"
culture = english
}
}
# The Nordic Melting Pot
character_event = {
id = 55007
desc = "EVTDESC55007"
picture = GFX_evt_throne_room
trigger = {
year = 1100
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
any_demesne_province = {
kingdom = {
title = e_scandinavia
}
culture = nordic
}
}
mean_time_to_happen = {
months = 600
modifier = {
factor = 0.75
learning = 7
}
modifier = {
factor = 0.75
learning = 9
}
modifier = {
factor = 0.75
learning = 11
}
modifier = {
factor = 0.75
learning = 13
}
modifier = {
factor = 1.5
NOT = { learning = 5 }
}
modifier = {
factor = 1.5
NOT = { learning = 3 }
}
modifier = {
factor = 2.0
NOT = { learning = 1 }
}
}
option = {
name = "EVTOPTA55007"
culture = nordic
random_demesne_province = {
limit = {
empire = {
title = e_scandinavia
}
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
culture = nordic
}
}
}
# It's spreading
character_event = {
id = 55008
desc = "EVTDESC55008"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = nordic
any_demesne_province = {
empire = {
title = e_scandinavia
}
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
}
mean_time_to_happen = {
months = 600
}
option = {
name = "EVTOPTA55008"
random_demesne_province = {
limit = {
empire = {
title = e_scandinavia
}
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
culture = nordic
}
}
}
#Make my court speak English
character_event = {
id = 55009
desc = "EVTDESC55009"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = nordic
top_liege = {
primary_title = {
title = e_scandinavia
}
}
any_courtier = {
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
}
mean_time_to_happen = {
months = 120
}
option = {
name = "EVTOPTA55009"
random_courtier = {
limit = {
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
culture = nordic
hidden_tooltip = {
character_event = { id = 55009 days = 3 }
}
}
}
}
#Make my vassal speak English
character_event = {
id = 55010
desc = "EVTDESC55010"
picture = GFX_evt_throne_room
trigger = {
year = 1100
culture = nordic
top_liege = {
primary_title = {
title = e_scandinavia
}
}
any_vassal = {
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
culture = lappish
}
}
}
mean_time_to_happen = {
months = 720
}
option = {
name = "EVTOPTA55010"
random_vassal = {
limit = {
OR = {
culture = danish
culture = norwegian
culture = swedish
culture = finnish
}
}
culture = nordic
hidden_tooltip = {
character_event = { id = 55006 days = 3 }
}
}
}
}
character_event = {
id = 55011
desc = "EVTDESC55011"
picture = GFX_evt_throne_room
is_triggered_only = yes
option = {
name = "EVTOPTA55011"
culture = nordic
}
}