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

Scripted trigger

can_be_hashishiyah

can_be_hashishiyah = yes

game/common/scripted_triggers/00_stress_triggers.txt, line 95 (37 lines). No parameters.

can_be_hashishiyah is a scripted trigger in Crusader Kings III, written at line 95 of its file. It takes no parameters: can_be_hashishiyah = yes (or no). The game's script calls it in 30 places, among them A Delightful Treat (event ach_coronation.0027), A Meeting of Houses (event ep2_wedding.3400) and Growing Debauchery (event court_yearly.1000). Patch 1.20.1.2, from game/common/scripted_triggers/00_stress_triggers.txt.

What it checks

  • Is an Adult
  • Does not have the Trait: Drunkard
  • Does not have the Trait: Hashishiyah
  • Does not have the Trait: Temperate
  • Not all of these

    • Their rite:
      • trait_is_sin_rite = hashishiyah
    • Has the Trait: Zealous
  • One of these

    • Their faith:
      • religion_tag = islam_religion
    • or

      All of these

      • One of these

        • Their capital province:
          • save_temporary_scope_as = my_home_province
        • or

          Their liege’s capital province:
          • save_temporary_scope_as = my_home_province
      • scope:my_home_province:
        • Is not in the Europe region
        • Is not in the East Asia region

• 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 (37 lines of game script)
can_be_hashishiyah = {
	is_adult = yes
	NOR = { # Cannot be Temperate or already have a Substance Abuse trait.
		has_trait = drunkard
		has_trait = hashishiyah
		has_trait = temperate
	}

	NAND = { # Cannot be Zealous if faith views hashish as sinful
		rite = { trait_is_sin_rite = hashishiyah }
		has_trait = zealous
	}

	OR = {
		# Muslims always have access to Hashish...
		faith = {
			religion_tag = islam_religion
		}
		# Otherwise you must not be located in Europe (where Hashish was relatively unknown until modern times.)
		AND = {
			OR = {
				capital_province ?= {
					save_temporary_scope_as = my_home_province
				}
				liege.capital_province ?= {
					save_temporary_scope_as = my_home_province
				}
			}
			scope:my_home_province = {
				NOR = {
					geographical_region = world_europe
					geographical_region = world_asia
				}
			}
		}
	}
}

As written in game/common/scripted_triggers/00_stress_triggers.txt.

Where it is used

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

Events (25)

19 more

Scripted effects inside an event file (1)

  • stress_threshold_fallback_event_select_options_effect

Scripted triggers inside an event file (2)

  • court_1000_valid_child
  • court_1001_valid_debaucher

Scripted character templates (1)

  • location_pilgrim_template

Source: game/common/scripted_triggers/00_stress_triggers.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?