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.
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
for land units, yes. But the triremes are followed by a number, should I change it to 'trireme = this', or should I just go looking for the respective province?
''trireme = 139'' means it will be spawned in Epirus which is province number 139. You can also delete ''ruler = {'' and put the number instead of ''THIS'' so that units will not be automatically assigned to the ruler.
in addition, if I added any_owned = { port = yes ... } and included a number of triremes, would that necessarily restrict it to provinces with ports?
edit: if I understand the syntax correctly, by putting 'ruler = {}' and ending any statements with THIS, aslong as ai = no is one of my triggers, is it assigning an army to my country and putting my ruler at it's head, or what?
edit2: just in case, here is the event script:
Code:
country_event = {
id = 600003
trigger = {
ai = no
any_province = {
any_empty_neighbor_province = {
barbarian_power = 1000
}
war = yes
}
}
title = "Cheat Units"
desc = "You shall recieve some units."
mean_time_to_happen = {
months = 4000
}
option = {
name = "EVTOPTA7050"
ruler = {
cavalry = THIS
cavalry = THIS
cavalry = THIS
cavalry = THIS
cavalry = THIS
heavy_infantry = THIS
heavy_infantry = THIS
heavy_infantry = THIS
heavy_infantry = THIS
heavy_infantry = THIS
archers = THIS
archers = THIS
archers = THIS
archers = THIS
archers = THIS
horse_archers = THIS
horse_archers = THIS
horse_archers = THIS
horse_archers = THIS
horse_archers = THIS
}
For my first question of my previous post, the research i have done upon the matter tells me that it might, depending on wether or not 'port = yes' can be used as something other than a trigger(not even the events i looked at could tell me that), but it would not spawn the boats in any one province with a port.
Instead it would spawn them in all provinces with ports. I have found that if you use
Code:
random_owned = {}
, it would choose a random province that you own, furthermore, if you include within the brackets
Code:
limit = { owned_by = this (newline) controlled_by = this}
and perhaps include 'port = yes', you can limit the event to any province which you own and (perhaps) control.
for my second question, yes, if you include a bunch of unit models within a group such as 'ruler = {}', by ending each of the statements with THIS, you are assigning each unit created to the ruler.
edit: if I understand the syntax correctly, by putting 'ruler = {}' and ending any statements with THIS, aslong as ai = no is one of my triggers, is it assigning an army to my country and putting my ruler at it's head, or what?[/CODE]