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

Goblin Loan Decision #1040

Closed
wants to merge 15 commits into from
79 changes: 79 additions & 0 deletions common/decisions/goblinmoney_decisions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
get_a_loan_from_the_goblins_decision = {
title = get_a_loan_from_the_goblins_title # override title, default: "<key>"; supports dynamic descriptions like in events (first_valid, ...); scope: character
picture = "gfx/interface/illustrations/decisions/goblo.dds"
ai_goal = no
ai_check_interval = 0
selection_tooltip = goblin_money_tooltip
desc = goblin_money_decision_desc
confirm_text = goblin_money_decision_confirm

is_shown = {

highest_held_title_tier > tier_barony
NOT = {
highest_held_title_tier > tier_barony
Copy link
Contributor

Choose a reason for hiding this comment

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

image

you are causing a contradiction, this is why it does not show up at all.

Copy link
Author

Choose a reason for hiding this comment

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

Done,test again before release if its possible

has_trait = owes_money
has_character_flag = borrowedmoney
has_religion = religion:evil_religion
has_government = tribal_government

}
}


cost = {
prestige = 100
}

effect = {
add_gold = 500
# trigger_event=gb.1
add_character_flag = { flag = loanperiod years = 4 }
add_character_flag = { flag = borrowedmoney }
}

ai_potential = {
always = no
}
ai_will_do = {
base = 0
}

}

pay_money_decision = {
title = pay_goblins_back_title # override title, default: "<key>"; supports dynamic descriptions like in events (first_valid, ...); scope: character
picture = "gfx/interface/illustrations/decisions/payback.dds"
ai_goal = no
ai_check_interval = 7
selection_tooltip = pay_goblins_back_tooltip
desc = pay_goblins_back_desc
confirm_text = pay_goblins_back_confirm

is_shown = {
OR = {
has_trait = owes_goblins_money
has_character_flag = borrowedmoney
}
}


cost = {
gold = 575
}

effect = {
remove_character_flag = loanperiod
remove_character_flag = borrowedmoney
remove_trait = owes_goblins_money
add_prestige = 40
}

ai_potential = {
always = no
}
ai_will_do = {
base = 0
}

}
15 changes: 15 additions & 0 deletions common/on_action/checkloanstatus.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
quarterly_playable_pulse = {
effect = {
if = {
limit = {
NOT = {
has_character_flag = loanperiod
}
has_character_flag = borrowedmoney
}
trigger_event = {
id = gb.1
}
}
}
}
23 changes: 23 additions & 0 deletions common/traits/owesmoney_traits.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
owes_goblins_money = {
index = 300
personality = no
compatibility = {

}

stewardship = -2
diplomacy = -1
stress_gain_mult = 0.4
general_opinion = - 5
desc = {
first_valid = {
triggered_desc = {
trigger = {
NOT = { exists = this }
}
desc = trait_owes_goblins_money_desc
}
desc = trait_owes_goblins_money_character_desc
}
}
}
46 changes: 46 additions & 0 deletions events/gb_loan.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
namespace = gb

gb.1 = {
type = character_event
title = gb.1.t
desc = gb.1.t.desc
theme = realm
left_portrait = {
character = root
animation = personality_rational
}
trigger = {
root = {
is_ai = no
}
}

immediate = {
}

# Pay back the loan
# option = {
# name = gb.1.a
# remove_character_flag = loanperiod
# remove_character_flag = borrowedmoney
# pay_short_term_gold = {
# gold = 575
# }
# ai_chance = {
# base = 0
# }
# }

# Defaulted on the loan
option = {
name = gb.1.b
add_trait = owes_goblins_money
remove_character_flag = loanperiod
remove_character_flag = borrowedmoney
add_prestige = -200
popular_opinion = -10
ai_chance = {
base = 0
}
}
}
Binary file added gfx/interface/icons/traits/Money.dds
Binary file not shown.
Binary file added gfx/interface/icons/traits/owes_money.dds
Binary file not shown.
Binary file added gfx/interface/illustrations/decisions/goblo.dds
Binary file not shown.
Binary file not shown.
15 changes: 15 additions & 0 deletions localization/english/goblin_money_l_english.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
l_english:
get_a_loan_from_the_goblins_title:0 "Request Loan from a Cartel"
get_a_loan_from_the_goblins_tooltip:0 "Request a Loan through your contact representing the nearest Goblin Cartel."
get_a_loan_from_the_goblins_decision_desc:0 "One can only hope that this won't be too complicated of a process, but the Goblin Cartels aren't exactly known for making matters too easy for folks who want them to throw money out of their pockets. But, the machinations that have been carefully planned for the future of these lands certainly deserve some external investement. The future... it can only belong to those who are strong enough to stride boldly towards it, and if this isn't a bold stride, what is? The Goblins will likely see this as a new age of some sort of a dubious partnership, and hope that when comes time, we are forced to remember their gestures of goodwill."
get_a_loan_from_the_goblins_decision_confirm:0 "It's a simple loan, nothing more."
pay_goblins_back_title:0 "Repay Loan from Cartel"
pay_goblins_back_tooltip:0 "Repay the loan you had taken from the nearest Goblin Cartel."
pay_goblins_back_decision_desc:0 "It is high time these lands were eased of their burdens, and what greater burden is there on any land to be financially dependent on external forces that seek to scrounge off it? Indeed the time has come, and the wealth that the Goblins had provided in the past shall now be returned in plenty."
pay_goblins_back_decision_confirm:0 "It was but a tool for greater future success."
gb.1.t:0 "Trade Cartel"
gb.1.t.desc:0 "I remain terrified yet excited all the same for this opportunity, great [root.GetLadyLord]! Cast me away at your leisure, and we'll both see what these Cartels have in store."
gb.1.a:0 "The only Goblins that can instruct legitimate business are from the [gb_1.GetName]."
gb.1.b:0 "The [gb_2.GetName] represent the perfect middle ground as far as wealth accumulation goes."
trait_owes_goblins_money:0 "Indebted to Cartels"
trait_owes_goblis_money_character_desc:0 "[ROOT.GetCharacter.GetFirstNameNoTooltip] is known to owe significant sums of money to Goblin Trade Cartels, and in the long term risks the integrity of their image alongside potentially even that of their nation."