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_host_rewards_effect

debate_host_rewards_effect = yes

game/common/scripted_effects/tgp_debate_scripted_effects.txt, line 340 (209 lines). No parameters.

debate_host_rewards_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 340 of its file. It takes no parameters: debate_host_rewards_effect = yes. The game's script calls it in 1 place, among them debate_disburse_activity_host_rewards (scripted effect). Its body carries 4 texts 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

• 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 (120 lines of game script)
debate_host_rewards_effect = {
    if = {
        # Host won debate
        limit = {
            this = scope:activity.var:debate_winner
        }
        # Activity is imperial debate (determines favored movement)
        if = {
            limit = {
                scope:activity = {
                    has_activity_option = {
                        category = special_type
                        option = debate_type_favor
                    }
                }
            }
            root.top_participant_group:dynastic_cycle ?= {
                # Make favored movement
                save_scope_as = my_movement
            }
            # We raise our own Movement Power
            custom_tooltip = event_increase_movement_power_major_effect_tooltip
            scope:my_movement = {
                make_movement_favored_effect = yes
                event_change_movement_power_effect = {
                    VALUE = event_increase_movement_power_major_value
                }
                switch = {
                    trigger = participant_group_type
                    pro_hegemon_movement = {
                        if = {
                            limit = {
                                situation:dynastic_cycle = {
                                    situation_top_has_catalyst = catalyst_movement_gained_power_pro_hegemon
                                }
                            }
                            situation:dynastic_cycle = {
                            	trigger_situation_catalyst = catalyst_movement_gained_power_pro_hegemon
                            }
                        }
                    }
                    advancement_movement = {
                        if = {
                            limit = {
                                situation:dynastic_cycle = {
                                    situation_top_has_catalyst = catalyst_movement_gained_power_advancement
                                }
                            }
                            situation:dynastic_cycle = {
                            	trigger_situation_catalyst = catalyst_movement_gained_power_advancement
                            }                            
                        }
                    }
                    expansion_movement = {
                        if = {
                            limit = {
                                situation:dynastic_cycle = {
                                    situation_top_has_catalyst = catalyst_movement_gained_power_expansion
                                }
                            }
                            situation:dynastic_cycle = {
                            	trigger_situation_catalyst = catalyst_movement_gained_power_expansion
                            }
                        }
                    }
                    conservative_movement = {
                        if = {
                            limit = {
                                situation:dynastic_cycle = {
                                    situation_top_has_catalyst = catalyst_movement_gained_power_conservative
                                }
                            }
                            situation:dynastic_cycle = {
                            	trigger_situation_catalyst = catalyst_movement_gained_power_conservative
                            }
                        }
                    }
                }
            }
        }
        else = {
            make_movement_leader_effect = yes
        }
    }
    # Then dole out secondary rewards
    if = {
        # We have the intent to gain disciples and gained at least one.
        limit = { has_variable_list = debate_disciples }
        if = {
            # Code math starts at 0
            limit = {
                variable_list_size = {
                    name = debate_disciples
                    value >= 1
                }
                num_of_relation_disciple >= 1
            }
            ordered_in_list = {
                variable = debate_disciples
                order_by = learning
                save_scope_as = disciple_1
            }
        }
        if = {
            limit = {
                variable_list_size = {
                    name = debate_disciples
                    value >= 2
                }
                num_of_relation_disciple >= 2
            }
            ordered_in_list = {
                variable = debate_disciples
                order_by = learning
                position = 1
                save_scope_as = disciple_2
            }
        }
        if = {
            limit = {

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

The first 120 of its 209 lines; the rest is in game/common/scripted_effects/tgp_debate_scripted_effects.txt from line 340.

Where it is used

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

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?