Hi people,
I found the CK2+ loean feature rather limitate so I contructed one on my own.
FEATURES :
*******
2 types of Loans :
Asking a bank : which is the actual ck2+ system (thank's WIZ).
Asking your vassals
Crispy feature, if you don't refund your loan, the bank will fund a pretunder to overthrow you !
State of devellopment, as you may not know I'm a shitty coder, so I 'm a bit stuck with the vassal event chain, giveme thoughts !
I found the CK2+ loean feature rather limitate so I contructed one on my own.
FEATURES :
*******
2 types of Loans :
Asking a bank : which is the actual ck2+ system (thank's WIZ).
Asking your vassals
Crispy feature, if you don't refund your loan, the bank will fund a pretunder to overthrow you !
State of devellopment, as you may not know I'm a shitty coder, so I 'm a bit stuck with the vassal event chain, giveme thoughts !
Code:
#I want to take a loan
character_event = {
id= 64420
desc= "EVTDESC64420"
picture = GFX_evt_council
is_triggered_only = yes
option = {
name = "EVTOPTA64420" # Confirm Borrow money from a vassal
ai_chance = {
factor = 1
}#ai
character_event = { id = 64421 tooltip = "EVTTOOLTIP64421" }
any_vassal = {letter_event = { id = 64421 days = 10 tooltip = "EVTTOOLTIPxxx" } }
}#opta
option = {
name = "EVTOPTBXXX" #change my mind
}#optb
}#evt
# Vassals receive the request
letter_event = {
id= 64421
desc= "EVTDESC64421"
picture = GFX_evt_council
is_triggered_only = yes
option = {
name = "EVTOPTA64421" #ACCEPT
FROM = {
if= {
limit = {
wealth = 200 #controls if he has enough money
liege = { primary_title = { tier = EMPEROR } }
transfer_wealth = {
to = PREVPREV
value = 200
}#xfer
}#if
if = {
limit = {
wealth = 150 #controls if he has enough money
liege = { primary_title = { tier = KING } }
}#lim
transfer_wealth = {
to = PREVPREV
value = 150
}#xfer
}#if
if = {
limit = {
wealth = 100 #controls if he has enough money
liege = { primary_title = { tier = DUKE } }
}#lim
transfer_wealth = {
to = PREVPREV
value = 100
}#xfer
}#if
if = {
limit = {
wealth = 50 #controls if he has enough money
liege = { primary_title = { tier = COUNT } }
}#lim
transfer_wealth = {
to = PREVPREV
value = 50
}#xfer
}#if
}#from
}#opt
option = {
name = "EVTOPTBXXX" #REFUSE
character_event = { id = 64424 tooltip = "EVTTOOLTIPxxxx" } #Ruler informed of refusal
}#opt
}#evt
#Ruler informed of the loan attempt result
letter_event = {
id = 64223
desc = "EVTDESC64223"
picture = GFX_evt_tyroshi
is_triggered_only
option = {
name = "EVTOPTA64223" #OK
}#opt
}#evt
Last edited: