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

thunderhawk

Second Lieutenant
Dec 7, 2006
113
0
I scripted a set of events to create an explorer in the Baltic. My application is in the Baltic, but the idea could be used in the Med, Indian ocean, etc..
(Note: I use MyMap AGCEEP, but the concept could be applied to other maps/mods)


I like my set, but Im looking for suggestions for tweaks and changes, and constructive criticism.

If your going to complain about "historical inaccuracies" then back up your comment by proof that no one in the Baltic could have been an "explorer" :D



The concept is this:
The Baltic sea had its fair share of experianced naval men, merchants, travelers and ship builders. The Baltic sea itself is rather inhospitable at time. Not as severe as the North Atlantic, but a similarly harsh climate. Its my opinion that an explorer in the region *could* have emerged. Not one explorer for everyone though - just one explorer for hire in whole of the Baltic sea.

- This event and 4 others just like it for 4 other "major" ports of the Baltic I dub "part 1"

The five major ports are:
# 301 Danzig
# 307 Kobenhavn
# 308 Gotload
# 254 Stockholm
# 1585 Riga

"part 1"
Code:
# Danzig 
event = {
	id = 338300
	trigger = {
		naval = 4 
		NOT = {
		event = 338301
		event = 338302
		event = 338303
		event = 338304  
# these 4 other events are identicle to this showcased event, but for each of the other ports
# the person who triggers this event gets the first shot at getting the explorer, but (s)he can still pass on the offer and let the others have a shot.
		}
	}
	random = no
	province = 301 
	name = "Baltic explorer, Danzig."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely to busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1540 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338305 }
		command = { type = trade   value = 1 }
	}
# triggers another event, the explorer "wanders to another port looking for a patron"

	action_b = {
		name = "his insanity may trigger a revolt.. imprison him"
		command = { type = merchants   value = -1 }
	}
	action_c = {
		name = "Id rather have more merchants"
		command = { type = merchants   value = 2 }	
		command = { type = treasury value = -5 }
	}
# incase you want to stop others from getting the explorer, but dont want him yourself.

	action_d = {
		name = "hire this explorer"
		command = { type = explorer   which = 301 }	
		command = { type = transports   which = 301 value = 4 }
		command = { type = treasury value = -200 }
	}
# you hire him and fund an expedition fleet
}




If action_a is choosen in "part 1" it triggers the wandering explorer events: "part 2"
These 5 events are indenticle, but are based on the explorer leaving one port and traveling to the next, to the next, ... then finally back to the original (where it completes and ends the circle).

You'll notice the actions are basically identicle to those in "part 1" but no triggers or sparks. This set is triggered and sparked by action_a in "part 1" .

"part 2"
Code:
# left Danzig for Kobenhavn
event = {
	id = 338305
	random = no
	province = 307 
	name = "Wandering Baltic explorer"
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."
	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338306 }
		command = { type = trade   value = 1 }
	}
# leaves Kobenhavn (307) to Gotload (308)


	action_b = {
		name = "his insanity may trigger a revolt.. imprison him"
		command = { type = merchants   value = -1 }
	}
	action_c = {
		name = "Id rather have more merchants"
		command = { type = merchants   value = 2 }	
		command = { type = treasury value = -5 }
	}
	action_d = {
		name = "hire this explorer"
		command = { type = explorer   which = 307 }	
		command = { type = transports   which = 307 value = 4 }
		command = { type = treasury value = -200 }
	}
}

Regardless of which port in "part 1" triggers the "part 2" events, each port gets a shot (including the initial port) in "part 2"






Im thinking I could reduce this to only 5 events. Basically "part 1" but instend of having the "NOT = { events ...} in the trigger, I would use "sleepevents" in actions_b,c,d if the explorer is hired/imprisoned.


Im also thinking of changing/combining action_b and action_c as it seems like an easy way to kill a potential explorer if you dont want him yourself.

action_b/c:
"Imprison this madman!"
land slinder +1
Mercantalism +1
Innovative -1
Revolt in the province x2
revoltrisk +3, for 1 year
[Something more/less??]





Comments?
Suggestions?
 
Last edited:
I like the idea. The baltic sea had lots of sailors and captains and was integral for the Hanseatic league. AGCEEP for example has 4 random events that grant explorers.

However here is my criticism:

1) The event fires for the province regardless if the owner of the province at that moment actually controls the province - it might be occupied by an enemy army. I would suggest that you add the control trigger so that the owner also has control of the port for the event to fire.

2) The naval value you require is the minimum to have transports. AGCEEP for example however requires naval tech 11 to gain a random explorer, for 2 of the random events even naval tech 18 - perhaps something in between?

3) I would give only 1 ship, if at all, with the event that grants the explorer. Building ships after all every player can do himself - and the costs will vary greatly if he goes naval or land with the domestic sliders. 200 ducats for an explorer AND 4 transports is too cheap ;)

4) I would require a minimum stability - if you are short before facing a civil war then you won´t put much effort into exploring far distant lands. Perhaps the trigger that stability must be at least +1?
 
Let me remind you of Danish and Swedish explorers. ;) Both countries did alot of colonising so it is after all historical, but those are already in the leaders files.

About the scripting I would say you should tweak alot of things. Like:

Code:
	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338305 }
		command = { type = trade   value = [COLOR=SandyBrown]1[/COLOR] }
	}

Why get that low a tech boost? And why at all get a trade boost for sending an explorer away?

If I was you I would use DP changes instead of tech boosts.

Option B and C should be tweaked as you wrote. you can lose a merchant or lose 5 ducats(Really cheap!) and gain 2 merchants..
 
I realize that options b and c are weird, I really had no serious thoughts about them at the time, just weird "might have been" outcomes.

Should I bother with alternatives at all though?
Hire explorer, send him on his way.. and other?
If there is no "other" option then it sets up a situation that another nation may get him If you dont buy him. If there is an "other" option, Im torn between making it a large negative (you are effectively keeping an explorer from falling into other nation's hands) and making it largely indifferent as I dont want to penalize the computer much if it chooses that other option.
 
UPDATE:



Code:
# Danzig
event = {
	id = 338450
	trigger = {
		OR = {
			event = 338454
			naval = 7
		}
	}
	random = no
	province = 301 
	name = "Baltic explorer, Danzig."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1640 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338451 }
		command = { type = domestic   which = mercantilism value = 1 }
		command = { type = domestic   which = land value = 1 }
	}
	action_b = {
		name = "hire this explorer"
		command = { type = explorer   which = 301 }	
		command = { type = treasury value = -150 }
		command = { type = domestic   which = land value = -1 }
		command = { type = merchants   value = -3 }
		command = { type = sleepevent   which = 338451 }
		command = { type = sleepevent   which = 338452 }
		command = { type = sleepevent   which = 338453 }
		command = { type = sleepevent   which = 338454 }
	}
}


# 307 Kobenhavn
event = {
	id = 338451
	trigger = {
		OR = {
			event = 338450
			naval = 7
		}
	}
	random = no
	province = 307 
	name = "Baltic explorer, Kobenhavn."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1640 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338452 }
		command = { type = domestic   which = mercantilism value = 1 }
		command = { type = domestic   which = land value = 1 }
	}
	action_b = {
		name = "hire this explorer"
		command = { type = explorer   which = 307 }	
		command = { type = treasury value = -150 }
		command = { type = domestic   which = land value = -1 }
		command = { type = merchants   value = -3 }
		command = { type = sleepevent   which = 338450 }
		command = { type = sleepevent   which = 338452 }
		command = { type = sleepevent   which = 338453 }
		command = { type = sleepevent   which = 338454 }
	}
}


# 254 Stockholm
event = {
	id = 338452
	trigger = {
		OR = {
			event = 338451
			naval = 7
		}
	}
	random = no
	province = 254 
	name = "Baltic explorer, Stockholm."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1640 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338453 }
		command = { type = domestic   which = mercantilism value = 1 }
		command = { type = domestic   which = land value = 1 }
	}
	action_b = {
		name = "hire this explorer"
		command = { type = explorer   which = 254 }	
		command = { type = treasury value = -150 }
		command = { type = domestic   which = land value = -1 }
		command = { type = merchants   value = -3 }
		command = { type = sleepevent   which = 338450 }
		command = { type = sleepevent   which = 338451 }
		command = { type = sleepevent   which = 338453 }
		command = { type = sleepevent   which = 338454 }
	}
}


# 275 ingerhamland
event = {
	id = 338453
	trigger = {
		OR = {
			event = 338452
			naval = 7
		}
	}
	random = no
	province = 275 
	name = "Baltic explorer, Ingerhamland."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1640 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338454 }
		command = { type = domestic   which = mercantilism value = 1 }
		command = { type = domestic   which = land value = 1 }
	}
	action_b = {
		name = "hire this explorer"
		command = { type = explorer   which = 275 }	
		command = { type = treasury value = -150 }
		command = { type = domestic   which = land value = -1 }
		command = { type = merchants   value = -3 }
		command = { type = sleepevent   which = 338450 }
		command = { type = sleepevent   which = 338451 }
		command = { type = sleepevent   which = 338452 }
		command = { type = sleepevent   which = 338454 }
	}
}


# 283 Kurland
event = {
	id = 338454
	trigger = {
		OR = {
			event = 338453
			naval = 7
		}
	}
	random = no
	province = 283 
	name = "Baltic explorer, Kurland."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1640 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338450 }
		command = { type = domestic   which = mercantilism value = 1 }
		command = { type = domestic   which = land value = 1 }
	}
	action_b = {
		name = "hire this explorer"
		command = { type = explorer   which = 283 }	
		command = { type = treasury value = -150 }
		command = { type = domestic   which = land value = -1 }
		command = { type = merchants   value = -3 }
		command = { type = sleepevent   which = 338451 }
		command = { type = sleepevent   which = 338452 }
		command = { type = sleepevent   which = 338453 }
		command = { type = sleepevent   which = 338450 }
	}
}






# Danzig
event = {
	id = 338455
	trigger = {
		OR = {
			event = 338459
			naval = 13
		}
	}
	random = no
	province = 301 
	name = "Baltic explorer, Danzig."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1740 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338456 }
		command = { type = domestic   which = mercantilism value = 1 }
		command = { type = domestic   which = land value = 1 }
	}
	action_b = {
		name = "hire this explorer"
		command = { type = explorer   which = 301 }	
		command = { type = treasury value = -150 }
		command = { type = domestic   which = land value = -1 }
		command = { type = merchants   value = -3 }
		command = { type = sleepevent   which = 338456 }
		command = { type = sleepevent   which = 338457 }
		command = { type = sleepevent   which = 338458 }
		command = { type = sleepevent   which = 338459 }
	}
}


# 307 Kobenhavn
event = {
	id = 338456
	trigger = {
		OR = {
			event = 338455
			naval = 13
		}
	}
	random = no
	province = 307 
	name = "Baltic explorer, Kobenhavn."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1740 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338457 }
		command = { type = domestic   which = mercantilism value = 1 }
		command = { type = domestic   which = land value = 1 }
	}
	action_b = {
		name = "hire this explorer"
		command = { type = explorer   which = 307 }	
		command = { type = treasury value = -150 }
		command = { type = domestic   which = land value = -1 }
		command = { type = merchants   value = -3 }
		command = { type = sleepevent   which = 338455 }
		command = { type = sleepevent   which = 338457 }
		command = { type = sleepevent   which = 338458 }
		command = { type = sleepevent   which = 338459 }
	}
}


# 254 Stockholm
event = {
	id = 338457
	trigger = {
		OR = {
			event = 338456
			naval = 13
		}
	}
	random = no
	province = 254 
	name = "Baltic explorer, Stockholm."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1740 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338458 }
		command = { type = domestic   which = mercantilism value = 1 }
		command = { type = domestic   which = land value = 1 }
	}
	action_b = {
		name = "hire this explorer"
		command = { type = explorer   which = 254 }	
		command = { type = treasury value = -150 }
		command = { type = domestic   which = land value = -1 }
		command = { type = merchants   value = -3 }
		command = { type = sleepevent   which = 338455 }
		command = { type = sleepevent   which = 338456 }
		command = { type = sleepevent   which = 338458 }
		command = { type = sleepevent   which = 338459 }
	}
}


# 275 ingerhamland
event = {
	id = 338458
	trigger = {
		OR = {
			event = 338457
			naval = 13
		}
	}
	random = no
	province = 275 
	name = "Baltic explorer, Ingerhamland."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1640 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338459 }
		command = { type = domestic   which = mercantilism value = 1 }
		command = { type = domestic   which = land value = 1 }
	}
	action_b = {
		name = "hire this explorer"
		command = { type = explorer   which = 275 }	
		command = { type = treasury value = -150 }
		command = { type = domestic   which = land value = -1 }
		command = { type = merchants   value = -3 }
		command = { type = sleepevent   which = 338455 }
		command = { type = sleepevent   which = 338456 }
		command = { type = sleepevent   which = 338457 }
		command = { type = sleepevent   which = 338459 }
	}
}


# 283 Kurland
event = {
	id = 338459
	trigger = {
		OR = {
			event = 338458
			naval = 13
		}
	}
	random = no
	province = 283 
	name = "Baltic explorer, Kurland."
	desc = "As Western Europeans started to explore Westward news of their explorations, if not their discoveries, had spread. The baltic sea nations were largely busy with their own affairs to fund 'reckless' expeditions. This however did not mean no would-be explorers were in the sea, though they rarely found hospitable nations. We have here a wondering would be explorer."

	date = { year = 1470 }
	offset = 3600
	deathdate = { year = 1740 }

	action_a = {
		name = "send this madman away"
		command = { type = trigger   which = 338455 }
		command = { type = domestic   which = mercantilism value = 1 }
		command = { type = domestic   which = land value = 1 }
	}
	action_b = {
		name = "hire this explorer"
		command = { type = explorer   which = 283 }	
		command = { type = treasury value = -150 }
		command = { type = domestic   which = land value = -1 }
		command = { type = merchants   value = -3 }
		command = { type = sleepevent   which = 338455 }
		command = { type = sleepevent   which = 338456 }
		command = { type = sleepevent   which = 338457 }
		command = { type = sleepevent   which = 338458 }
	}
}
 
You have two exact same event series correct?
Maybe you should use the "random = yes" that way you don't need alot of copies. ;)


About your trigger:

Code:
	trigger = {
		OR = {
			event = 338453
			naval = 7
		}
	}

I would make it like this:

Code:
	trigger = {
			naval = 7
	}

If event 338453 has fired than in option A it would trigger this event or in option B it would sleep this event so no reason to add it in the trigger unless you use "random = yes" which would then also need some more triggers and maybe flags. ;)