This repository has been archived by the owner on May 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.hpl
60 lines (53 loc) · 2.01 KB
/
main.hpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// A reimplementaion of the Anschluss event in HPL.
// Everything from the event code itself to the localisation is here.
// The only parts that still are old Clausewitz code are those that
// still need proper implementation into HPL.
#include <libpdx.hpl>
newMod("build/output", "Event Modding", "1.12.*", {true, false, true})
scope immediateEffect = {
hidden_effect = {
addThreat(12, "Anschluss")
}
}
scope results = {
if isOwnedBy(4, "AUS") {
addCoreOf(4, "GER")
}
if isOwnedBy(152, "AUS") {
addCoreOf(152, "GER")
}
if isOwnedBy(153, "AUS") {
addCoreOf(153, "GER")
}
if isOwnedBy(848, "AUS") {
addCoreOf(848, "GER")
}
AUS = {
every_unit_leader = {
set_nationality = GER
}
}
annexCountry("AUS", true)
addPoliticalPower("ROOT", 75)
setCountryFlag("AUS_annexed")
addWarSupport("ROOT", 10)
addStability("ROOT", 5)
USA = {
setCountryFlag(flag = "USA_anschluss_window", days = 60, value = 1)
}
customEffectTooltip("Uses Austrian gold to reduce the cost of §YMEFO bills§!.")
hidden_effect = { # Having it appear twice might be confusing
GER_mefo_bills_level_down = yes
GER_mefo_bills_level_down = yes
}
customEffectTooltip("Modify §YMEFO Bills§! by §G+0.10§! Daily Political Power Gain")
add_to_variable = { var = GER_mefo_bill_counter value = -10 }
if hasDlc("Death or Dishonor") && countryExists("YUG") && hasWar("YUG") == false {
countryEvent(id = "DOD_yugoslavia.30", days = 4)
}
hidden_effect = {
newsEvent(hours = 6, id = "news.36")
}
}
event anschluss = newEvent(namespace = "germany", id = 0, title = "Anschluss", description = "Repeated uprisings in Austria clearly show that the people there long to be united with our Reich. It is now time to take action and allow the will of the people to be made manifest.", imagePath = "GFX_report_event_german_speech", isTriggeredOnly = true, immediate = immediateEffect)
newEventOption(e = anschluss, title = "How can anyone say that Austria is not German?!", result = results)