aduermael Trist4x commited on
Commit
1d596da
1 Parent(s): 1eabe7b

Make explode and scaleup more easy to trigger by NPCScientist (#4)

Browse files

- Make explode and scaleup more easy to trigger by NPCScientist (dde5ac92e76757708cb750a838955eb026d09819)


Co-authored-by: Tristan Deborde <Trist4x@users.noreply.huggingface.co>

Files changed (1) hide show
  1. cubzh.lua +10 -11
cubzh.lua CHANGED
@@ -30,6 +30,7 @@ end
30
  local SIMULATION_NAME = "Islands" .. tostring(math.random())
31
  local SIMULATION_DESCRIPTION = "Three floating islands."
32
 
 
33
  local skills = {
34
  {
35
  name = "SAY",
@@ -135,8 +136,8 @@ local skills = {
135
  action_format_str = "{protagonist_name} followed {target_name} for a while.",
136
  },
137
  {
138
- name = "EXPLODE",
139
- description = "Explodes in a fireball - Hell yeah!",
140
  parameter_types = { "character" },
141
  callback = function(client, action)
142
  local npc = client:getNpc(action.character_id)
@@ -153,7 +154,7 @@ local skills = {
153
  npc.avatar.IsHidden = false
154
  end)
155
  end,
156
- action_format_str = "{protagonist_name} exploded!",
157
  },--[[
158
  {
159
  name = "GIVEAPPLE",
@@ -162,19 +163,17 @@ local skills = {
162
  callback = function(client, action)
163
  local npc = client:getNpc(action.character_id)
164
  if not npc then print("Can't find npc") return end
165
-
166
  local shape = MutableShape()
167
  shape:AddBlock(Color.Red, 0, 0, 0)
168
  shape.Scale = 4
169
  Player:EquipRightHand(shape)
170
-
171
  dialog:create("Here is an apple for you!", npc.avatar.Head)
172
  end,
173
  action_format_str = "{protagonist_name} gave you a piece of bread!"
174
- },
175
  {
176
- name = "SCALEUP",
177
- description = "Double your height",
178
  parameter_types = {"character"},
179
  callback = function(client, action)
180
  local npc = client:getNpc(action.character_id)
@@ -184,7 +183,7 @@ local skills = {
184
  dialog:create("I am taller than you now!", npc.avatar.Head)
185
  end,
186
  action_format_str = "{protagonist_name} doubled his height!"
187
- },--]]
188
  {
189
  name = "GIVEHAT",
190
  description = "Give a party hat to someone",
@@ -253,11 +252,11 @@ local NPCs = {
253
  name = "npcscientist",
254
  gameName = "Scientist",
255
  physicalDescription = "Short, with a stern expression and sharp eyes",
256
- psychologicalProfile = "Grumpy but insightful, suspicious yet intelligent",
257
  currentLocationName = "Scientist Island",
258
  initialReflections = {
259
  "I just arrived on this island to feed my pet, he loves tulips so much.",
260
- "I was just eating before I stood up to start the radio, I don't know which song I should start",
261
  "I am a scientist that works on new pets for everyone, so that each individual can have the pet of their dreams",
262
  "I am a bit allergic to the tulip but Fredo my pet loves it so much, I have to dock here with my vehicle. The pet is placed at the back of my flying scooter when we move to another place.",
263
  },
 
30
  local SIMULATION_NAME = "Islands" .. tostring(math.random())
31
  local SIMULATION_DESCRIPTION = "Three floating islands."
32
 
33
+
34
  local skills = {
35
  {
36
  name = "SAY",
 
136
  action_format_str = "{protagonist_name} followed {target_name} for a while.",
137
  },
138
  {
139
+ name = "FIRECRACKER",
140
+ description = "Perform a fun, harmless little explosion to make people laugh!",
141
  parameter_types = { "character" },
142
  callback = function(client, action)
143
  local npc = client:getNpc(action.character_id)
 
154
  npc.avatar.IsHidden = false
155
  end)
156
  end,
157
+ action_format_str = "{protagonist_name} exploded like a firecracker, with a bang!",
158
  },--[[
159
  {
160
  name = "GIVEAPPLE",
 
163
  callback = function(client, action)
164
  local npc = client:getNpc(action.character_id)
165
  if not npc then print("Can't find npc") return end
 
166
  local shape = MutableShape()
167
  shape:AddBlock(Color.Red, 0, 0, 0)
168
  shape.Scale = 4
169
  Player:EquipRightHand(shape)
 
170
  dialog:create("Here is an apple for you!", npc.avatar.Head)
171
  end,
172
  action_format_str = "{protagonist_name} gave you a piece of bread!"
173
+ }, --]]
174
  {
175
+ name = "GIANT",
176
+ description = "Double your height to become a giant for a few seconds.",
177
  parameter_types = {"character"},
178
  callback = function(client, action)
179
  local npc = client:getNpc(action.character_id)
 
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",
189
  description = "Give a party hat to someone",
 
252
  name = "npcscientist",
253
  gameName = "Scientist",
254
  physicalDescription = "Short, with a stern expression and sharp eyes",
255
+ psychologicalProfile = "Grumpy but insightful, this scientist loves to surprise his guests with cool tricks! For example, he frequently lights up little firecrackers to create harmless and fun explosions.",
256
  currentLocationName = "Scientist Island",
257
  initialReflections = {
258
  "I just arrived on this island to feed my pet, he loves tulips so much.",
259
+ "Yesterday, you were visited by a newcomer. He asked you to perform fun tricks like increase your size or create little explosions - you complied merrily!",
260
  "I am a scientist that works on new pets for everyone, so that each individual can have the pet of their dreams",
261
  "I am a bit allergic to the tulip but Fredo my pet loves it so much, I have to dock here with my vehicle. The pet is placed at the back of my flying scooter when we move to another place.",
262
  },