-
Notifications
You must be signed in to change notification settings - Fork 0
/
lore_necromancy.txt
168 lines (157 loc) · 4.7 KB
/
lore_necromancy.txt
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#
# @author Pietrko(Arsakes)
# @description spells for vampires/undead
# @compatibility 2.2
#
namespace = necromancy
##################################################
#
# STRATEGIC SPELLS MAIN EVENT
#
##################################################
#
# Raise Dead
# there are three undead legions to summon depending
# on mage power
#
character_event = {
id = necromancy.1
desc = "EVTDESC_NECROMANCY_1"
picture = "GFX_evt_spell_necromancy"
is_triggered_only = yes
option = {
name = "EVTOPT_NECROMANCY_1A"
if = {
limit = { location = { has_province_modifier = depopulated }}
character_event = { id = necromancy.2 }
}
hidden_tooltip = { character_event = { id = necromancy.2 } }
location = { add_province_modifier = { name = dead_raised duration = 10950 }} # 30 years
}
}
# Actual summoning function
character_event = {
id = necromancy.2
is_triggered_only = yes
hide_window = yes
immediate = {
if = {
limit = { trait = magic_power_magister }
location = {
ROOT = {
# 400 troops
spawn_unit = {
province = PREV
owner = ROOT
home = PREV
earmark = summoned_undead
attrition = 1.0
troops = {
archers = { 120 120 }
light_infantry = { 200 200 }
heavy_infantry = { 40 40 }
pikemen = { 40 40 }
}
}
}
}
}
if = {
limit = { trait = magic_power_lord }
location = {
ROOT = {
# 600 troops
spawn_unit = {
province = PREV
owner = ROOT
home = PREV
earmark = summoned_undead
attrition = 1.0
troops = {
archers = { 170 170 }
light_infantry = { 330 330 }
heavy_infantry = { 50 50 }
pikemen = { 50 50 }
}
}
}
}
}
if = {
limit = { trait = magic_power_archmaster }
location = {
ROOT = {
# 800 troops
spawn_unit = {
province = PREV
owner = ROOT
home = PREV
earmark = summoned_undead
attrition = 1.0
troops = {
archers = { 250 250 }
light_infantry = { 400 400 }
heavy_infantry = { 75 75 }
pikemen = { 75 75 }
}
}
}
}
}
}
}
# Wind of Death
character_event = {
id = necromancy.3
desc = "EVTDESC_NECROMANCY_3"
picture = "GFX_evt_spell_necromancy"
is_triggered_only = yes
option = {
#TODO apply effects on armies & characters in province
name = "EVTOPT_NECROMANCY_3A"
if = {
limit = { location = { has_province_modifier = dead_raised }}
location = { remove_province_modifier = dead_raised }
}
location = { add_province_modifier = { name = depopulated duration = 18250 }} # 50 years
}
}
##################################################
#
# BATTLE SPELLS
#
##################################################
# Raise portion of your army after battle
character_event = {
id = necromancy.4
desc = "EVTDESC_NECROMANCY_4"
picture = "GFX_evt_spell_necromancy"
is_triggered_only = yes
trigger = {
in_command = yes
is_alive = yes
OR = {
trait = magic_power_magister
trait = magic_power_lord
trait = magic_power_archmaster
}
trait = lore_necromancy
}
option = {
#TODO apply effects on armies & characters in province
name = "EVTOPT_NECROMANCY_4A"
troops = 0.07
if = { limit = { trait = magic_power_lord } troops = 0.03 }
if = { limit = { trait = magic_power_archmaster } troops = 0.03 }
}
}
###############################################
#
# DUEL SPELLS
#
###############################################
#
# Drain Life dmg+heal
# Hand of Dust (physical dmg)
# Hellish Vigour
# Siphon Life dmg + mg regen