MorganaSacani
Active Member
- Joined
- Sep 20, 2022
- Messages
- 87
- Solutions
- 1
- Reaction score
- 32
I'm having this problem when I summon some monster to help me kill the algorithm's creature.
This is the problem that occurs:
And here is a part of the algorithm:
Line 66:
This is the problem that occurs:
I will warn you that this is an onDeath functiontimerEvent: []
callbackId:[]
function: []
error [...br-global\scripts\creaturescripts\monster\mad_knight.lua:66: attempt to index local 'killer_' (a nil value)
stack traceback:
[C]: in function '__index'
...br-global\scripts\creaturescripts\monster\mad_knight.lua:66: in function <...br-global\scripts\creaturescripts\monster\mad_knight.lua:57>]
And here is a part of the algorithm:
Lua:
for cid, damage in pairs(creature:getDamageMap()) do
-- The 'killer_' variable is for returning all characters involved in the creature's death.
local killer_ = Creature(cid)
if killer_:isPlayer() then
Line 66:
if killer_:isPlayer() then