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

Irioth

Captain
15 Badges
Sep 29, 2007
302
0
  • Hearts of Iron Anthology
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Victoria 2
  • 500k Club
  • Europa Universalis III: Collection
Hello, HoI veteran closet modder coming to Victoria here (as soon as the £$%& GG installer will feel anything like working properly :mad: :mad: :mad: ).

I've got some general newbie would-be VIC modder questions on the game, which I posted on the modding forum first together with the modding questions, but since they didn't get much feedback, I'm going to repost them here:

Barring a custom event, I understand that you can always cause a Monarchy to go Constitutional Monarchy with reforms, but you need a Reactionary revolution (via f12-forced event and the appropriate code) to go Monarchy from Democracy. Is there a similar revolution event to go from Democracy to Constitutional Monarchy directly, without using the trick above ?

I also seem to understand that differently from HoI, in Vic/Rev you cannot f12-force an event if the prerequisites are not met. Is it so ? Can this limitation be bypassed, short of modding the event(s) ?

If an event is triggered by another event, does it work even if tis ordinary requisites aren't fulfilled ?

I understand that by default Victoria code gives a rough 95% ai_chance to the a_option in an event (less, about 85% if there are more than two choices). If you give an explicit ai_chance to the options, is this setup bypassed ?

Which block of event ID numbers is surely free for modding in the VIC 1.4/Rev 2.01/Hofitxes/Darkrenown's All In One Mod combo ?
 
Last edited:

OHgamer

Victoria's Plastic Surgeon
38 Badges
Jan 28, 2003
18.057
650
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Victoria 2 Beta
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Victoria 3 Sign Up
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis III
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Hearts of Iron II: Beta
Irioth said:
Hello, HoI veteran closet modder coming to Victoria here (as soon as the £$%& GG installer will feel anything like working properly :mad: :mad: :mad: ).

I've got some general newbie would-be VIC modder questions on the game, which I posted on the modding forum first together with the modding questions, but since they didn't get much feedback, I'm going to repost them here:

Barring a custom event, I understand that you can always cause a Monarchy to go Constitutional Monarchy with reforms, but you need a Reactionary revolution (via f12-forced event and the appropriate code) to go Monarchy from Democracy. Is there a similar revolution event to go from Democracy to Constitutional Monarchy directly, without using the trick above ?

In Revolutions, only if I think liberals seize power in a revolution????? Not 100% positive on that though.

I also seem to understand that differently from HoI, in Vic/Rev you cannot f12-force an event if the prerequisites are not met. Is it so ? Can this limitation be bypassed, short of modding the event(s) ?

If an event is triggered by another event, does it work even if tis ordinary requisites aren't fulfilled ?

No and no. There is no way around the requirement that all triggers work (which is actually good, because if it doesn't work, it suggests something may be off with your triggers if you expect it to work in the current gameplay conditions) and AFAIK, events triggered by other events will not trigger manually, though not 100% sure on that.

I understand that by default Victoria code gives a rough 95% ai_chance to the a_option in an event (less, about 85% if there are more than two choices). If you give an explicit ai_chance to the options, is this setup bypassed ?

AFAIK yes, if you add the line ai_chance = xx to each command, then the chances of the event happening will be overwritten. However, you need to add these ai_chances to all options, and the sum must = 100, otherwise you may get odd results.

Which block of event ID numbers is surely free for modding in the VIC 1.4/Rev 2.01/Hofitxes/Darkrenown's All In One Mod combo ?

I don't recall anything specificially set aside, but if you are not using VIP, then anything >100000 will work, and if you want to make your changes VIP compatible, anything >500000 will work fine.
 

Irioth

Captain
15 Badges
Sep 29, 2007
302
0
  • Hearts of Iron Anthology
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Victoria 2
  • 500k Club
  • Europa Universalis III: Collection
Double post, sorry
 
Last edited:

Irioth

Captain
15 Badges
Sep 29, 2007
302
0
  • Hearts of Iron Anthology
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Victoria 2
  • 500k Club
  • Europa Universalis III: Collection
OHgamer said:
In Revolutions, only if I think liberals seize power in a revolution????? Not 100% positive on that though.

Bugger, that means if I want to revert to ConMon from Democracy (typical case, say I went for Popular Unification of Germany, but I don't care about Democracy for not being allowed to pick the party in power and/or I like Bismarck's constitution more for flavor reasons), I have to go through a Reactionary revolution first.

No and no. There is no way around the requirement that all triggers work (which is actually good, because if it doesn't work, it suggests something may be off with your triggers if you expect it to work in the current gameplay conditions) and AFAIK, events triggered by other events will not trigger manually, though not 100% sure on that.

I'm not sure I understand here. If I write an event that has a trigger command ine for another event, will the latter event fire off, even if the normal trigger conditions are not fulfilled, or not ? If the latter, I have to remark I find Victoria's code rather unfriendly to modders, since it means you have to write duplicate events anytime you want the same event to be fulfilled by radically different conditions, anything more than is feasible to put in the same trigger setup. :( :(


AFAIK yes, if you add the line ai_chance = xx to each command, then the chances of the event happening will be overwritten. However, you need to add these ai_chances to all options, and the sum must = 100, otherwise you may get odd results.

No problem. I'm accustomed to doing both from modding HoI. OTOH, I relish the freedom in my custome events having just the exact chance I fancy (e.g. if I write an event with an thoroughly unfavoured choice only allowed for the sake of human player only, I like giving it 1% or 0%). :D

I don't recall anything specificially set aside, but if you are not using VIP, then anything >100000 will work, and if you want to make your changes VIP compatible, anything >500000 will work fine.

Well, I'd be quite willing to use VIP (at least unless I find something in it that it's really not compatible to my gameplay and geopolitical flavor tastes, and it's too burdensome to mod away), but I understand that so far, there is no version of VIP that is both compatible with 1.04 and Revolutions. Am I right ?

Where's a good description of what VIP does, by the way ?
 

TroelsPoul

Sergeant
68 Badges
Jun 9, 2005
83
0
  • Crusader Kings II: Horse Lords
  • Sengoku
  • Victoria 2
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Europa Universalis: Rome
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis 4: Emperor
  • Europa Universalis IV
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
Events will not be triggered by the trigger command unless the trigger is true, but you can add stuff to make events like this:

Code:
event = {
	id = 7000001

	action_a = {
		name = "do it"
		command = { type = setflag which = event7000001 value = 1 }
		command = { type = trigger which = 7000002 }
	}
}
event = {
	id = 7000002
	
	trigger = {
		OR = {
			flag = { name = event7000001 value = 1 }
			AND = {
				The Original trigger
			}
		}
	}
	
	action_a = {
		name = "do it"
		command = {}
	}
}