CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · All Under Heaven files

debate_guest_rewards

debate_guest_rewards = yes

game/common/scripted_effects/tgp_debate_scripted_effects.txt, line 573 (106 lines). No parameters.

debate_guest_rewards is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 573 of its file. It takes no parameters: debate_guest_rewards = yes. The game's script calls it in 1 place, among them debate_disburse_activity_guest_rewards (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/tgp_debate_scripted_effects.txt.

What it does

  • If

    a check the game hides

    Then

  • If

    • has_activity_intent = debate_gain_elder_intent

    Then

    • If has “new elder” (a variable the game's script sets): Gained … as elder
    • Influence changes
  • If

    • has_activity_intent = debate_increase_movement_power_intent

    Then

    • …% chance of:
    • Influence changes
  • Confucian Education experience changes

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.

The script as written (106 lines of game script)
debate_guest_rewards = {
    if = {
        limit = {
            this = scope:activity.var:challenged_movement_leader
            this = scope:activity.var:debate_winner
        }
        add_prestige = major_prestige_value
        change_influence = major_influence_value
    }
    if = {
        limit = {
            has_activity_intent = debate_gain_elder_intent
        }
        if = {
            limit = {
                has_variable = new_elder
            }
            custom_tooltip = gained_new_elder_tt
        }
        change_influence = debate_guest_influence_reward_value
    }
    if = {
        limit = {
            has_activity_intent = debate_increase_movement_power_intent
            exists = var:tgp_debate_success_score
        }
        top_participant_group:dynastic_cycle ?= { 
            save_scope_as = my_movement
        }
        random = {
            chance = {
                value = 25
                if = {
                    limit = { var:tgp_debate_success_score >= 100 }
                    add = 75
                }
                else_if = {
                    limit = { var:tgp_debate_success_score >= 75 }
                    add = 50
                }
                else_if = {
                    limit = { var:tgp_debate_success_score >= 50 }
                    add = 25
                }
            }
            if = {
                limit = { var:tgp_debate_success_score >= 100 }
                change_influence = major_influence_gain
                scope:my_movement = {
                    event_change_movement_power_effect = {
                        VALUE = event_increase_movement_power_major_value
                    }
                }
            }
            else_if = {
                limit = { var:tgp_debate_success_score >= 75 }
                change_influence = medium_influence_gain
                scope:my_movement = {
                    event_change_movement_power_effect = {
                        VALUE = event_increase_movement_power_medium_value
                    }
                }
            }
            else = {
                change_influence = minor_influence_gain
                scope:my_movement = {
                    event_change_movement_power_effect = {
                        VALUE = event_increase_movement_power_minor_value
                    }
                }
            }
        }
        change_influence = debate_guest_influence_reward_value
    }
    add_trait_xp = {
        trait = confucian_education
        value = {
            value = lifestyle_confucian_education_xp_gain_minor_value
            #High Score
            if = {
                limit = {
                    has_variable = tgp_debate_success_score
                    var:tgp_debate_success_score >= 75
                }
                multiply = 3
            }
            #Good Score
            else_if = {
                limit = {
                    has_variable = tgp_debate_success_score
                    var:tgp_debate_success_score < 75
                    var:tgp_debate_success_score >= 50
                }
                multiply = 1.5
            }
            #Poor Score
            else_if = {
                limit = {
                    has_variable = tgp_debate_success_score
                    var:tgp_debate_success_score < 50
                }
                multiply = 0.8
            }           
        }
    }
}

As written in game/common/scripted_effects/tgp_debate_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls debate_guest_rewards.

Source: game/common/scripted_effects/tgp_debate_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?