-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.ttslua
42 lines (38 loc) · 1009 Bytes
/
global.ttslua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
murderTrayLinerGUID = 'def075'
murderTrayZoneGUID = '4693f3'
evidenceBagGUID = '70acc8'
shiftBagGUID = '1ed1cc'
favorBagGUID = 'bf7df8'
baggageBagGUID = '94081d'
genericEventDeckGUID = 'adce08'
LilyGUID = '616920'
JimmyGUID = 'be7e6c'
sceneOfCrimeTokenGUID = 'bf1d9c'
dropshipTokensGUID = 'a3bfa3'
#include players
#include characters
#include murders
#include locations
#include suspects
#include utils
#include setup
playerTrayZones = {}
murderTrayZone = nil
function onload()
murderTrayLiner = getObjectFromGUID(murderTrayLinerGUID)
murderTrayZone = getObjectFromGUID(murderTrayZoneGUID)
-- use existence of a puzzle piece bag to check if setup already happened
shiftBag = getObjectFromGUID(shiftBagGUID)
if shiftBag != nil then
murderTrayLiner.createButton({
label = 'Set up',
click_function = 'setUp',
tooltip = 'Set up the game!',
position = {0,0.2,0},
width = 1200,
height = 500,
font_size = 300
})
end
math.randomseed(os.time())
end