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

First Lieutenant
Dec 24, 2008
217
0
I have been nagging about people for this kind of event earlier, but noone really cared, so I tried myself...again.

event = {
id = ?????
trigger = {
NOT = {
owned = { province = -2 data = -1 }
}
random = no
country = ???
name = "We have lost!
desc = "Our capital has been overrun with enemies! We must evacuate immediatly otherwise our monarch and our court may be in danger. Quickly, escape before the invaders assault our gates! We will have to reclaim our capital later..."

date = { day = 13 month = february year = 1419 }
offset = 5
deathdate = { day = 19 month = september year = 1819 }

action_a = {
name = "Damn!"
command = { type = capital which = -1 }
}
}

Now, I think this could really be worth something...the only problems I see are:
1) It probably takes alot of time to insert this event in EVERY country's eventfile.
2) In the end, Englands capital could be, say, Newcastle with no chance to put it back...counter-event needed?
3) I don't know if the command: NOT = {
owned = { province = -2 data = -1 }
}
actually works, I haven't had time to try it.
 
Maybe like this...however, then you would have to specialmake the event for each country which could be a darn dummer. And I' not sure about the trigger either.

event = {
id = ?????
trigger = {

owned = { province = -2 data = -1 }
}
random = no
country = ???
name = "We are back!"
desc = "Our capital is finally in our hands again, your Higness. Let us move back there at once."

date = { day = 13 month = february year = 1419 }
offset = 5
deathdate = { day = 19 month = september year = 1819 }

action_a = {
name = "Yaay!"
command = { type = capital which = ??? }
}
}
 
Really nice however i think that event could be spicen up little bit;)


when you lose your capital you should lose 1 stability plus some money (they are taking many treasures for safety after all no?;))

When you get your capital back the contrary happens, you win 1 stability and the money previusly lost:D




Im not sure but i think you can trigger events by tech groups, religions and continents i think;), just use all religions or tech groups and you wont have to make it for every country


Also what happens if its a 1 province minor?
 
Ok, let's see here:
1. The first event will never fire as written. Your capital is always "owned" by you. Try "controlled" instead.
2. I'm pretty sure you can't do "type = capital which = -1". I don't know what would happen if you tried, though.
3. Your second event would fire immediately; you'd have to set a flag in the first event and check it in the trigger of the second. Even with a flag, it would fire within 5 days of the first event, since as I said above, you always own your capital. You would have to customize it to every country, e.g.
Code:
event = {
    id = ?????
    trigger = {
        owned = { province = 247 data = -1 } # Anglia
    }
    random = no
    country = ENG
    name = "We are back!"
    desc = "Our capital is finally in our hands again, your Highness. Let us move back there at once."

    date = { day = 13 month = february year = 1419 }
    offset = 5
    deathdate = { day = 19 month = september year = 1819 }

    action_a = {
        name = "Yaay!"
        command = { type = capital which = 247 } # Anglia
    }
}
Now THAT would be a pain to do. But if you want to do it, I'm not going to stop you. :p

And by the way, this forum is for when you're releasing a mod or set of events. Anything requiring discussion goes in the main modding forum. :)
 
Ok, let's see here:
1. The first event will never fire as written. Your capital is always "owned" by you. Try "controlled" instead.
2. I'm pretty sure you can't do "type = capital which = -1". I don't know what would happen if you tried, though.
3. Your second event would fire immediately; you'd have to set a flag in the first event and check it in the trigger of the second. Even with a flag, it would fire within 5 days of the first event, since as I said above, you always own your capital. You would have to customize it to every country, e.g.
Code:
event = {
    id = ?????
    trigger = {
        owned = { province = 247 data = -1 } # Anglia
    }
    random = no
    country = ENG
    name = "We are back!"
    desc = "Our capital is finally in our hands again, your Highness. Let us move back there at once."

    date = { day = 13 month = february year = 1419 }
    offset = 5
    deathdate = { day = 19 month = september year = 1819 }

    action_a = {
        name = "Yaay!"
        command = { type = capital which = 247 } # Anglia
    }
}
Now THAT would be a pain to do. But if you want to do it, I'm not going to stop you. :p

And by the way, this forum is for when you're releasing a mod or set of events. Anything requiring discussion goes in the main modding forum. :)


Damn, I knew something about this forum was wrong xD
And how on earth I could mix up "owned" with "controlled" is something I can't grasp. Hah, and yeah the second event was also kind of a failure. But don't mock me :O I see potential in this!

EDIT: Oh by the way, the "capital which = -1" actually works, I used that in an ottoman event moving their capital when Russia controlled Thrace (considering Russia can get Thrace as a core which is extremely useless considering it it the capital of the Ottoman Empire...EMPIRE.

Re-EDIT: Oh damn...it wasn't -1 in that event...