-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodclientmain.lua
More file actions
203 lines (140 loc) · 7.6 KB
/
modclientmain.lua
File metadata and controls
203 lines (140 loc) · 7.6 KB
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
do
local GLOBAL = GLOBAL
local modEnv = GLOBAL.getfenv(1)
local rawget, setmetatable = GLOBAL.rawget, GLOBAL.setmetatable
setmetatable(modEnv, {
__index = function(self, index)
return rawget(GLOBAL, index)
end,
-- lack of __newindex means it defaults to modEnv, so we don't mess up globals.
})
_G = GLOBAL
end
modimport("articore/articore_api")
PrefabFiles = {
"welina_skins",
}
Assets = {
Asset("ANIM", "anim/welina.zip"),
Asset("ANIM", "anim/ghost_welina_build.zip"),
Asset("ANIM", "anim/welina_voidclothhat.zip"),
Asset("IMAGE", "images/saveslot_portraits/welina.tex" ),
Asset("ATLAS", "images/saveslot_portraits/welina.xml" ),
Asset("IMAGE", "images/selectscreen_portraits/welina.tex" ),
Asset("ATLAS", "images/selectscreen_portraits/welina.xml" ),
Asset("IMAGE", "images/selectscreen_portraits/welina_silho.tex" ),
Asset("ATLAS", "images/selectscreen_portraits/welina_silho.xml" ),
Asset("IMAGE", "bigportraits/welina.tex" ),
Asset("ATLAS", "bigportraits/welina.xml" ),
Asset("IMAGE", "bigportraits/welina_none.tex" ),
Asset("ATLAS", "bigportraits/welina_none.xml" ),
Asset( "IMAGE", "bigportraits/ms_welina_gown.tex" ),
Asset( "ATLAS", "bigportraits/ms_welina_gown.xml" ),
Asset( "IMAGE", "bigportraits/ms_welina_doorman.tex" ),
Asset( "ATLAS", "bigportraits/ms_welina_doorman.xml" ),
Asset( "IMAGE", "bigportraits/ms_welina_homestuck.tex" ),
Asset( "ATLAS", "bigportraits/ms_welina_homestuck.xml" ),
Asset( "IMAGE", "bigportraits/ms_welina_xmas.tex" ),
Asset( "ATLAS", "bigportraits/ms_welina_xmas.xml" ),
--Big Portraits End
Asset("IMAGE", "images/map_icons/welina.tex" ),
Asset("ATLAS", "images/map_icons/welina.xml" ),
Asset("IMAGE", "images/avatars/avatar_welina.tex" ),
Asset("ATLAS", "images/avatars/avatar_welina.xml" ),
Asset("IMAGE", "images/avatars/avatar_ghost_welina.tex" ),
Asset("ATLAS", "images/avatars/avatar_ghost_welina.xml" ),
Asset("IMAGE", "images/avatars/self_inspect_welina.tex" ),
Asset("ATLAS", "images/avatars/self_inspect_welina.xml" ),
Asset("IMAGE", "images/names_welina.tex" ),
Asset("ATLAS", "images/names_welina.xml" ),
Asset("IMAGE", "images/names_gold_welina.tex" ),
Asset("ATLAS", "images/names_gold_welina.xml" ),
Asset( "IMAGE", "images/inventoryimages/welina_items.tex" ),
Asset( "ATLAS", "images/inventoryimages/welina_items.xml" ),
}
AddDynamicAnim("ms_welina_gown")
AddDynamicAnim("ms_welina_doorman")
AddDynamicAnim("ms_welina_homestuck")
AddDynamicAnim("ms_welina_xmas")
local STRINGS = GLOBAL.STRINGS
--For menu remix compatibility
table.insert(Assets, Asset("SOUND", "sound/welina.fsb"))
table.insert(Assets, Asset("SOUNDPACKAGE", "sound/scotchmintz_characters.fev"))
if STRINGS.MENUREMIX then
STRINGS.MENUREMIX.MODDEDCHARACTER_LINES.welina =
{
"This looks purr-fect!",
"This is litter-arly odd feeling",
"Wel-in-an amazing showdown. I'm the perfect cat ",
"Miau!",
}
end
if TUNING.MENUREMIX_MODDEDCHAR_VOICES then
TUNING.MENUREMIX_MODDEDCHAR_VOICES.welina = "scotchmintz_characters/characters/welina/talk_LP"
end
--Localization for Chinese (S/T)
local lang_lookups =
{
en =
{
name = "Welina",
a1 = "Nine Lives",
a2 = "Edgy, Inside and Outside",
a3 = "Resentful",
quote = "The sound of the bell has been unusually loud today...",
title = "The Downcat",
favfood = "Unagi",
favfood_string = "Favourite Food",
hidden = "Is yet to be revealed.",
bday_h = "Birthday",
past_h = "Designers Notes",
aboutme = "A catcoon girl that doesn't find much joy in life and dreads social interaction.",
skindesc = "Welina has a flair for the dramatic.",
bday = "April 13",
past =
[[Welina, Welina, Welina... I do like this name, rolls off the tongue pretty well. Anyway I subjected one of those fat catcoons to a life of human problems, to my surprise she was taking it quite well... until she wasn't.
She turned really nihilistic after a while, and would spend most of her time away from the other catcoons. Maybe she just started seeing herself as superior to them, or maybe she felt like an outlier amongst them. Or maybe the inescapable existential dread has caught up to her? Well such is the burden of being able to conjure complex thoughts and emotions, what'll she do anyway? Kill herself nine times? Ha!
I've presented my results to Master, and yeah, it went about as well as you'd expect. I just can't ever seem to please him anymore, or maybe he just hates me. Ugh, that old man would rather rot than admit that I've surpassed his expectations.
]],
},
zh =
{
name = "Welina",
a1 = "Nine Lives",
a2 = "Edgy, Inside and Outside",
a3 = "Resentful",
quote = "The sound of the bell has been unusually loud today...",
title = "The Downcat",
favfood = "Unagi",
favfood_string = "Favourite Food",
hidden = "Is yet to be revealed.",
bday_h = "Birthday",
past_h = "Designers Notes",
aboutme = "A catcoon girl that doesn't find much joy in life and dreads social interaction.",
skindesc = "Welina has a flair for the dramatic.",
bday = "April 13",
past =
[[Welina, Welina, Welina... I do like this name, rolls off the tongue pretty well. Anyway I subjected one of those fat catcoons to a life of human problems, to my surprise she was taking it quite well... until she wasn't.
She turned really nihilistic after a while, and would spend most of her time away from the other catcoons. Maybe she just started seeing herself as superior to them, or maybe she felt like an outlier amongst them. Or maybe the inescapable existential dread has caught up to her? Well such is the burden of being able to conjure complex thoughts and emotions, what'll she do anyway? Kill herself nine times? Ha!
I've presented my results to Master, and yeah, it went about as well as you'd expect. I just can't ever seem to please him anymore, or maybe he just hates me. Ugh, that old man would rather rot than admit that I've surpassed his expectations.
]],
},
}
local locale = GLOBAL.LOC.GetLocaleCode()
local lookup = (lang_lookups[locale] or lang_lookups.en)
AddCharacter("welina", lookup.name , "female", lookup.title, lookup.quote, lookup.skindesc,"welina", "welina", "Slim", false)
CharacterAbillity("welina", lookup.a1 , lookup.a2 , lookup.a3)
AddCharacterSkin("welina", "ms_welina_gown", "The Restless", "It's sometimes tempting to shut yourself in dreams.", "When my eyes close, I see terrible things.", true, true, false)
AddCharacterSkin("welina", "ms_welina_doorman", "The Over-Bored", "Welina tries on a shorter cut.", "That's a pretty... metal.. origin story...", true, true, false)
AddCharacterSkin("welina", "ms_welina_homestuck", "The Rebel", "You don't want to cross paths with her.", "This ain't what you want.", true, true, false)
AddCharacterSkin("welina", "ms_welina_xmas", "The Festive", "She doesn't hate you as much.", "Hnghh... J-Just take your gift... or whatever.", true, true, false)
STRINGS.CHARACTER_ABOUTME.welina = lookup.aboutme
STRINGS.CHARACTER_BIOS.welina = {
{ title = lookup.bday_h, desc = lookup.bday },
{ title = lookup.favfood_string, desc = lookup.favfood },
{ title = lookup.past_h, desc = lookup.past},
}
STRINGS.CHARACTER_SURVIVABILITY.welina= "Slim"
TUNING.WELINA_HEALTH = GetModConfigData("WELINA_HEALTH")
TUNING.WELINA_HUNGER = GetModConfigData("WELINA_HUNGER")
TUNING.WELINA_SANITY = GetModConfigData("WELINA_SANITY")