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

unmerged(140053)

Private
3 Badges
Apr 19, 2009
10
0
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
Hi

I'm trying to errm, cheat, so that I can play as Norway conquer the world. But I only want to improve its financial situation somewhat, that is, increasing the resources and IC in some of it's provinces, like Oslo.

Anyway, tried using the editor (the Paradox one and one I found looking through the pages here at the forum), but that only netted me hours of trying to reinstall everything as I messed up badly :p

I also tried editing the Province.csv file in the DB folder, and that acquired the desired effect, somewhat, but I only wanted the things to change for the 1936 scenario, and this changed it across the board, unfortunately.

Is there any way I can just edit the Oslo province in the 1936 scenario to give me 50 in every resource each day and a flat 100 IC without messing with the entire game?? If there is, I'm as you probably understand quite the nubbin when it comes to these things, so I'd probably need just a teaspoon of help doing whatever I need to do :)


Regards, and thanks for any help
Air
 

unmerged(27419)

Second Lieutenant
Apr 1, 2004
153
0
well i like to use events, theyre fun for everything guess it could be done by editing the scenarios/1936/norway.inc file.

but yea i like events... :) add following event to the bottom of db/events/hoi2.txt (or any event file in that folder really)

EDIT; remove "#" sign infront of infrastructure and manpower if you want that i just added them for the heck of it :p

Code:
###################
# Jeg trenger kun lite hjälp #
###################

event = {
	id = 1000000
	random = no
	country = NOR

	#Triggered by typing "event 1000000" in console (f12) or wait ~3 days

trigger = {
		owned = { province = 107 data = NOR }
	}


	name = "Celebration!" 
	desc = "We have discovered new resources and flying buildings have landed in our city!"
	style = 0

date = { day = 0 month = january year = 1936 }
    offset = 3
    deathdate = { day =30 month = december year = 1963 }

	action_a = {
		name = "Ok"
		command = { type = construct which = ic where = 107 value = 100 }
		command = { type = add_prov_resource which = 107 value = 50 where = energy } 
		command = { type = add_prov_resource which = 107 value = 50 where = rare_materials } 
		command = { type = add_prov_resource which = 107 value = 50 where = metal }
		command = { type = add_prov_resource which = 107 value = 50 where = oil }
                #command = { type = province_manpower which = 107 value = 50 }
                #command = { type = construct which = infrastructure where = 107 value = 100 } 
                 
	}
}
 

unmerged(27419)

Second Lieutenant
Apr 1, 2004
153
0
yes it would and yes its fixable, revised event below


added "ai = no" to the trigger to prevent this event from firing for the AI aswell as a "option_b" incase youre playing norway and dont want the boni.

Code:
###################
# Jeg trenger kun lite hjälp #
###################

event = {
	id = 1000000
	random = no
	country = NOR

	#Triggered by typing "event 1000000" in console (f12) or wait ~3 days

trigger = {
		ai = no
		owned = { province = 107 data = NOR }
	}


	name = "Celebration!" 
	desc = "We have discovered new resources and flying buildings have landed in our city!"
	style = 0

date = { day = 0 month = january year = 1936 }
    offset = 3
    deathdate = { day =30 month = december year = 1963 }

	action_a = {
		name = "Ok"
		command = { type = construct which = ic where = 107 value = 100 }
		command = { type = add_prov_resource which = 107 value = 50 where = energy } 
		command = { type = add_prov_resource which = 107 value = 50 where = rare_materials } 
		command = { type = add_prov_resource which = 107 value = 50 where = metal }
		command = { type = add_prov_resource which = 107 value = 50 where = oil }
                #command = { type = province_manpower which = 107 value = 50 }
                #command = { type = construct which = infrastructure where = 107 value = 100 } 
                 
	}
	action_b = {
		name = "Get rid of it!"
		command = { type = sleepevent which = 1000000 }
	}
}