|
Post by amostheanus on May 20, 2019 1:54:13 GMT
This is a suggestion but also an advice-seeking post, as I'm certainly willing to have a go at this if it's not something the devs are interested in. My idea is that, every time a fleet enters a sea province (or maybe whenever a periodic event detects a fleet in a sea province), that province is flagged for however long the minimum time to leave that province is. Then, if a fleet is detected in a flagged province, a smoking sea-style event is triggered if the flag was created by a hostile fleet. The troop modifier could be a random number scaled by relative ship/troop numbers, possession of flagship artifacts, and/or religion.
I guess you could have a flag for e.g. 1-10 ships and a small flagship, 10-20 ships and a large flagship, etc., to avoid the variable modifier, though that would be extremely tedious and still depend on how much information it is possible to pull with conditionals.
Tl;dr, is it possible to fire a smoking sea-event based off of a province flag, can such a flag be set by another fleet, and what information could that flag be dependent on?
Thanks for indulging me.
|
|
Toccs
Moderator
Posts: 474
|
Post by Toccs on May 20, 2019 22:27:28 GMT
CK2 has been out since 2012 and naval combat has been one of the most requested things since then. In all that time, with all the talented modders in the community, there hasn't even been a clunky work around for it. It's just not possible with the game engine as is unfortunately.
|
|
|
Post by amostheanus on May 23, 2019 20:23:17 GMT
Would you mind taking a quick look at this to see if it's immediately clear why this wouldn't work?
Say A and B are at war, and A and B are in command
an event fires to set_char_flag of A and B to leading_small/medium/large_army
A enters province P
an event to set_province_flag to has_small/medium/larg_fleet is fired based on leading_small/medium/large_army flag of A an event to set_char_flag to in_province_P is fired
B enters province P
a small/med/large smoking sea event fires for B if: has_fleet flag exists B at war any_current_enemy has_character_flag in_province_P B does not have naval_cooldown flag
then:
troops of B modified based on has_small/medium/larg_fleet clr_char_flag of B set_char_flag of B to leading_small/medium/large_army set_char_flag of B to naval_cooldown if: B has_character_flag leading_small/medium/large_army then: fire small/med/large smoking sea event for any_current_enemy has_character_flag in_province_P clr_char_flag of A set_char_flag of A to leading_small/medium/large_army set_char_flag of A to naval_cooldown clr_char_flag of B set_char_flag of B to leading_small/medium/large_army set_char_flag of B to naval_cooldown
Obviously it isn't that simple and I'm sure there's a reason no one has done that, I'm just hoping someone can tell me why.
|
|
|
Post by rufff1 on May 23, 2019 21:28:00 GMT
Would you mind taking a quick look at this to see if it's immediately clear why this wouldn't work? Say A and B are at war, and A and B are in command
an event fires to set_char_flag of A and B to leading_small/medium/large_army
A enters province P
an event to set_province_flag to has_small/medium/larg_fleet is fired based on leading_small/medium/large_army flag of A an event to set_char_flag to in_province_P is fired
B enters province P
a small/med/large smoking sea event fires for B if: has_fleet flag exists B at war any_current_enemy has_character_flag in_province_P B does not have naval_cooldown flag
then:
troops of B modified based on has_small/medium/larg_fleet clr_char_flag of B set_char_flag of B to leading_small/medium/large_army set_char_flag of B to naval_cooldown if: B has_character_flag leading_small/medium/large_army then: fire small/med/large smoking sea event for any_current_enemy has_character_flag in_province_P clr_char_flag of A set_char_flag of A to leading_small/medium/large_army set_char_flag of A to naval_cooldown clr_char_flag of B set_char_flag of B to leading_small/medium/large_army set_char_flag of B to naval_cooldown
Obviously it isn't that simple and I'm sure there's a reason no one has done that, I'm just hoping someone can tell me why. My understanding is that it's to do with being unable to disband ships via command or to partially disband a fleet
|
|
|
Post by amostheanus on May 24, 2019 5:11:41 GMT
My understanding is that it's to do with being unable to disband ships via command or to partially disband a fleet I could have sworn the smoking sea event did that, but even if it had to be based solely on troops I feel like that would be better than nothing.
|
|