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

Scripted effect · Tours and Tournaments files

tournament_place_wager_effect

tournament_place_wager_effect = { CONTENDER = … }

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 3606 (34 lines). Parameters: $CONTENDER$.

tournament_place_wager_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 3606 of its file. A call passes 1 parameter: CONTENDER. The game's script calls it in 1 place, among them …: Place Your Bets (event tournament_events.1000). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

The comment above it in the file

Place wager on a contestant

What it does

  • scope:activity › Activity log entry › You:
    • remove_short_term_gold = tiny_gold_value
  • If

    • scope:activity:
      • has_current_phase = tournament_phase_horse_race

    Then

    • If … horse, …, wins the race:

    Otherwise

    • If the winner is …:

• 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 (34 lines of game script)
tournament_place_wager_effect = {
	$CONTENDER$ = { save_scope_as = wager_target }
	set_variable = {
		name = tournament_wager_stake
		value = tiny_gold_value
	}
	set_variable = {
		name = tournament_wager_payout
		value = tournament_wager_payout_value
	}
	set_variable = {
		name = tournament_wager_target
		value = scope:wager_target
	}
	scope:activity = {
		add_activity_log_entry = {
			key = tournament_placed_wager_log
			tags = { wager }
			score = 25
			character = root
			target = scope:wager_target

			# Effects
			root = { remove_short_term_gold = tiny_gold_value }
		}
	}
	if = {
		limit = {
			scope:activity = { has_current_phase = tournament_phase_horse_race }
		}
		custom_tooltip = tournament_events.1000.horse_winnings_tt
	}
	else = { custom_tooltip = tournament_events.1000.winnings_tt }
}

As written in game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

Where it is used

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

Events (1)

Source: game/common/scripted_effects/04_dlc_ep2_tournament_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?