Saint Chad and Oliver skull
This commit is contained in:
parent
2fb5cc6627
commit
0cb6352cb3
6 changed files with 304 additions and 2 deletions
|
|
@ -118,3 +118,32 @@ st_edwards_crown_template = {
|
|||
|
||||
unique = yes
|
||||
}
|
||||
|
||||
skull_chad_ironside_template = {
|
||||
can_equip = {
|
||||
always = yes
|
||||
}
|
||||
|
||||
can_benefit = {
|
||||
OR = {
|
||||
christianity_or_syncretic_with_christianity_trigger = { CHARACTER = root }
|
||||
has_religion = religion:britannic_religion
|
||||
has_religion = religion:thelema_religion
|
||||
}
|
||||
}
|
||||
|
||||
fallback = {
|
||||
monthly_prestige = 1
|
||||
}
|
||||
|
||||
can_repair = {
|
||||
always = yes
|
||||
}
|
||||
|
||||
ai_score = {
|
||||
value = 100
|
||||
}
|
||||
|
||||
unique = yes
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -67,4 +67,24 @@ ak_mace_modifier = {
|
|||
monthly_martial_lifestyle_xp_gain_mult = 0.15
|
||||
monthly_dynasty_prestige = 0.01
|
||||
different_faith_opinion = -10
|
||||
}
|
||||
}
|
||||
|
||||
# Skull of Saint Chad
|
||||
skull_saint_chad_modifier = {
|
||||
court_grandeur_baseline_add = 2
|
||||
monthly_piety = 0.3
|
||||
learning = 1
|
||||
clergy_opinion = 10
|
||||
health = 0.25
|
||||
negate_health_penalty_add = 0.5
|
||||
}
|
||||
|
||||
# Skull of the Ironside
|
||||
skull_ironside_modifier = {
|
||||
court_grandeur_baseline_add = 2
|
||||
monthly_prestige = 0.3
|
||||
martial = 1
|
||||
dread_baseline_add = 10
|
||||
vassal_opinion = 5
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,13 @@ on_game_start = {
|
|||
effect = {
|
||||
##NEOW
|
||||
|
||||
### CHAD / IRONSIDE SKULL ###
|
||||
# Spawn the historical skull at game start in Lichfield.
|
||||
# Its creation effect immediately resolves its identity from the owner's religion.
|
||||
title:c_staffordshire.holder ?= {
|
||||
create_artifact_chad_ironside_skull_effect = { OWNER = this }
|
||||
}
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
government_allows = administrative
|
||||
|
|
|
|||
126
common/on_action/inventory_on_actions.txt
Normal file
126
common/on_action/inventory_on_actions.txt
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
# An artifact has changed ownership
|
||||
# root = the artifact
|
||||
# scope:owner = the person who now holds the artifact
|
||||
# scope:old_owner = the person who used to hold the artifact
|
||||
on_artifact_changed_owner = {
|
||||
events = {
|
||||
artifact.0011
|
||||
artifact.0101
|
||||
}
|
||||
|
||||
effect = {
|
||||
save_scope_as = artifact
|
||||
grant_banner_house_claim_effect = yes
|
||||
every_artifact_claimant = { #This on_action is not triggered on succession for the ones getting the claim, so we force it here
|
||||
trigger_event = {
|
||||
on_action = on_artifact_claim_gained
|
||||
}
|
||||
}
|
||||
|
||||
# Re-identify the Chad/Ironside skull whenever it changes hands.
|
||||
if = {
|
||||
limit = {
|
||||
has_variable = neow_chad_ironside_skull
|
||||
}
|
||||
neow_update_chad_ironside_skull_effect = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# An artifact has changed ownership due to succession
|
||||
# This is called just before the artifact changes hands.
|
||||
# If you destroy it or change its owner, it won't change hands
|
||||
# on_artifact_changed_owner will be called as normal when it changes hands
|
||||
# root = the artifact
|
||||
# scope:owner = the person who now holds the artifact
|
||||
# scope:old_owner = the person who used to hold the artifact
|
||||
# scope:old_primary = the heir's primary before this succession happened
|
||||
on_artifact_succession = {
|
||||
events = {
|
||||
artifact.0031
|
||||
}
|
||||
}
|
||||
|
||||
# An artifact has reached 0 durability due to decay
|
||||
# root = the artifact
|
||||
# scope:owner = the person who owns the artifact
|
||||
on_artifact_broken_through_decay = {
|
||||
events = {
|
||||
artifact.1000
|
||||
}
|
||||
}
|
||||
|
||||
# An artifact has reached 0 durability due to an effect ( ex. damage )
|
||||
# root = the artifact
|
||||
# scope:owner = the person who owns the artifact
|
||||
on_artifact_broken_through_effect = {
|
||||
events = {
|
||||
artifact.0021
|
||||
}
|
||||
}
|
||||
|
||||
# Character gained a claim on an artifact
|
||||
# root = character
|
||||
# scope:owner = current artifact owner
|
||||
# scope:artifact = claimed artifact
|
||||
on_artifact_claim_gained = {
|
||||
effect = {
|
||||
send_interface_message = {
|
||||
type = msg_artifact_claim_gained
|
||||
title = artifact_claim_gained_notification
|
||||
right_icon = scope:artifact
|
||||
left_icon = scope:owner
|
||||
|
||||
show_as_tooltip = {
|
||||
add_personal_artifact_claim = scope:artifact
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Character lost a claim on an artifact
|
||||
# root = character
|
||||
# scope:owner = current artifact owner
|
||||
# scope:artifact = artifact
|
||||
on_artifact_claim_lost = {
|
||||
effect = {
|
||||
if = {
|
||||
limit = {
|
||||
scope:owner != root
|
||||
}
|
||||
send_interface_message = {
|
||||
type = msg_artifact_claim_lost
|
||||
title = artifact_claim_lost_notification
|
||||
right_icon = scope:artifact
|
||||
left_icon = scope:owner
|
||||
|
||||
show_as_tooltip = {
|
||||
remove_personal_artifact_claim = scope:artifact
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Fired when an artifact reaches durability <= ARTIFACT_LOW_DURABILITY defıned in 00_defines.txt
|
||||
# root = the artifact owner
|
||||
on_artifact_durability_low = {
|
||||
random_events = {
|
||||
chance_to_happen = 50
|
||||
1000 = 0
|
||||
50 = artifact.3000
|
||||
50 = artifact.3010
|
||||
50 = artifact.3020
|
||||
50 = artifact.3030
|
||||
50 = artifact.3040
|
||||
}
|
||||
}
|
||||
|
||||
# Fired when an artifact with hıgh quality reaches durability <= ARTIFACT_VERY_LOW_DURABILITY defıned in 00_defines.txt
|
||||
# root = the artifact
|
||||
# scope:owner = the person who owns the artifact
|
||||
on_artifact_durability_very_low = {
|
||||
events = {
|
||||
artifact.3050
|
||||
}
|
||||
}
|
||||
|
|
@ -306,4 +306,98 @@ create_artifact_ak_mace_effect = {
|
|||
set_variable = ak_mace
|
||||
save_scope_as = epic
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
create_artifact_chad_ironside_skull_effect = {
|
||||
$OWNER$ = { save_scope_as = owner }
|
||||
set_artifact_rarity_illustrious = yes
|
||||
|
||||
scope:owner = {
|
||||
create_artifact = {
|
||||
name = skull_saint_chad_name
|
||||
description = skull_saint_chad_desc
|
||||
template = skull_chad_ironside_template
|
||||
type = pedestal
|
||||
visuals = human_skull
|
||||
wealth = scope:wealth
|
||||
quality = scope:quality
|
||||
modifier = skull_saint_chad_modifier
|
||||
decaying = no
|
||||
save_scope_as = newly_created_artifact
|
||||
history = {
|
||||
type = created_before_history
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
scope:newly_created_artifact = {
|
||||
set_variable = { name = historical_unique_artifact value = yes }
|
||||
set_variable = { name = neow_chad_ironside_skull value = yes }
|
||||
save_scope_as = epic
|
||||
|
||||
# Make the initial identity match the first owner.
|
||||
neow_chad_ironside_skull_effect = yes
|
||||
}
|
||||
}
|
||||
|
||||
neow_chad_ironside_skull_effect = {
|
||||
if = {
|
||||
limit = {
|
||||
has_variable = neow_chad_ironside_skull
|
||||
exists = artifact_owner
|
||||
}
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
artifact_owner = {
|
||||
OR = {
|
||||
has_religion = religion:britannic_religion
|
||||
has_religion = religion:thelema_religion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Britannic or Thelemic interpretation: the Ironside.
|
||||
set_artifact_name = skull_ironside_name
|
||||
set_artifact_description = skull_ironside_desc
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
has_artifact_modifier = skull_saint_chad_modifier
|
||||
}
|
||||
remove_artifact_modifier = skull_saint_chad_modifier
|
||||
}
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
has_artifact_modifier = skull_ironside_modifier
|
||||
}
|
||||
}
|
||||
add_artifact_modifier = skull_ironside_modifier
|
||||
}
|
||||
}
|
||||
else = {
|
||||
# All other owners: Saint Chad.
|
||||
set_artifact_name = skull_saint_chad_name
|
||||
set_artifact_description = skull_saint_chad_desc
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
has_artifact_modifier = skull_ironside_modifier
|
||||
}
|
||||
remove_artifact_modifier = skull_ironside_modifier
|
||||
}
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
has_artifact_modifier = skull_saint_chad_modifier
|
||||
}
|
||||
}
|
||||
add_artifact_modifier = skull_saint_chad_modifier
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue