Sorry if these have been asked before
So I wrote a custom event, hoping to add better (imaginary) leaders to our poor China who really lacked them:
But when the event fired, it gave me a message saying something like "New Leader "Test I" awaits your command at (EMBARKED)"..... and that was all ... they are nowhere to be found in the list :wacko:
is this a bug of the command? if yes, does that mean there is no way to add leaders via an event?
Also some minor questions...
1. The command for command = { relation which = XXX = -30 } does not work for some reason... in the game it gave me "no immediate effect", and so does for belligerence...
2. Under desc, is there a limit on how many characters you can input? I once wrote an approx. 150 words paragraph to explain the event, but the game failed to load, calling it an unknown trigger type, but after I trimmed it down it suddenly worked...
3. This one is not event related---> are underscores not recognized by HOI? I once named a mp3 file something_something and it did not play, but when I removed it, it played in the game... :wacko:
4. If I want an event to fire at a 100% chance on a certain date, do I still need the offset and death date command? I am asking this because I kind of "copied" the format of existing events, and try to alter them without understanding what is important and what is not...
[edit]
5. Is there a trigger command that checks if a country still exists?
So I wrote a custom event, hoping to add better (imaginary) leaders to our poor China who really lacked them:
##################################################
#########Wake Leader Test#########################
#################################################
event = {
id = 9505
random = no
country = CHI
name = "Wake Leader Command Test"
desc = "If successful, test I test II and test III will appear."
picture = "transfer"
style = 0
trigger = { }
date = { day = 0 month = february year = 1936 }
offset = 1
deathdate = { day = 29 month = december year = 1936 }
action_a = {
name = "Check and see if command works"
command = { type = wakeleader which = 50370 } #this is Chennault, I just took him out to also test Pitman Act...
command = { type = wakeleader which = 582018 } #Air named Test I
command = { type = wakeleader which = 582019 } #Navy Test II
command = { type = wakeleader which = 582020 } #Army Test III
}
}
But when the event fired, it gave me a message saying something like "New Leader "Test I" awaits your command at (EMBARKED)"..... and that was all ... they are nowhere to be found in the list :wacko:
is this a bug of the command? if yes, does that mean there is no way to add leaders via an event?
Also some minor questions...
1. The command for command = { relation which = XXX = -30 } does not work for some reason... in the game it gave me "no immediate effect", and so does for belligerence...
2. Under desc, is there a limit on how many characters you can input? I once wrote an approx. 150 words paragraph to explain the event, but the game failed to load, calling it an unknown trigger type, but after I trimmed it down it suddenly worked...
3. This one is not event related---> are underscores not recognized by HOI? I once named a mp3 file something_something and it did not play, but when I removed it, it played in the game... :wacko:
4. If I want an event to fire at a 100% chance on a certain date, do I still need the offset and death date command? I am asking this because I kind of "copied" the format of existing events, and try to alter them without understanding what is important and what is not...
[edit]
5. Is there a trigger command that checks if a country still exists?
Last edited: