ah_sce_unpacked/unpacked/Custom_Model_Bag Miskatonic Mouse 0954ef/Custom_Model Custom Data Helper aa3d8a.ttslua

39 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-11-28 11:46:13 -05:00
-- set true to enable debug logging
DEBUG = false
function log(message)
if DEBUG then
print(message)
end
end
--[[
Known locations and clues. We check this to determine if we should
atttempt to spawn clues, first we look for <LOCATION_NAME>_<GUID> and if
we find nothing we look for <LOCATION_NAME>
format is [location_guid -> clueCount]
]]
LOCATIONS_DATA_JSON = [[
{
"Park Entrance": {"type": "perPlayer", "value": 2, "clueSide": "front"},
"Main Street, U.S.A.": {"type": "perPlayer", "value": 1, "clueSide": "front"},
"Park Entrance": {"type": "perPlayer", "value": 2, "clueSide": "front"},
"The Hub": {"type": "perPlayer", "value": 2, "clueSide": "front"},
"Adventureland": {"type": "fixed", "value": 3, "clueSide": "front"},
"Frontierland": {"type": "fixed", "value": 3, "clueSide": "front"},
"New Orleans Square": {"type": "fixed", "value": 3, "clueSide": "front"},
"Critter Country": {"type": "fixed", "value": 3, "clueSide": "front"},
"Galaxy's Edge": {"type": "fixed", "value": 3, "clueSide": "front"},
"Fantasyland": {"type": "fixed", "value": 3, "clueSide": "front"},
"Toontown": {"type": "fixed", "value": 3, "clueSide": "front"},
"Tomorrowland": {"type": "fixed", "value": 3, "clueSide": "front"}
}
]]
LOCATIONS_DATA = JSON.decode(LOCATIONS_DATA_JSON)
function onload(save_state)
local playArea = getObjectFromGUID('721ba2')
playArea.call("updateLocations", {self.getGUID()})
end