Files
lords-of-ash/lords_of_ash/events/sandbox_events.txt
T
jpmschweitzerandClaude Opus 4.6 96bcaa3558 feat(events): add Feruchemy, training, metal supply, and sandbox events
Add Feruchemy activation chain (mistborn_feruchemy.0001/0010) for
Terris characters discovering their art and creating first metalminds.
Add Allomantic training events (mistborn_training.0001/0010/0020/0030)
for mentoring family members. Add metal supply events
(mistborn_metal.0001/0010/0020/0030) for reserve management and
wartime scarcity. Add sandbox testing event (mistborn_sandbox.0001)
for voluntary metallic arts discovery.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 22:36:31 +01:00

169 lines
3.6 KiB
Plaintext

############################################
# Sandbox Mode Events
# "Discover Your Metallic Arts" — voluntary testing for potential
# Only available in Sandbox game mode
############################################
namespace = mistborn_sandbox
# ============================================================
# TESTING YOUR BLOOD
# Character undergoes voluntary trauma to test for metallic potential
# Results depend on culture — Noble Scadrian, Skaa, or Terris
# ============================================================
mistborn_sandbox.0001 = {
type = character_event
title = mistborn_sandbox.0001.t
desc = mistborn_sandbox.0001.desc
theme = learning
left_portrait = {
character = root
animation = stress
}
trigger = {
is_sandbox_mode_trigger = yes
NOT = { is_allomancer_trigger = yes }
NOT = { is_feruchemist_trigger = yes }
}
immediate = {
# Determine outcome based on culture
if = {
limit = { culture = culture:noble_scadrian }
random_list = {
40 = {
# Allomantic potential found
add_trait = trait_allomantic_potential
set_variable = {
name = sandbox_discovery_result
value = 1
}
}
60 = {
# No potential
set_variable = {
name = sandbox_discovery_result
value = 0
}
}
}
}
else_if = {
limit = { culture = culture:skaa }
random_list = {
20 = {
# Allomantic potential found (diluted bloodlines)
add_trait = trait_allomantic_potential
set_variable = {
name = sandbox_discovery_result
value = 1
}
}
80 = {
# No potential
set_variable = {
name = sandbox_discovery_result
value = 0
}
}
}
}
else_if = {
limit = { culture = culture:terris }
random_list = {
40 = {
# Feruchemical potential found
add_trait = trait_feruchemy_potential
set_variable = {
name = sandbox_discovery_result
value = 2
}
}
15 = {
# Allomantic potential found (rare for Terris)
add_trait = trait_allomantic_potential
set_variable = {
name = sandbox_discovery_result
value = 1
}
}
45 = {
# No potential
set_variable = {
name = sandbox_discovery_result
value = 0
}
}
}
}
else = {
# Other cultures — low chance
random_list = {
15 = {
add_trait = trait_allomantic_potential
set_variable = {
name = sandbox_discovery_result
value = 1
}
}
85 = {
set_variable = {
name = sandbox_discovery_result
value = 0
}
}
}
}
}
# Option A: Allomantic potential found — snap immediately
option = {
name = mistborn_sandbox.0001.a
trigger = {
has_variable = sandbox_discovery_result
var:sandbox_discovery_result = 1
}
# Immediately snap
activate_allomancy_effect = yes
add_stress = 30
remove_variable = sandbox_discovery_result
ai_chance = {
base = 100
}
}
# Option B: Feruchemical potential found — activate
option = {
name = mistborn_sandbox.0001.b
trigger = {
has_variable = sandbox_discovery_result
var:sandbox_discovery_result = 2
}
# Immediately activate Feruchemy
remove_trait = trait_feruchemy_potential
add_trait = trait_feruchemist
add_stress = 20
remove_variable = sandbox_discovery_result
ai_chance = {
base = 100
}
}
# Option C: No potential found
option = {
name = mistborn_sandbox.0001.c
trigger = {
has_variable = sandbox_discovery_result
var:sandbox_discovery_result = 0
}
add_stress = 40
add_gold = 100 # Partial refund
remove_variable = sandbox_discovery_result
ai_chance = {
base = 100
}
}
}