• 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.
prposition "finale" :

Code:
event = {
	id = 170229 
	trigger = {
		owned = { province = 405 data = SAV } #Savoie
		control = { province = 405 data = SAV }
		owned = { province = 407 data = -1 } #Dauphiné
		control = { province = 407 data = -1 }
	}
	random = no
	country = FRA
	name = "EVENTNAME170229" #Mandrin
	desc = "EVENTHIST170229"

	date = { day = 27 month = july year = 1753 }
	offset = 100
	deathdate = { day = 29 month = december year = 1755 }

	action_a = {				
		name = "ACTIONNAME170229A" #C'en est assez !
		command = { type = treasury value = 20 }
		[COLOR=Yellow]command = { type = province_revoltrisk which = 407 value = 2 } [/COLOR]
		[COLOR=Yellow]command = { type = trigger which = 275029 } #SAV : Mandrin[/COLOR]
	}
	action_b = {				
		name = "ACTIONNAME170229B" #La savoie est un Etat souverain...
		command = { type = provincetax which = 407 value = -1 }
		command = { type = relation which = FRA value = 40 } 
		command = { type = population which = 407 value = 300 }
		[COLOR=Yellow]command = { type = sleepevent which = 170230 } #FRA : End of troubles in Dauphine[/COLOR]
	}
}
EVENTNAME170229;Mandrin;;;;;;;;;;
EVENTHIST170229;Mandrin was a french bandit who fought the tax inspector by smuggling with Savoy and Geneva. After one year of activity, he was pursued by royal troops which arrested him in Savoy's territory causing a diplomatic unrest.;;;;;;;;;;
ACTIONNAME170229A;It's enough !;;;;;;;;;;
ACTIONNAME170229B;Savoy is a sovereign State...;;;;;;;;;;

Code:
event = {
	id =  275029 #triggered by Fra : 170229 Mandrin
	random = no
	country = SAV
	name = "EVENTNAME170229" #Mandrin
	desc = "EVENTHIST170229"

	action_a = {				
		name = "ACTIONNAME275029A" 
		command = { type = relation which = FRA value = -20 }
	}
	action_b = {				
		name = "ACTIONNAME275029B" 
		command = { type = relation which = FRA value = 40 }
}

EVENTNAME170229;Mandrin;;;;;;;;;;
EVENTHIST170229;Mandrin was a french bandit who fought the tax inspector by smuggling with Savoy and Geneva. After one year of activity, he was pursued by royal troops which arrested him in Savoy's territory causing a diplomatic unrest.;;;;;;;;;;
ACTIONNAME275029A;We want him;;;;;;;;;;
ACTIONNAME275029B;If we were them we would make similar;;;;;;;;;;

Code:
event = {
	id = 170230
	trigger = {
		[COLOR=Yellow]event = 170229 #FRA : Mandrin[/COLOR]
		owned = { province = 407 data = -1 } #Dauphine
	}
	random = no
	country = FRA
	name = "EVENTNAME170230" #End of troubles in Dauphine
	desc = "EVENTHIST170230"

	date = { day = 1 month = january year = 1756 }
	offset = 30
	deathdate = { day = 29 month = december year = 1760 }

	action_a = {
		name = "ACTIONNAME170230A"
		command = { type = province_revoltrisk which = 407 value = -2 }
	}
}

EVENTNAME170230;End of troubles in Dauphine;;;;;;;;;;
EVENTHIST170230;After Mandrin's elimination, peasants caused troubles in Dauphine;;;;;;;;;;
ACTIONNAME170230A;At last !;;;;;;;;;;
 
Last edited:
Non. Il ne faut pas que le second event soit déclenché mais qu'il ait une date propre (à partir de 1755 je suppose). Il faut également que le trigger de ce second event teste que le premier se soit produit avant. Enfin, pour soulager le moteur de tests inutiles, l'action_b du premier event doit endormir le second.
 
YodaMaster said:
Non. Il ne faut pas que le second event soit déclenché mais qu'il ait une date propre (à partir de 1755 je suppose). Il faut également que le trigger de ce second event teste que le premier se soit produit avant. Enfin, pour soulager le moteur de tests inutiles, l'action_b du premier event doit endormir le second.
j'avais hésité entre les deux solutions :eek:o , je modifie
 
j'ai revu la proposition en ajoutant un event pour la savoie en ce qui concerne les relations entre les deux pays. Je pense que ça peut être soumis en l'Etat
 
YodaMaster said:
Dans FRA_170230, il faut -2 et non 0 pour la commande revoltrisk.
j'avais mal interprété le site de Havard, édité.
 
YodaMaster said:
Bon !

A reporter sur le forum anglo. A ce propos, le Roussillon peut être soumis maintenant.
déjà fait, milord :)
 
Code:
event = {
	id = 170227
	trigger = {
		atwar = yes
	}
	random = no
	country = FRA
	name = "EVENTNAME170227" 
	desc = "EVENTHIST170227"

	date = { day = 1 month = january year = 1748 }
	offset = 100
	deathdate = { day = 13 month = july year = 1789 }

	action_a = {			
		name = "ACTIONNAME170227A" 
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = domestic which = land value = 200 }
		command = { type = treasury value = -200 }
	}
	action_b = {
		name = "ACTIONNAME170227B" 
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = CAV which = -1 value = 3000 } 
	}
}

EVENTNAME170227;The military school;;;;;;;;;;
EVENTHIST170227;After the disastrous Seven Years War, France decided to create a training school for its officers as this corp had shown serious carrences during the fight both on land and sea;;;;;;;;;;
ACTIONNAME170227A;It's good... but too late;;;;;;;;;;
ACTIONNAME170227B;I rely on the noble;;;;;;;;;

j'ai ramené la qualité à 1 comme on en avait parlé, c'est bien suffisant. Ca peut être bien comme ça.
 
Last edited:
Code:
event = {
	id = 
	trigger = {
		OR = {
			owned = { province = 557 data = -1 } #Ganges
			owned = { province = 571 data = -1 } #Madras
		}
	}	
	random = no
	country = ENG
	name = "EVENTNAME " #Clive en Inde
	desc = "EVENTHIST "

	date = { day = 1 month = january year = 1740 }
	offset = 30
	deathdate = { day = 31 month = december year = 1755 }

	action_a ={
		name = "ACTIONNAMEA" ##
		command = { type = addcore which = 555 } #Koch
		command = { type = addcore which = 556 } #Santal
		command = { type = addcore which = 557 } #Ganges
		command = { type = addcore which = 558 } #Howrah
		command = { type = addcore which = 565 } #Yanam
		command = { type = addcore which = 571 } #Madras
	}
}

event = {
	id = 
	trigger = {
		OR = {
			owned = { province = 565 data = -1 } #Yanam
			owned = { province = 572 data = -1 } #Pondichéry
		}
	}	
	random = no
	country = FRA1
	name = "EVENTNAME " #Dupleix étend notre influence en Inde
	desc = "EVENTHIST "

	date = { day = 1 month = january year = 1740 }
	offset = 40
	deathdate = { day = 31 month = december year = 1755 }

	action_a ={
		name = "ACTIONNAMEA" #En l'honneur de notre bon roi Louis !
		command = { type = addcore which = 561 } #Berhampur
		command = { type = addcore which = 564 } #Parlakimedi
		command = { type = addcore which = 565 } #Yanam
		command = { type = addcore which = 567 } #Bangalore
		command = { type = addcore which = 570 } #Mysore
		command = { type = addcore which = 572 } #Pondichéry
	}
} 

event = {
	id = 
	trigger = {
		OR = {
			control = { province = 565 data = -1 } #Yanam
			war = { contry = FRA country = ENG }
		}
	}	
	random = no
	country = ENG
	name = "EVENTNAME " #Les anglais en Inde
	desc = "EVENTHIST "

	date = { day = 1 month = january year = 1755 }
	offset = 40
	deathdate = { day = 31 month = december year = 1760 }

	action_a ={
		name = "ACTIONNAMEA" 
		command = { type = addcore which = 557 } #Ganges
		command = { type = addcore which = 558 } #Howrah
		command = { type = addcore which = 559 } #Bihar
		command = { type = addcore which = 560 } #Odisa
		command = { type = addcore which = 561 } #Berhampur
		command = { type = addcore which = 564 } #Parlakimedi
		command = { type = addcore which = 565 } #Yanam
		command = { sleepevent which =  }
	}
}

event = {
	id = 
	trigger =
	random = no
	country = FRA
	name = "EVENTNAME " #Nous perdons l'Inde
	desc = "EVENTHIST "

	date = { day = 1 month = january year = 1760 }
	offset = 40
	deathdate = { day = 31 month = december year = 1763 }

	action_a ={
		name = "ACTIONNAMEA" #Accepter la défaite et se concentrer sur la métropole
		command = { type = removecore which = 561 } #Berhampur
		command = { type = removecore which = 564 } #Parlakimedi
		command = { type = removecore which = 565 } #Yanam
		command = { type = removecore which = 567 } #Bangalore
		command = { type = removecore which = 570 } #Mysore
		command = { type = treasury value = 150 }
		command = { sleepevent which = FRA3 }
	}
	action_b ={
	name = "ACTIONNAMEB" #L'inde est trop riche pour que nous la laissions complètement tomber
		command = { type = removecore which = 567 } #Bangalore
		command = { type = removecore which = 570 } #Mysore
		command = { type = treasury value = -100 }
	}
} 

event = {
	id = 
	trigger = 	
	random = no
	country = FRA
	name = "EVENTNAME " #Le procès de Lally-tollendal
	desc = "EVENTHIST "

	date = { day = 1 month = january year = 1763 }
	offset = 40
	deathdate = { day = 31 month = december year = 1765 }

	action_a ={
		name = "ACTIONNAMEA" #Qu'il meure
		command = { type = sleepleader which =  }
	}
}
voici la séquence que j'avais bricolée pour l'inde, elle pourrait s'installer dans la lignée de l'event de la compagnie des indes orientales.
bien sûr elle est à revoir en profondeur et à compléter, je la poste après l'avoir mise au goût du jour niveau du code et pour l'avoir a portée de la main
 
Ok pour l'event Military school... mais si l'Angleterre n'existe plus ? On peut pas ajouter une autre condition ?

Pour l'Inde, sais-tu que nous avons ajouté une séquence pour les relations entre le Bengale et l'Angleterre ?
Bien sûr, ta proposition dépasse ce simple cadre mais à tout hasard, si tu n'avais pas remarqué cet ajout...
 
Last edited:
YodaMaster said:
Ok pour l'event Military school... mais si l'Angleterre n'existe plus ? On peut pas ajouter une autre condition ?

Pour l'Inde, sais-tu que nous avons ajouté une séquence pour les relations entre le Bengale et l'Angleterre ?
Bien sûr, ta proposition dépasse ce simple cadre mais à tout hasard, si tu n'avais pas remarqué cet ajout...
je peux remplacer le trigger actuel par une commande atwar = yes. Ca me semble assez large non ?