Jump to content

Event modding help


gustav64

Recommended Posts

I wanted to create my own little Stellaris mod. I need a few events to add certain traits to leaders and atleast one of them doesn't seem to work. Could you help me find my mistake?

namespace = alphaFuta

country_event = {
	id = alphaFuta.1
	is_triggered_only = yes
	hide_window = yes

	Trigger = {
		FROM = {
			AND = {
				OR = {
					species = { has_trait = trait_simple_futanari }
					species = { has_trait = trait_well_endowed_futanari }
				}
                OR = {
                	has_ethic = ethic_fanatic_authoritarian
                	has_ethic = ethic_fanatic_militarist
                	has_ethic = ethic_authoritarian
                }
			}
		}
	}

	immediate = {
		FROM = {
			if = {
            	limit = { leader_class = ruler }
            	add_ruler_trait = leader_trait_alpha_futanari_ruler
            	break = yes
            }
            if = {
            	limit = { leader_class = admiral }
				add_trait = leader_trait_alpha_futanari_admiral
				add_ruler_trait = leader_trait_alpha_futanari_ruler
            	break = yes
            }
            if = {
            	limit = { leader_class = governor }
				add_trait = leader_trait_alpha_futanari_governor
				add_ruler_trait = leader_trait_alpha_futanari_ruler
                break = yes
            }
            if = {
            	limit = { leader_class = general }
				add_trait = leader_trait_alpha_futanari_general
				add_ruler_trait = leader_trait_alpha_futanari_ruler
            	break = yes
            }
            if = {
            	limit = { leader_class = scientist }
				add_trait = leader_trait_alpha_futanari_scientist
				add_ruler_trait = leader_trait_alpha_futanari_ruler
            	break = yes
            }
		}
	}
}

 

futanari.7z

Link to comment

Have you tried activating script debugging? The log will give you the line number where you have a typo. Or at least something to help you pinpoint the problem.

 

Also, in your if statements, I am not sure what the "break = yes" is. But I only did CK2 modding, so it might be a stellaris only thing.

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use