Run-time error
World: test
Function/Sub: Prompt called by trigger
Reason: processing trigger "Prompt"
[string "Script file"]:6: bad argument #1 to 'next' (table expected, got nil)
stack traceback:
[C]: in function 'next'
[string "Script file"]:6: in function <[string "Script file"]:1>
Error context in script:
this error resulted when testing for empty table with this code
function Prompt (thename, theoutput, wildcards, line)
iHP = wildcards [1]
iMovement = wildcards [2]
iCoins = wildcards [3]
if next(mobs) == nil then
mobsRemaining ()
World: test
Function/Sub: Prompt called by trigger
Reason: processing trigger "Prompt"
[string "Script file"]:6: bad argument #1 to 'next' (table expected, got nil)
stack traceback:
[C]: in function 'next'
[string "Script file"]:6: in function <[string "Script file"]:1>
Error context in script:
this error resulted when testing for empty table with this code
function Prompt (thename, theoutput, wildcards, line)
iHP = wildcards [1]
iMovement = wildcards [2]
iCoins = wildcards [3]
if next(mobs) == nil then
mobsRemaining ()