Jump to content

i cant make my interaction mod work


Rodelga

Recommended Posts

Posted

the mod is supposed to be simple, pick woman, make her pregnant and flag her as potential lover but I can't seem to make it show in the interaction menu

Quote

 

breed_interaction = {
    category = interaction_category_friendly
    common_interaction = yes
    use_diplomatic_range = yes
    interface_priority = 70
    
    desc = breed_interaction_desc

    is_shown = {
        scope:actor = {
            is_female = no
            is_adult = yes
        }
        scope:recipient = {
            is_female = yes
            is_adult = yes
        }
    }

    is_valid_showing_failures_only = {
        scope:recipient = { is_diplomatically_available = yes }
    }

    auto_accept = yes

    on_accept = {
        scope:recipient = {
            make_pregnant = { father = scope:actor }
            set_relation_potential_lover = scope:actor
            add_opinion = {
                target = scope:actor
                modifier = brd_opinion
            }
        }
    }
    ai_will_do = { base = 0 }
    ai_potential = { is_ruler = yes }
    ai_targets = { ai_recipients = spouses }
    ai_frequency = 0
}    

 

 

Posted

It SHOWS for me an d tooltip indicates it works as intended, so check the basics

 

is the text file itself encoded as UTF 8-BOM?

Saved in Documents\Paradox Interactive\Crusader Kings III\mod\yourmod\common\character_interactions ?

 

You dont have some left over test code anywhere thats also got 'breed_interaction = {' defined somewhere? thats overwriting your interaction?

Is the interaction in its own text file? if not its possible an ABOVE interaction is coded badly so it never reaches this one.

U are targetting an adult with an adult yes?

 

Finally
    ai_will_do = { base = 0 }

means ai will never do it, sp the other ai settings are pointless

Posted

 

On 3/26/2022 at 2:42 PM, Tlam99 said:

If this is json you missed alot of ","

 

im not using json, i tried using the wiki

 

On 3/26/2022 at 3:24 PM, Dwjliel said:

It SHOWS for me an d tooltip indicates it works as intended, so check the basics

 

is the text file itself encoded as UTF 8-BOM?

Saved in Documents\Paradox Interactive\Crusader Kings III\mod\yourmod\common\character_interactions ?

 

You dont have some left over test code anywhere thats also got 'breed_interaction = {' defined somewhere? thats overwriting your interaction?

Is the interaction in its own text file? if not its possible an ABOVE interaction is coded badly so it never reaches this one.

U are targetting an adult with an adult yes?

 

Finally
    ai_will_do = { base = 0 }

means ai will never do it, sp the other ai settings are pointless

Yes

 

no, my only other file is Localization and the opinion modifier that defines "brd_opinion"

I am 100% sure its because my whole coding is bad

yes, im using pretty King Murchad who is 39 and tried to use it on courtiers, a wife i married and neighboring rulers wives

the interaction just does not show up for me

Posted

Have you activated the mod in the playset? Not got a 2nd version loading from steam messing with ur offline version or something?

 

I can 100% assure you the code displays and successsfully works/impregnates people. The code is functional; it must be your setup. Please double check the things I said in my 1st post.

 

Other than that back in my ck2 modding days, I'd sometimes have a file just bug out. It'd look perfect, but just not work.

What I'd do is make an entirely new text document and copy the code FROM HERE ( your OP) NOT from the none working text document.

Delete the old file, save the new one with a DIFFERENT name, even just 1 letter.

Basically just a freshly made clone . See if that works.

 

Thats all the help i can offer you, The code works, you've got something else askew somewhere. Good luck.

Posted
On 3/28/2022 at 2:31 PM, Dwjliel said:

Have you activated the mod in the playset? Not got a 2nd version loading from steam messing with ur offline version or something?

 

I can 100% assure you the code displays and successsfully works/impregnates people. The code is functional; it must be your setup. Please double check the things I said in my 1st post.

 

Other than that back in my ck2 modding days, I'd sometimes have a file just bug out. It'd look perfect, but just not work.

What I'd do is make an entirely new text document and copy the code FROM HERE ( your OP) NOT from the none working text document.

Delete the old file, save the new one with a DIFFERENT name, even just 1 letter.

Basically just a freshly made clone . See if that works.

 

Thats all the help i can offer you, The code works, you've got something else askew somewhere. Good luck.

I managed to make the mod work, not without your help so I appreciate the time you could give me.

Archived

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

  • Recently Browsing   0 members

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