• 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(415277)

Private
1 Badges
Nov 24, 2011
16
0
  • Darkest Hour
i'd like to make an event to spawn a mountain division that creates the division in 30 days with 100 experience and the division is named 1st Ranger Division. and i want it to be for the USA and have it able to be fired from the decisions bar any time, but i have no idea how to :(

P.s. how do i confirm my e-mail i never got 1
 
Try this:
#########################################################################
# Rangers
#########################################################################

event = {
id = 2049086
random = no
country = USA

decision = {

control = { province = 1809 data = USA } #DC
}

decision_trigger = {
supplies = 200
oil = 100
money = 50
}




name = "Rangers"
desc = "1st Ranger Division Formed"
style = 0
picture = "Newspaper"

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

action = {

name = "OK" #

command = { type = add_division value = bergsjaeger }
}
}


Add this line up in the list of events in the file:
### 2049086 USA Rangers

I don't know how to set the experience though. Just name the division after it spawns.
 
No problem. I was hoping that someone would have popped in and told us how to give the experience.
 
In which scenario you want to use this? I assume you mean 1936. If so, go DH/Mods/DH full/scenarios/1936/USA.inc and add next stuff to the end of the file so that only thing that comes after your addition is the last } (already in the file).
Code:
	landdivision = {
		dormant = yes
		id = {  type = 14800 id = 1001 } 
		name     = "1st Ranger Division" 
		type     = bergsjaeger
		model    = 9 # model 1936
		strength = 100 
		experience = 100
			}

Then modify the event addition posted by Son of Liberty so that instead of

Code:
command = { type = add_division value = bergsjaeger }

it reads

Code:
command = {type = activate_division which = 14800 value = 1001  where = 1809 when = 0 }

You have always use this trick (dormant division added in the scenario file and then activated through event instead of simply adding a new one) if you want to have advanced settings for the new division.
 
In which scenario you want to use this? I assume you mean 1936. If so, go DH/Mods/DH full/scenarios/1936/USA.inc and add next stuff to the end of the file so that only thing that comes after your addition is the last } (already in the file).
Code:
	landdivision = {
		dormant = yes
		id = {  type = 14800 id = 1001 } 
		name     = "1st Ranger Division" 
		type     = bergsjaeger
		model    = 9 # model 1936
		strength = 100 
		experience = 100
			}

Then modify the event addition posted by Son of Liberty so that instead of

Code:
command = { type = add_division value = bergsjaeger }

it reads

Code:
command = {type = activate_division which = 14800 value = 1001  where = 1809 when = 0 }

You have always use this trick (dormant division added in the scenario file and then activated through event instead of simply adding a new one) if you want to have advanced settings for the new division.

When i do that it gives me

Code:
---- Error: (Illegal top level object) 'landdivision = {'Line= 1940 file = Mods\Darkest Hour Full Modded\scenarios\1936\usa.inc ----