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

Klein001

First Lieutenant
13 Badges
Nov 6, 2008
217
1
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Majesty 2
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
To start off with, If it appears to you that I am breaking any rules, Please let me know so that I may correct myself.

Now then, If I wanted to create an event which would give me army and/or navy units, what would go into the coding for the option?

(i.e. how would i code a spawning of units?)
 
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.
 
personally, what I would like is a generic event which would be able to happen to any player in any country.
 
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

		}
 
Last edited:
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]

Every time I played against Epirus their leader was in command of the army, so I think you are correct here.