Spaces:
No application file
No application file
adds burn action
Browse filesexample taken from cubzh demos https://github.com/cubzh/cubzh
cubzh.lua
CHANGED
|
@@ -5,6 +5,7 @@ Modules = {
|
|
| 5 |
pathfinding = "github.com/caillef/cubzh-library/pathfinding:5f9c6bd",
|
| 6 |
floating_island_generator = "github.com/caillef/cubzh-library/floating_island_generator:82d22a5",
|
| 7 |
easy_onboarding = "github.com/caillef/cubzh-library/easy_onboarding:77728ee",
|
|
|
|
| 8 |
}
|
| 9 |
|
| 10 |
Config = {
|
|
@@ -196,6 +197,21 @@ local skills = {
|
|
| 196 |
dialog:create("And I'm smaller now", npc.avatar.Head)
|
| 197 |
end,
|
| 198 |
action_format_str = "{protagonist_name} decreased his height by half!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
},
|
| 200 |
{
|
| 201 |
name = "GIVEHAT",
|
|
|
|
| 5 |
pathfinding = "github.com/caillef/cubzh-library/pathfinding:5f9c6bd",
|
| 6 |
floating_island_generator = "github.com/caillef/cubzh-library/floating_island_generator:82d22a5",
|
| 7 |
easy_onboarding = "github.com/caillef/cubzh-library/easy_onboarding:77728ee",
|
| 8 |
+
Fire = "github.com/aduermael/modzh/fire"
|
| 9 |
}
|
| 10 |
|
| 11 |
Config = {
|
|
|
|
| 197 |
dialog:create("And I'm smaller now", npc.avatar.Head)
|
| 198 |
end,
|
| 199 |
action_format_str = "{protagonist_name} decreased his height by half!"
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
name = "BURN",
|
| 203 |
+
description = "Makes you be on friendly, cold, tricky fire for couple seconds!",
|
| 204 |
+
parameter_types = {"character"},
|
| 205 |
+
callback = function(client, action)
|
| 206 |
+
local npc = client:getNpc(action.character_id)
|
| 207 |
+
if not npc then print("Can't find npc") return end
|
| 208 |
+
|
| 209 |
+
f = fire:create()
|
| 210 |
+
f:SetParent(Player)
|
| 211 |
+
|
| 212 |
+
dialog:create("Now I'm burning!", npc.avatar.Head)
|
| 213 |
+
end,
|
| 214 |
+
action_format_str = "{protagonist_name} decreased his height by half!"
|
| 215 |
},
|
| 216 |
{
|
| 217 |
name = "GIVEHAT",
|