Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Night Elf Markings Event #267

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions common/decisions/wc_minor_decisions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
choose_markings_decision = {
picture = "gfx/interface/illustrations/decisions/decision_recruitment.dds"

desc = choose_markings_decision_desc
selection_tooltip = choose_markings_decision_tooltip

ai_check_interval = 96

is_shown = {
has_elunes_marks_trigger = yes
age >= 16
}

cooldown = { days = 5 }
ercarp marked this conversation as resolved.
Show resolved Hide resolved

is_valid_showing_failures_only = {
is_imprisoned = no
ercarp marked this conversation as resolved.
Show resolved Hide resolved
}

effect = {
trigger_event = WCNELF.1
custom_tooltip = choose_markings_decision_effect_tooltip

}

ai_potential = {
always = yes
}

ai_will_do = {
base = 100
}
}
60 changes: 60 additions & 0 deletions common/modifiers/wc_night_elf_modifiers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
## STATS ARE PLACEHOLDERS
### I added some rough notes on which traits/qualities each marking embodies

night_elf_bear_markings = { # Balance, Wisdom, Patience, Ferocity
icon = learning_positive
martial = 3
learning = 2
Comment on lines +6 to +7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just attribute bonuses look boring. Check for more modifiers:
https://ck3.paradoxwikis.com/Modifier_list
Also, we have the balance spreadsheet. I've added your first marking as an example.
https://docs.google.com/spreadsheets/d/18zS-FAte6nsejx7rpzSmVuioRXps3iWSvSkx_xRJSWI/edit#gid=1390852137&range=A43:A46

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working on balancing these right now and changing some of the modifiers to be more interesting.

}

night_elf_blades_markings = { # Courage, Retribution
icon = learning_positive
intrigue = 3
prowess = 2
}

night_elf_crane_markings = { # Teacher, Healer
icon = learning_positive
learning = 5
}

night_elf_leaf_markings = { # Healing, Harmony, Balance
icon = learning_positive
learning = 4
stewardship = 1
}

night_elf_claws_markings = { # Impatient, Proud, The "Ultimate Hunter"
icon = learning_positive
martial = 5
}

night_elf_wings_markings = { # Learning, Studying, Observation, Great Communication
icon = learning_positive
learning = 4
diplomacy = 1
}

night_elf_serpent_markings = { # Trance, Medication, Dreaming, Rebirth
icon = learning_positive
intrigue = 2
health = 0.1
}

night_elf_owl_markings = { # Silence, Secrecy, Spy, Guardian
icon = learning_positive
intrigue = 5
}

night_elf_shadow_markings = { # Darkness, Night Warrior, Wrath, Mystery
icon = learning_positive
intrigue = 3
martial = 2
}

night_elf_no_markings = {
icon = learning_negative
diplomacy = 3
monthly_piety = -0.1
different_faith_opinion = 10
}
3 changes: 2 additions & 1 deletion common/on_action/childhood_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ on_15th_birthday = {
on_16th_birthday = {
trigger = { age = 16 }

events = {
events = {
childhood_education.9103 #To make sure that every child gets a education
child_personality.4011 #To make sure everyone gets a sexuality
childhood.0900#victim transforms into opinion modifier on adulthood
Expand All @@ -134,6 +134,7 @@ on_16th_birthday = {
coming_of_age.0003#Martial
coming_of_age.0004#Intrigue
coming_of_age.0005#Diplomacy
WCNELF.1 # Night Elf markings
delay = { days = 1 }
childhood_education.0005 #To remove education focus
}
Expand Down
12 changes: 12 additions & 0 deletions common/scripted_effects/wc_religious_effects.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
remove_facial_markings_effect = {
remove_character_modifier = night_elf_blades_markings
remove_character_modifier = night_elf_crane_markings
remove_character_modifier = night_elf_leaf_markings
remove_character_modifier = night_elf_claws_markings
remove_character_modifier = night_elf_wings_markings
remove_character_modifier = night_elf_serpent_markings
remove_character_modifier = night_elf_owl_markings
remove_character_modifier = night_elf_shadow_markings
remove_character_modifier = night_elf_no_markings
remove_character_modifier = night_elf_bear_markings
}
3 changes: 0 additions & 3 deletions common/scripted_triggers/wc_portrait_triggers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ has_elunes_marks_trigger = {
is_adult = yes

scope:faith = { has_doctrine_parameter = elunes_marks_enabled }

has_scripted_appearance_trigger = no
is_from_ruler_designer = no
}

### Has <race> portrait
Expand Down
121 changes: 121 additions & 0 deletions events/wc_events/wc_night_elf_events.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
namespace = WCNELF

WCNELF.1 = { # Bear, Blades, Crane
title = WCNELF_1_TITLE
desc = WCNELF_1_DESC

trigger = {
has_elunes_marks_trigger = yes
}

theme = education
override_background = {
event_background = wilderness_forest
}

right_portrait = {
character = root
animation = personality_rational
}

immediate = {
hidden_effect = {
remove_facial_markings_effect = yes
}
}

option = {
name = WCNELF_1_BEAR
add_character_modifier = night_elf_bear_markings
}

option = {
name = WCNELF_1_BLADES
add_character_modifier = night_elf_blades_markings
}

option = {
name = WCNELF_1_CRANE
add_character_modifier = night_elf_crane_markings
}

option = {
name = WCNELF_1_NEXT
trigger_event = WCNELF.2
}
}

WCNELF.2 = { # Leaf, Claws, Wings
title = WCNELF_1_TITLE
desc = WCNELF_1_DESC

theme = education
override_background = {
event_background = wilderness_forest
}

right_portrait = {
character = root
animation = personality_rational
}

option = {
name = WCNELF_1_LEAF
add_character_modifier = night_elf_leaf_markings
}

option = {
name = WCNELF_1_CLAWS
add_character_modifier = night_elf_claws_markings
}

option = {
name = WCNELF_1_WINGS
add_character_modifier = night_elf_wings_markings
}

option = {
name = WCNELF_1_NEXT
trigger_event = WCNELF.3
}
}

WCNELF.3 = { # Serpent, Owl, Shadow
title = WCNELF_1_TITLE
desc = WCNELF_1_DESC

theme = education
override_background = {
event_background = wilderness_forest
}

right_portrait = {
character = root
animation = personality_rational
}

option = {
name = WCNELF_1_SERPENT
add_character_modifier = night_elf_serpent_markings
}

option = {
name = WCNELF_1_OWL
add_character_modifier = night_elf_owl_markings
}

option = {
name = WCNELF_1_SHADOW
add_character_modifier = night_elf_shadow_markings
}

option = {
name = WCNELF_1_NOMARKING
add_character_modifier = night_elf_no_markings
}

option = {
name = WCNELF_1_NEXT
trigger_event = WCNELF.1
}
}
42 changes: 33 additions & 9 deletions gfx/portraits/portrait_modifiers/wc_facial_markings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
base = 0
modifier = {
add = 2
has_elunes_marks_trigger = yes
#has_elunes_marks_trigger = yes
NOT = { has_trait = zealous }
}
}
Expand All @@ -34,7 +34,10 @@
base = 0
modifier = {
add = 50
has_elunes_marks_trigger = yes
OR = {
#has_elunes_marks_trigger = yes
has_character_modifier = night_elf_bear_markings
}
}
}
}
Expand All @@ -52,7 +55,10 @@
base = 0
modifier = {
add = 50
has_elunes_marks_trigger = yes
OR = {
#has_elunes_marks_trigger = yes
has_character_modifier = night_elf_blades_markings
}
}
}
}
Expand All @@ -69,7 +75,10 @@
base = 0
modifier = {
add = 50
has_elunes_marks_trigger = yes
OR = {
#has_elunes_marks_trigger = yes
has_character_modifier = night_elf_crane_markings
}
}
}
}
Expand All @@ -87,7 +96,10 @@
base = 0
modifier = {
add = 50
has_elunes_marks_trigger = yes
OR = {
#has_elunes_marks_trigger = yes
has_character_modifier = night_elf_leaf_markings
}
}
}
}
Expand All @@ -105,7 +117,10 @@
base = 0
modifier = {
add = 50
has_elunes_marks_trigger = yes
OR = {
#has_elunes_marks_trigger = yes
has_character_modifier = night_elf_claws_markings
}
}
}
}
Expand All @@ -123,7 +138,10 @@
base = 0
modifier = {
add = 50
has_elunes_marks_trigger = yes
OR = {
#has_elunes_marks_trigger = yes
has_character_modifier = night_elf_wings_markings
}
}
}
}
Expand All @@ -141,7 +159,10 @@
base = 0
modifier = {
add = 50
has_elunes_marks_trigger = yes
OR = {
#has_elunes_marks_trigger = yes
has_character_modifier = night_elf_serpent_markings
}
}
}
}
Expand All @@ -159,7 +180,10 @@
base = 0
modifier = {
add = 50
has_elunes_marks_trigger = yes
OR = {
#has_elunes_marks_trigger = yes
has_character_modifier = night_elf_owl_markings
}
}
}
}
Expand Down
28 changes: 28 additions & 0 deletions localization/english/wc_markings_l_english.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
l_english:

# Portrait Modifiers
night_elf_bear_markings:0 "Bear Markings"
night_elf_blades_markings:0 "Blade Markings"
night_elf_crane_markings:0 "Crane Markings"
night_elf_leaf_markings:0 "Leaf Markings"
night_elf_claws_markings:0 "Claw Markings"
night_elf_wings_markings:0 "Wing Markings"
night_elf_serpent_markings:0 "Serpent Markings"
night_elf_owl_markings:0 "Owl Markings"
night_elf_shadow_markings:0 "Shadow Markings"
night_elf_no_markings:0 "No Markings"

## NELF MARKINGS EVENT
WCNELF_1_TITLE:0 "Choose Your Markings"
WCNELF_1_DESC:0 "PH"
WCNELF_1_BEAR:0 "Bear"
WCNELF_1_BLADES:0 "Blades"
WCNELF_1_CRANE:0 "Crane"
WCNELF_1_LEAF:0 "Leaf"
WCNELF_1_CLAWS:0 "Claws"
WCNELF_1_WINGS:0 "Wings"
WCNELF_1_SERPENT:0 "Serpent"
WCNELF_1_OWL:0 "Owl"
WCNELF_1_SHADOW:0 "Shadow"
WCNELF_1_NOMARKING:0 "Tradition isn't everything."
WCNELF_1_NEXT:0 "Perhaps something else..."