• 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.

JVERSES

Recruit
Feb 7, 2024
3
1
I created a custom interaction and it won't work. The option appears in the person category and the game allows the window to open. I'm trying to have it when you interact with a character to do a event. What its supposed to do is The Player/AI interacts with another character. Do the interaction and accept it. After that it suppose to give the trait "karma" to that selected character.


Code:
give_karma_interaction = {
    category = interaction_category_friendly

    is_shown = yes

    on_accept = {
        scope:recipient = {
            add_trait = karma
        }
    }

    auto_accept = yes

}


Screenshot 2024-02-07 163728.png
 
It shouldn't be is_shown = yes
Either remove it completely, it will be shown by default, or change it to is_shown = {} or is_shown = { always = yes }

Your error log should tell you this was wrong. It's in Documents\Paradox Interactive\Crusader Kings III\logs\error.log
If you fix that. it should add the trait.

If you also want to trigger an event for the player, use scope:actor = { trigger_event = my_event.1 } (assuming you meant an actual event when you said an "event")
 
  • 1
Reactions: