Spaces:
No application file
No application file
adds dwarf action
Browse files
cubzh.lua
CHANGED
@@ -183,6 +183,19 @@ local skills = {
|
|
183 |
dialog:create("I am taller than you now!", npc.avatar.Head)
|
184 |
end,
|
185 |
action_format_str = "{protagonist_name} doubled his height!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
},
|
187 |
{
|
188 |
name = "GIVEHAT",
|
|
|
183 |
dialog:create("I am taller than you now!", npc.avatar.Head)
|
184 |
end,
|
185 |
action_format_str = "{protagonist_name} doubled his height!"
|
186 |
+
},
|
187 |
+
{
|
188 |
+
name = "DWARF",
|
189 |
+
description = "Degrease your height to become a dwarf.",
|
190 |
+
parameter_types = {"character"},
|
191 |
+
callback = function(client, action)
|
192 |
+
local npc = client:getNpc(action.character_id)
|
193 |
+
if not npc then print("Can't find npc") return end
|
194 |
+
|
195 |
+
npc.object.Scale = npc.object.Scale * 0.5
|
196 |
+
dialog:create("And I'm smaller now", npc.avatar.Head)
|
197 |
+
end,
|
198 |
+
action_format_str = "{protagonist_name} doubled his height!"
|
199 |
},
|
200 |
{
|
201 |
name = "GIVEHAT",
|