Stellaris

PSA : Great Khan leading the fleet is spawning as the ruler class, instead of the admiral class

stellaris 5 - PSA : Great Khan leading the fleet is spawning as the ruler class, instead of the admiral class
Loading...

I have tested this with no mods active. I remember this working in an older version, paradox must have broken it at some point for 2.3.3.

The problem is this : The khan event spawns a ruler khan to act as the country's leader, this works fine. The game then tries to clone the ruler khan to create an admiral khan with the special The_Great_Khan trait, which is then assigned to the "Chosen of the Great Khan" fleet.

Picture :
gIP4GJh - PSA : Great Khan leading the fleet is spawning as the ruler class, instead of the admiral class


https://i.imgur.com/gIP4GJh.jpg

Unfortunately the cloning effect appears to be broken. What actually happens in 2.3.3 is that the khan gets cloned, but as a ruler. So you have a level 10 ruler leading the chosen of the great khan fleet, giving +50% edict duration instead of ship fire rate. The cloned khan also gets a randomly generated trait instead of the unique The_Great_Khan trait.

This is the vanilla code :

 clone_leader = { target = event_target:great_khan_ruler class = admiral skill = 10 traits = { trait = leader_trait_great_khan } effect = { set_leader_flag = great_khan save_global_event_target_as = great_khan } } 

The game is completely ignoring the "class=admiral" part. The trait is being assigned, but the game is assigning it under the ruler role :

roles={ admiral={ trait="leader_trait_engineer" } general={ trait="leader_trait_glory_seeker" } scientist={ trait="leader_trait_expertise_new_worlds" } governor={ trait="leader_trait_army_veteran" } ruler={ trait="leader_trait_great_khan" } } 

The fix that I found was this :

Загрузка...
  • Make the ruler Khan spawn as an admiral, not a ruler (dont worry, when he gets assigned as the ruler of the country, his class changes to ruler)

  • Then get the fleet leader assigned using the admiral khan specifically, instead of using last_created_leader

This is the code for marauder_Events.txt :

### Ruler Khan create_leader = { class = admiral species = owner_main_species name = random skill = 10 leader_age_min = 22 leader_age_max = 40 traits = {} } last_created_leader = { set_leader_flag = great_khan save_global_event_target_as = great_khan_ruler } set_timed_global_flag = { flag = khan_no_die days = 7200 } # Should only die in battle first 20 years country_event = { id = marauder.514 days = 10800 random = 5000 } # Khan dies of old age if still around ### Admiral Khan clone_leader = { target = event_target:great_khan_ruler class = admiral skill = 10 traits = { trait = leader_trait_great_khan } effect = { set_leader_flag = great_khan save_global_event_target_as = great_khan } } assign_leader = event_target:great_khan_ruler 

And this is the code for 00_scripted_effects.txt :

 while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = event_target:great_khan 

End result : Ruler khan is assigned as the country leader as a ruler, and the admiral khan assigned to the fleet is an admiral with the correct trait. Everything works.

Source: Original link


Loading...
© Post "PSA : Great Khan leading the fleet is spawning as the ruler class, instead of the admiral class" for game Stellaris.


Top 10 Most Anticipated Video Games of 2020

2020 will have something to satisfy classic and modern gamers alike. To be eligible for the list, the game must be confirmed for 2020, or there should be good reason to expect its release in that year. Therefore, upcoming games with a mere announcement and no discernible release date will not be included.

Top 15 NEW Games of 2020 [FIRST HALF]

2020 has a ton to look forward to...in the video gaming world. Here are fifteen games we're looking forward to in the first half of 2020.

You Might Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *