Spaces:
PickMyNick
/
No application file

PickMyNick commited on
Commit
8adfb70
·
verified ·
1 Parent(s): 8b38f3e

adds dwarf action

Browse files
Files changed (1) hide show
  1. cubzh.lua +13 -0
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",