Skip to content
This repository was archived by the owner on Dec 14, 2019. It is now read-only.
This repository was archived by the owner on Dec 14, 2019. It is now read-only.

Undeclared global variables #4

@paramat

Description

@paramat
	-- Suspicious trickery
	list_name = nil
	list_name_string = "dungeon_loot." .. list_item.name .. "_list"
-- 	list_name = _G[list_name_string]
	lsf = loadstring("list_name = " .. list_name_string)
	lsf()

@BlockMen
'list_name', 'list_name_string' and 'lsf' all cause warnings but 'local'ising these causes an error, how can this be fixed? Your comment 'Suspicious trickery' suggests this is hacky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions