This commit is contained in:
Adam Goldsmith 2021-01-02 22:49:38 -05:00
parent 71f4e4480d
commit 948d13e4f9
2798 changed files with 100291 additions and 54890 deletions

View File

@ -98,7 +98,7 @@ PULLS = {
-- tablet
["https://i.imgur.com/1plY463.png"] = 0,
-- curse
["http://cloud-3.steamusercontent.com/ugc/1011565208488654691/8F0B399048EBC34CD24B99AAD415AEC40E679C65/"] = 0,
["http://cloud-3.steamusercontent.com/ugc/1655601092778636039/2A25BD38E8C44701D80DD96BF0121DA21843672E/"] = 0,
-- tentacle
["https://i.imgur.com/lns4fhz.png"] = 0,
-- minus eight
@ -124,48 +124,48 @@ PULLS = {
-- elder thing
["https://i.imgur.com/ttnspKt.png"] = 0,
-- bless
["http://cloud-3.steamusercontent.com/ugc/1011565208488650618/B2B081032AF3EFDBD90840A5D6888A3CEA228D66/"] = 0,
["http://cloud-3.steamusercontent.com/ugc/1655601092778627699/339FB716CB25CA6025C338F13AFDFD9AC6FA8356/"] = 0,
-- elder sign
["https://i.imgur.com/nEmqjmj.png"] = 0,
}
IMAGE_TOKEN_MAP = {
-- cultist
["https://i.imgur.com/VzhJJaH.png"] = "cultist",
-- skull
["https://i.imgur.com/stbBxtx.png"] = "skull",
-- tablet
["https://i.imgur.com/1plY463.png"] = "tablet",
-- elder thing
["https://i.imgur.com/ttnspKt.png"] = "Elder Thing",
-- curse
["http://cloud-3.steamusercontent.com/ugc/1011565208488654691/8F0B399048EBC34CD24B99AAD415AEC40E679C65/"] = "curse",
-- tentacle
["https://i.imgur.com/lns4fhz.png"] = "Auto-Fail",
-- minus eight
["https://i.imgur.com/9t3rPTQ.png"] = "-8",
-- minus seven
["https://i.imgur.com/4WRD42n.png"] = "-7",
-- minus six
["https://i.imgur.com/c9qdSzS.png"] = "-6",
-- minus five
["https://i.imgur.com/3Ym1IeG.png"] = "-5",
-- minus four
["https://i.imgur.com/qrgGQRD.png"] = "-4",
-- minus three
["https://i.imgur.com/yfs8gHq.png"] = "-3",
-- minus two
["https://i.imgur.com/bfTg2hb.png"] = "-2",
-- minus one
["https://i.imgur.com/w3XbrCC.png"] = "-1",
-- zero
["https://i.imgur.com/btEtVfd.png"] = "0",
-- plus one
["https://i.imgur.com/uIx8jbY.png"] = "+1",
-- bless
["http://cloud-3.steamusercontent.com/ugc/1011565208488650618/B2B081032AF3EFDBD90840A5D6888A3CEA228D66/"] = "bless",
-- elder sign
["https://i.imgur.com/nEmqjmj.png"] = "Elder Sign",
-- plus one
["https://i.imgur.com/uIx8jbY.png"] = "+1",
-- zero
["https://i.imgur.com/btEtVfd.png"] = "0",
-- minus one
["https://i.imgur.com/w3XbrCC.png"] = "-1",
-- minus two
["https://i.imgur.com/bfTg2hb.png"] = "-2",
-- minus three
["https://i.imgur.com/yfs8gHq.png"] = "-3",
-- minus four
["https://i.imgur.com/qrgGQRD.png"] = "-4",
-- minus five
["https://i.imgur.com/3Ym1IeG.png"] = "-5",
-- minus six
["https://i.imgur.com/c9qdSzS.png"] = "-6",
-- minus seven
["https://i.imgur.com/4WRD42n.png"] = "-7",
-- minus eight
["https://i.imgur.com/9t3rPTQ.png"] = "-8",
-- skull
["https://i.imgur.com/stbBxtx.png"] = "Skull",
-- cultist
["https://i.imgur.com/VzhJJaH.png"] = "Cultist",
-- tablet
["https://i.imgur.com/1plY463.png"] = "Tablet",
-- elder thing
["https://i.imgur.com/ttnspKt.png"] = "Elder Thing",
-- tentacle
["https://i.imgur.com/lns4fhz.png"] = "Auto-fail",
-- bless
["http://cloud-3.steamusercontent.com/ugc/1655601092778627699/339FB716CB25CA6025C338F13AFDFD9AC6FA8356/"] = "Bless",
-- curse
["http://cloud-3.steamusercontent.com/ugc/1655601092778636039/2A25BD38E8C44701D80DD96BF0121DA21843672E/"] = "Curse"
}
function resetStats()
@ -638,10 +638,17 @@ function spawnToken_2(id, pos)
thickness = 0.10,
})
obj.scale {0.81, 1, 0.81}
obj.setName(getTokenName({ url=url }))
return obj
end
end
function getTokenName(params)
local name = IMAGE_TOKEN_MAP[params.url]
if name == nil then name = "" end
return name
end
function getImageUrl(id)
if id == 'p1' then return 'https://i.imgur.com/uIx8jbY.png' end
if id == '0' then return 'https://i.imgur.com/btEtVfd.png' end
@ -739,4 +746,3 @@ function updateRandomSeed()
math.randomseed(os.time())
end
end

View File

@ -22,7 +22,7 @@ CameraStates:
- null
- null
- null
Date: 12/20/2020 3:13:56 PM
Date: 1/1/2021 4:55:32 PM
DecalPallet:
- ImageURL: http://cloud-3.steamusercontent.com/ugc/1474319121424323663/BC5570ECF747F1B30224461B576E8B0FE7FA5F33/
Name: Achivement Checkmark
@ -230,9 +230,9 @@ Hands:
rotX: 0.0
rotY: 90.0
rotZ: 0.0
scaleX: 22.92
scaleX: 22.95
scaleY: 7.0
scaleZ: 7.08
scaleZ: 7.1
- Color: Red
Transform:
posX: -27.96
@ -263,9 +263,9 @@ Hands:
rotX: 0.0
rotY: 90.0
rotZ: 0.0
scaleX: 22.92
scaleX: 22.95
scaleY: 7.0
scaleZ: 7.08
scaleZ: 7.1
Hiding: 0
Lighting:
AmbientEquatorColor:
@ -496,7 +496,6 @@ ObjectStates:
- !include 'unpacked/Custom_Model_Bag Return to The Dunwich Legacy ce9130.yaml'
- !include 'unpacked/Custom_Model_Bag Return to The Path to Carcosa e9889a.yaml'
- !include 'unpacked/Custom_Model_Bag Return to the Night of the Zealot 56270d.yaml'
- !include 'unpacked/Custom_Tile b9140e.yaml'
- !include 'unpacked/Custom_Model_Bag Legacy Assets 7165a9.yaml'
- !include 'unpacked/Custom_Model_Bag Guardian 1d802b.yaml'
- !include 'unpacked/Custom_Model_Bag Mystic b4d9bf.yaml'
@ -520,7 +519,8 @@ ObjectStates:
- !include 'unpacked/Custom_Model_Bag Seeker 5ec2fb.yaml'
- !include 'unpacked/Custom_Model_Bag Rogue 68d7b8.yaml'
- !include 'unpacked/BlockRectangle 40dbd9.yaml'
- !include 'unpacked/Custom_Model_Bag Community-Created Investigators ed4ca7.yaml'
- !include 'unpacked/Custom_Model_Bag Community-Created Player CardsInvestigators
ed4ca7.yaml'
- !include 'unpacked/Custom_Assetbundle_Bag Barkham Horror 308439.yaml'
- !include 'unpacked/Custom_Token BlessCurse Token Manager 5933fb.yaml'
- !include 'unpacked/3DText d861ca.yaml'
@ -535,11 +535,16 @@ ObjectStates:
- !include 'unpacked/Bag All Player Cards 15bb07.yaml'
- !include 'unpacked/Bag Random Basic Weaknesses 770c4e.yaml'
- !include 'unpacked/Custom_Tile New Deck Importer edad66.yaml'
- !include 'unpacked/Custom_Model_Bag Artifact Expansion b43c9c.yaml'
- !include 'unpacked/Custom_Model Custom Data Helper c0b834.yaml'
- !include 'unpacked/Custom_Model_Bag Bless tokens afa06b.yaml'
- !include 'unpacked/Custom_Model_Bag Curse tokens bd0253.yaml'
- !include 'unpacked/Notecard Arkham SCE 1.5201 - 12202020 - Page 1 af01b8.yaml'
- !include 'unpacked/Custom_Tile 666973.yaml'
- !include 'unpacked/Custom_Tile 39a22e.yaml'
- !include 'unpacked/Custom_Model_Bag Elspeth Baudin Custom Investigator 84c153.yaml'
- !include 'unpacked/Custom_Model_Bag Lola Hayes Rework 401b61.yaml'
- !include 'unpacked/Custom_Model_Bag Mass Effect Investigators 802bef.yaml'
- !include 'unpacked/Custom_Model_Bag Don''t Starve ffc7ef.yaml'
- !include 'unpacked/Custom_Model Custom Data Helper 2547b3.yaml'
- !include 'unpacked/Notecard Arkham SCE 1.5202 - 112021 - Page 1 af01b8.yaml'
PlayArea: 1.0
PlayerCounts:
- 0
@ -548,7 +553,7 @@ PlayingTime:
- 0
- 0
Rules: ''
SaveName: Arkham SCE 1.5201
SaveName: Arkham SCE 1.5202
Sky: Sky_Museum
SkyURL: https://i.imgur.com/GkQqaOF.jpg
SnapPoints:

View File

@ -29,9 +29,9 @@ Text:
fontSize: 56
Tooltip: true
Transform:
posX: 39.4
posX: 39.41
posY: 1.42
posZ: -13.28
posZ: -13.29
rotX: 90.0
rotY: 90.0
rotZ: 0.0

View File

@ -30,9 +30,9 @@ Text:
fontSize: 56
Tooltip: true
Transform:
posX: -5.14
posX: -5.13
posY: 1.3
posZ: -69.08
posZ: -69.09
rotX: 90.0
rotY: 90.17
rotZ: 0.0

File diff suppressed because it is too large Load Diff

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: -50.58
posY: 3.2
posZ: -73.69
rotX: 0.87
rotY: 269.97
rotZ: 359.54
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 447932
CardID: 266300
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'4479':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1016065725025943109/9C5481E6DFEACD450C5522F884E615482281DDB1/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: ebdd78
GUID: c32e40
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
posX: -48.08
posY: 3.2
posZ: -71.56
rotX: 0.02
rotY: 270.01
rotZ: 180.02
rotY: 270.02
rotZ: 358.39
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,13 +1,13 @@
Autoraise: true
CardID: 296500
CardID: 4000
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2965':
'40':
BackIsHidden: true
BackURL: http://cloud-3.steamusercontent.com/ugc/254843371583121486/AF36A64D6D25AEB0E50FB36B34AD2A95C2B485BF/
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/87094793642329861/9768E9FE9C71E74721340D0D81607F534E54A3DE/
NumHeight: 7
NumWidth: 10
@ -16,11 +16,11 @@ CustomDeck:
Description: Ally. Believer.
DragSelectable: true
GMNotes: ''
GUID: 1e7f1b
GUID: a4b514
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
HideWhenFaceDown: false
IgnoreFoW: false
Locked: false
LuaScript: ''
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 8.45
posY: 3.15
posZ: 49.42
rotX: 359.98
rotY: 270.0
rotZ: 180.01
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: 10.0
posY: 0.0
posZ: 20.0
rotX: 0.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 0.02
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,45 @@
Autoraise: true
CardID: 266301
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 3689dd
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Barricade (3)
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -45.92
posY: 2.85
posZ: -117.57
rotX: 0.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,65 @@
VALID_TOKENS = {
["+1"]=true,
["Elder Sign"]=true
}
function onload()
chaosbag = getChaosBag()
sealedTokens = { }
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
-- add menu items
self.clearContextMenu()
self.addContextMenuItem("Release Token", releaseTokens)
for url,name in pairs(IMAGE_TOKEN_MAP) do
if VALID_TOKENS[name] ~= nil then
self.addContextMenuItem("Seal " .. name, function(playerColor) sealToken(url, playerColor) end)
end
end
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false,
callback_function=_sealToken
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function _sealToken(obj)
table.insert(sealedTokens, obj)
end
function releaseTokens(playerColor)
printToColor("Releasing token", playerColor)
for i,obj in ipairs(sealedTokens) do
chaosbag.putObject(obj)
end
sealedTokens = { }
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -16,14 +16,14 @@ CustomDeck:
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 8f871b
GUID: 949ca2
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card Crystalline Elder Sign (3) 949ca2.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: -5.44
posY: 3.38
posZ: -43.47
rotX: 0.0
rotY: 270.0
rotZ: 180.0
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,13 +1,13 @@
Autoraise: true
CardID: 297101
CardID: 8901
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2971':
'89':
BackIsHidden: true
BackURL: http://cloud-3.steamusercontent.com/ugc/254843371583121486/AF36A64D6D25AEB0E50FB36B34AD2A95C2B485BF/
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/138879070086634183/2856A2C2077CFA2C61B9EF2498CAE6865024DB72/
NumHeight: 7
NumWidth: 10
@ -16,7 +16,7 @@ CustomDeck:
Description: Curse.
DragSelectable: true
GMNotes: ''
GUID: 569b06
GUID: 2e33f7
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 79.11
posY: 3.28
posZ: -1.72
rotX: 359.05
rotY: 270.05
rotZ: 176.2
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 370422
CardID: 266321
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3704':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956229149/FC980D306FA8FE74C552981167CBDF4305821B31/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: Signature
DragSelectable: true
GMNotes: ''
GUID: 321cb7
GUID: 96c9be
Grid: true
GridProjection: false
Hands: true
@ -33,11 +33,11 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -2.8
posY: 3.19
posZ: -74.15
posX: -40.11
posY: 3.17
posZ: -75.49
rotX: 0.02
rotY: 270.01
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,81 @@
function onload()
mode = "Curse"
chaosbag = getChaosBag()
manager = getObjectFromGUID("5933fb")
sealedTokens = { }
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
-- add menu items
self.clearContextMenu()
self.addContextMenuItem("Release Token", releaseTokens, true)
for url,name in pairs(IMAGE_TOKEN_MAP) do
if name == mode then
self.addContextMenuItem("Seal " .. mode, function(playerColor) sealToken(url, playerColor) end, true)
end
end
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false,
callback_function=_sealToken
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function _sealToken(obj)
table.insert(sealedTokens, obj)
local guid = obj.getGUID()
local tokensTaken = manager.getVar("tokensTaken")
table.insert(tokensTaken[mode], guid)
manager.setVar("tokensTaken", tokensTaken)
manager.setVar("mode", mode)
printToAll("Sealing " .. mode .. " token " .. manager.call("getTokenCount"))
end
function releaseTokens(playerColor)
if #sealedTokens == 0 then return end
local token = sealedTokens[#sealedTokens]
if token ~= nil then
local guid = token.getGUID()
chaosbag.putObject(token)
local tokensTaken = manager.getVar("tokensTaken")
for i,v in ipairs(tokensTaken[mode]) do
if v == guid then
table.remove(tokensTaken[mode], i)
break
end
end
manager.setVar("tokensTaken", tokensTaken)
manager.setVar("mode", mode)
printToAll("Releasing " .. mode .. " token" .. manager.call("getTokenCount"))
end
table.remove(sealedTokens)
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -1,11 +1,11 @@
Autoraise: true
CardID: 266320
CardID: 554120
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2663':
'5541':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1626320664132663842/9B2F50595A754585A4DF12D6D48DC2561DC0E2C9/
@ -16,14 +16,14 @@ CustomDeck:
Description: ''
DragSelectable: true
GMNotes: ''
GUID: b2b554
GUID: 272e6c
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card Dark Ritual 272e6c.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 93.33
posY: 2.84
posZ: -83.42
rotX: 0.0
rotY: 270.0
rotZ: 180.0
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: 10.0
posY: 0.0
posZ: 20.0
rotX: 0.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 0.02
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,60 @@
function onload()
chaosbag = getChaosBag()
sealedTokens = { }
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
-- add menu items
self.clearContextMenu()
self.addContextMenuItem("Release Token", releaseTokens)
for url,name in pairs(IMAGE_TOKEN_MAP) do
if name == "Elder Sign" then
self.addContextMenuItem("Seal Elder Sign", function(playerColor) sealToken(url, playerColor) end)
end
end
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false,
callback_function=_sealToken
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function _sealToken(obj)
table.insert(sealedTokens, obj)
end
function releaseTokens(playerColor)
printToColor("Releasing token", playerColor)
for i,obj in ipairs(sealedTokens) do
chaosbag.putObject(obj)
end
sealedTokens = { }
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -16,14 +16,14 @@ CustomDeck:
Description: Basic Weakness
DragSelectable: true
GMNotes: ''
GUID: a9d77d
GUID: e701af
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card Day of Reckoning e701af.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: 10.0
posY: 0.0
posZ: 20.0
rotX: 0.02
posX: -5.24
posY: 3.2
posZ: -48.3
rotX: 359.92
rotY: 270.0
rotZ: 0.02
rotZ: 180.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,45 +0,0 @@
Autoraise: true
CardID: 232900
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2329':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg
FaceURL: http://cloud-3.steamusercontent.com/ugc/782999241295993974/70871F727ABBAB3DB22003051B5E1FBF8999AEEB/
NumHeight: 7
NumWidth: 10
Type: 0
UniqueBack: false
Description: The Head Librarian
DragSelectable: true
GMNotes: ''
GUID: 66197b
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Dr. Henry Armitage
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -0,0 +1,45 @@
Autoraise: true
CardID: 266313
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: The Head Librarian
DragSelectable: true
GMNotes: ''
GUID: 9229a8
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Dr. Henry Armitage
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -37.52
posY: 2.84
posZ: -98.14
rotX: 0.02
rotY: 270.04
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 368423
CardID: 266302
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3684':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956220005/42E220A3221D2BFA22F1B3A71EEE346A8B0AAD77/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: Working on Something Big
DragSelectable: true
GMNotes: ''
GUID: 234ff6
GUID: 14d04f
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
posX: -55.28
posY: 3.21
posZ: -85.91
rotX: 0.02
rotY: 270.0
rotZ: 359.98
rotZ: 357.72
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 431111
CardID: 266303
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'4311':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/775107869048626382/DA1F5817A4067A74D883201F1AFAC096646A455B/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: Basic Weakness
DragSelectable: true
GMNotes: ''
GUID: 3b3c0a
GUID: 438cca
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
posX: -39.53
posY: 3.17
posZ: -94.75
rotX: 0.02
rotY: 270.01
rotZ: 180.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 430907
CardID: 266304
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'4309':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1016065725025945336/04E36F64C2CBE1B4905FF44A869C75EC52CB3A56/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: ff3f17
GUID: 24eb36
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
posX: -50.23
posY: 3.17
posZ: -85.58
rotX: 0.02
rotY: 270.01
rotZ: 180.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -36,9 +36,9 @@ Transform:
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 0.02
rotX: 359.99
rotY: 270.0
rotZ: 0.02
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -36,9 +36,9 @@ Transform:
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 0.02
rotX: 359.99
rotY: 270.0
rotZ: 0.02
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,45 @@
Autoraise: true
CardID: 266305
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 9375f4
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Guiding Spirit (1)
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -56.85
posY: 3.16
posZ: -92.16
rotX: 0.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -1,45 +0,0 @@
Autoraise: true
CardID: 293014
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2930':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1016065725025946328/561232524C8EAA4B4371B28652F78969E6ED6FFB/
NumHeight: 7
NumWidth: 10
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: f91e14
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Guiding Spirit (1)
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 230626
CardID: 266322
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2306':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956229149/FC980D306FA8FE74C552981167CBDF4305821B31/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: Artifact from Another Life
DragSelectable: true
GMNotes: ''
GUID: 23c694
GUID: e929f9
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -61.68
posY: 3.34
posZ: -62.66
rotX: 357.37
rotY: 269.99
rotZ: 1.44
posX: -32.4
posY: 3.16
posZ: -92.02
rotX: 0.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -36,9 +36,9 @@ Transform:
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 0.02
rotX: 359.99
rotY: 270.0
rotZ: 0.02
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 368427
CardID: 266306
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3684':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956220005/42E220A3221D2BFA22F1B3A71EEE346A8B0AAD77/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: c18ebe
GUID: 147cb2
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
posX: -43.82
posY: 3.17
posZ: -93.44
rotX: 0.02
rotY: 270.01
rotZ: 180.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 315244
CardID: 266307
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3152':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860672861853482/578CFD93B087B0ADA085E7A99062E6191772D6BD/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: '... Or Are They?'
DragSelectable: true
GMNotes: ''
GUID: 9dd911
GUID: 07b163
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
posX: -42.81
posY: 3.17
posZ: -90.45
rotX: 0.02
rotY: 270.01
rotZ: 180.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 369424
CardID: 266323
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3694':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956229149/FC980D306FA8FE74C552981167CBDF4305821B31/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: Signature
DragSelectable: true
GMNotes: ''
GUID: f7095f
GUID: ea6d44
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: 76.49
posY: 30.61
posZ: -3.49
rotX: 359.99
posX: -43.43
posY: 3.17
posZ: -73.1
rotX: 0.02
rotY: 270.0
rotZ: 359.98
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -16,7 +16,7 @@ CustomDeck:
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 7f1927
GUID: adf028
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: 51.53
posY: 3.99
posZ: 0.85
rotX: 359.99
posX: 9.96
posY: 3.17
posZ: 51.5
rotX: 359.21
rotY: 270.0
rotZ: 359.98
rotZ: 180.03
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,75 @@
function onload()
chaosbag = getChaosBag()
sealedTokens = { }
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
readBag()
end
function readBag(playerColor)
if playerColor ~= nil then
printToColor("Reading chaos bag", playerColor)
end
local tokensInBag = { }
for i,token in ipairs(chaosbag.getObjects()) do
if token.name ~= nil and token.name ~= "" then
tokensInBag[token.name] = true
end
end
-- add menu items
self.clearContextMenu()
self.addContextMenuItem("Release Token", releaseTokens)
for url,name in pairs(IMAGE_TOKEN_MAP) do
if tokensInBag[name] and name ~= "Auto-fail" then
self.addContextMenuItem("Seal " .. name, function(playerColor) sealToken(url, playerColor) end)
end
end
self.addContextMenuItem("Read Chaos Bag", readBag)
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false,
callback_function=_sealToken
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function _sealToken(obj)
table.insert(sealedTokens, obj)
end
function releaseTokens(playerColor)
printToColor("Releasing token", playerColor)
for i,obj in ipairs(sealedTokens) do
chaosbag.putObject(obj)
end
sealedTokens = { }
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -16,14 +16,14 @@ CustomDeck:
Description: ''
DragSelectable: true
GMNotes: ''
GUID: '599209'
GUID: 0fd4ae
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card Protective Incantation (1) 0fd4ae.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: -0.61
posY: 3.37
posZ: -43.95
rotX: 0.0
rotY: 270.0
rotZ: 180.0
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 266200
CardID: 266324
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2662':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1546380927206250326/18BF6D2B2BBFDDBE5B021A46C310E4F45493EC26/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: Concerned Brother
DragSelectable: true
GMNotes: ''
GUID: 1bfb78
GUID: 1f50e9
Grid: true
GridProjection: false
Hands: true
@ -33,9 +33,9 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -37.62
posX: -44.68
posY: 3.17
posZ: -80.71
posZ: -84.66
rotX: 0.02
rotY: 270.0
rotZ: 0.02

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,81 @@
function onload()
mode = "Bless"
chaosbag = getChaosBag()
manager = getObjectFromGUID("5933fb")
sealedTokens = { }
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
-- add menu items
self.clearContextMenu()
self.addContextMenuItem("Release Token", releaseTokens, true)
for url,name in pairs(IMAGE_TOKEN_MAP) do
if name == mode then
self.addContextMenuItem("Seal " .. mode, function(playerColor) sealToken(url, playerColor) end, true)
end
end
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false,
callback_function=_sealToken
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function _sealToken(obj)
table.insert(sealedTokens, obj)
local guid = obj.getGUID()
local tokensTaken = manager.getVar("tokensTaken")
table.insert(tokensTaken[mode], guid)
manager.setVar("tokensTaken", tokensTaken)
manager.setVar("mode", mode)
printToAll("Sealing " .. mode .. " token " .. manager.call("getTokenCount"))
end
function releaseTokens(playerColor)
if #sealedTokens == 0 then return end
local token = sealedTokens[#sealedTokens]
if token ~= nil then
local guid = token.getGUID()
chaosbag.putObject(token)
local tokensTaken = manager.getVar("tokensTaken")
for i,v in ipairs(tokensTaken[mode]) do
if v == guid then
table.remove(tokensTaken[mode], i)
break
end
end
manager.setVar("tokensTaken", tokensTaken)
manager.setVar("mode", mode)
printToAll("Releasing " .. mode .. " token" .. manager.call("getTokenCount"))
end
table.remove(sealedTokens)
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -1,11 +1,11 @@
Autoraise: true
CardID: 266313
CardID: 554413
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2663':
'5544':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1626320664132663842/9B2F50595A754585A4DF12D6D48DC2561DC0E2C9/
@ -16,14 +16,14 @@ CustomDeck:
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 88865b
GUID: '974743'
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card Rite of Sanctification 974743.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 90.78
posY: 2.84
posZ: -86.59
rotX: 0.0
rotY: 270.0
rotZ: 180.0
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -36,9 +36,9 @@ Transform:
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 0.02
rotX: 359.99
rotY: 270.0
rotZ: 0.02
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 552220
CardID: 266325
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'5522':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956229149/FC980D306FA8FE74C552981167CBDF4305821B31/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 49a91e
GUID: 4edb91
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
posX: -42.0
posY: 3.17
posZ: -96.93
rotX: 0.02
rotY: 270.01
rotZ: 180.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,60 @@
function onload()
chaosbag = getChaosBag()
sealedTokens = { }
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
-- add menu items
self.clearContextMenu()
self.addContextMenuItem("Release Token", releaseTokens)
for url,name in pairs(IMAGE_TOKEN_MAP) do
if name == "Auto-fail" then
self.addContextMenuItem("Seal Auto-fail", function(playerColor) sealToken(url, playerColor) end)
end
end
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false,
callback_function=_sealToken
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function _sealToken(obj)
table.insert(sealedTokens, obj)
end
function releaseTokens(playerColor)
printToColor("Releasing token", playerColor)
for i,obj in ipairs(sealedTokens) do
chaosbag.putObject(obj)
end
sealedTokens = { }
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -1,11 +1,11 @@
Autoraise: true
CardID: 313501
CardID: 278101
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3135':
'2781':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1016065725025945336/04E36F64C2CBE1B4905FF44A869C75EC52CB3A56/
@ -16,14 +16,14 @@ CustomDeck:
Description: Over the Threshold and Beyond
DragSelectable: true
GMNotes: ''
GUID: 05da68
GUID: 9cbac1
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card Seal of the Seventh Sign (5) 9cbac1.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: -6.35
posY: 3.19
posZ: -44.72
rotX: 0.0
rotY: 270.0
rotZ: 180.0
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 231109
CardID: 266326
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2311':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956229149/FC980D306FA8FE74C552981167CBDF4305821B31/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: cd94e3
GUID: 426d28
Grid: true
GridProjection: false
Hands: true
@ -33,11 +33,11 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: 73.38
posY: 4.26
posZ: -71.06
posX: -40.29
posY: 3.17
posZ: -89.08
rotX: 0.02
rotY: 269.99
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0

View File

@ -0,0 +1,60 @@
function onload()
chaosbag = getChaosBag()
sealedTokens = { }
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
-- add menu items
self.clearContextMenu()
self.addContextMenuItem("Release Token", releaseTokens)
for url,name in pairs(IMAGE_TOKEN_MAP) do
if name == "Elder Sign" then
self.addContextMenuItem("Seal Elder Sign", function(playerColor) sealToken(url, playerColor) end)
end
end
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false,
callback_function=_sealToken
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function _sealToken(obj)
table.insert(sealedTokens, obj)
end
function releaseTokens(playerColor)
printToColor("Releasing token", playerColor)
for i,obj in ipairs(sealedTokens) do
chaosbag.putObject(obj)
end
sealedTokens = { }
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -13,17 +13,17 @@ CustomDeck:
NumWidth: 10
Type: 0
UniqueBack: false
Description: ''
Description: Humanoid. Monster. Serpent.
DragSelectable: true
GMNotes: ''
GUID: 14c396
GUID: '678391'
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card Serpents of Yig 678391.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -11.58
posY: 2.54
posZ: -73.36
rotX: 0.0
rotY: 270.02
rotZ: 359.99
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,45 @@
function onload()
chaosbag = getChaosBag()
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
-- add menu items
self.clearContextMenu()
for url,name in pairs(IMAGE_TOKEN_MAP) do
if name == "0" then
self.addContextMenuItem("Seal 0", function(playerColor) sealToken(url, playerColor) end)
end
end
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -1,11 +1,11 @@
Autoraise: true
CardID: 313502
CardID: 278102
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3135':
'2781':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1016065725025945336/04E36F64C2CBE1B4905FF44A869C75EC52CB3A56/
@ -16,14 +16,14 @@ CustomDeck:
Description: ''
DragSelectable: true
GMNotes: ''
GUID: b94d12
GUID: b10a71
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card Shards of the Void (3) b10a71.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: -4.15
posY: 3.38
posZ: -42.58
rotX: 0.0
rotY: 270.0
rotZ: 180.0
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,45 @@
Autoraise: true
CardID: 266308
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 29169e
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Shortcut (2)
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -56.51
posY: 3.16
posZ: -89.68
rotX: 0.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -1,45 +0,0 @@
Autoraise: true
CardID: 430643
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'4306':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956220005/42E220A3221D2BFA22F1B3A71EEE346A8B0AAD77/
NumHeight: 7
NumWidth: 10
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 9bd7cf
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Shortcut (2)
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -36,9 +36,9 @@ Transform:
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 0.02
rotX: 359.99
rotY: 270.0
rotZ: 0.02
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,45 @@
Autoraise: true
CardID: 266327
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 58f534
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Smite the Wicked
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -41.68
posY: 3.17
posZ: -71.72
rotX: 0.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -1,45 +0,0 @@
Autoraise: true
CardID: 371605
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3716':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956229149/FC980D306FA8FE74C552981167CBDF4305821B31/
NumHeight: 7
NumWidth: 10
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: e68658
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Smite the Wicked
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: 79.59
posY: 3.25
posZ: -4.55
rotX: 358.6
rotY: 269.96
rotZ: 2.56
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,67 @@
VALID_TOKENS = {
Skull=true,
Cultist=true,
Tablet=true,
["Elder Thing"]=true
}
function onload()
chaosbag = getChaosBag()
sealedTokens = { }
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
-- add menu items
self.clearContextMenu()
self.addContextMenuItem("Release Token", releaseTokens)
for url,name in pairs(IMAGE_TOKEN_MAP) do
if VALID_TOKENS[name] ~= nil then
self.addContextMenuItem("Seal " .. name, function(playerColor) sealToken(url, playerColor) end)
end
end
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false,
callback_function=_sealToken
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function _sealToken(obj)
table.insert(sealedTokens, obj)
end
function releaseTokens(playerColor)
printToColor("Releasing token", playerColor)
for i,obj in ipairs(sealedTokens) do
chaosbag.putObject(obj)
end
sealedTokens = { }
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -16,14 +16,14 @@ CustomDeck:
Description: Stygian Waymark
DragSelectable: true
GMNotes: ''
GUID: 698fcc
GUID: a775ad
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card The Chthonian Stone (3) a775ad.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: -6.53
posY: 3.38
posZ: -42.52
rotX: 0.0
rotY: 270.0
rotZ: 180.0
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,67 @@
VALID_TOKENS = {
Skull=true,
Cultist=true,
Tablet=true,
["Elder Thing"]=true
}
function onload()
chaosbag = getChaosBag()
sealedTokens = { }
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
-- add menu items
self.clearContextMenu()
self.addContextMenuItem("Release Token", releaseTokens)
for url,name in pairs(IMAGE_TOKEN_MAP) do
if VALID_TOKENS[name] ~= nil then
self.addContextMenuItem("Seal " .. name, function(playerColor) sealToken(url, playerColor) end)
end
end
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false,
callback_function=_sealToken
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function _sealToken(obj)
table.insert(sealedTokens, obj)
end
function releaseTokens(playerColor)
printToColor("Releasing token", playerColor)
for i,obj in ipairs(sealedTokens) do
chaosbag.putObject(obj)
end
sealedTokens = { }
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -16,14 +16,14 @@ CustomDeck:
Description: Stygian Waymark
DragSelectable: true
GMNotes: ''
GUID: 6527a4
GUID: fc4ce8
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card The Chthonian Stone fc4ce8.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: -5.82
posY: 3.4
posZ: -41.86
rotX: 0.0
rotY: 270.0
rotZ: 180.0
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,60 @@
function onload()
chaosbag = getChaosBag()
sealedTokens = { }
IMAGE_TOKEN_MAP = { }
for i,v in pairs(Global.getVar("IMAGE_TOKEN_MAP")) do
IMAGE_TOKEN_MAP[i] = v
end
-- add menu items
self.clearContextMenu()
self.addContextMenuItem("Release Token", releaseTokens)
for url,name in pairs(IMAGE_TOKEN_MAP) do
if name == "Elder Sign" then
self.addContextMenuItem("Seal Elder Sign", function(playerColor) sealToken(url, playerColor) end)
end
end
end
function sealToken(url, playerColor)
local pos = self.getPosition()
local name = IMAGE_TOKEN_MAP[url]
for i,obj in ipairs(chaosbag.getObjects()) do
if obj.name == name then
chaosbag.takeObject({
position={ pos.x, pos.y + 1, pos.z },
index=i-1,
smooth=false,
callback_function=_sealToken
})
return
end
end
printToColor(name .. " token not found in bag", playerColor)
end
function _sealToken(obj)
table.insert(sealedTokens, obj)
end
function releaseTokens(playerColor)
printToColor("Releasing token", playerColor)
for i,obj in ipairs(sealedTokens) do
chaosbag.putObject(obj)
end
sealedTokens = { }
end
function getChaosBag()
local items = getObjectFromGUID("83ef06").getObjects()
local chaosbag = nil
for i,v in ipairs(items) do
if v.getDescription() == "Chaos Bag" then
chaosbag = getObjectFromGUID(v.getGUID())
break
end
end
if chaosbag == nil then printToAll("No chaos bag found") end
return chaosbag
end

View File

@ -1,11 +1,11 @@
Autoraise: true
CardID: 370422
CardID: 232936
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3704':
'2329':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956229149/FC980D306FA8FE74C552981167CBDF4305821B31/
@ -13,21 +13,21 @@ CustomDeck:
NumWidth: 10
Type: 0
UniqueBack: false
Description: Signature
Description: finis omnium nunc est
DragSelectable: true
GMNotes: ''
GUID: 321cb7
GUID: df9809
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScript: !include 'Card The Codex of Ages df9809.ttslua'
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Daisy's Tote Bag
Nickname: The Codex of Ages
SidewaysCard: false
Snap: true
Sticky: true

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,22 +1,22 @@
Autoraise: true
CardID: 315249
CardID: 266309
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3152':
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860672861853482/578CFD93B087B0ADA085E7A99062E6191772D6BD/
NumHeight: 7
NumWidth: 10
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: f8dc01
GUID: 5d559a
Grid: true
GridProjection: false
Hands: true
@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
posX: -54.11
posY: 2.85
posZ: -108.64
rotX: 0.02
rotY: 270.01
rotZ: 180.02
rotY: 269.98
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -1,45 +0,0 @@
Autoraise: true
CardID: 230343
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2303':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956214701/377534905048B61E88314A81F482DD31D6B54038/
NumHeight: 7
NumWidth: 10
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 4224db
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Time Warp (2)
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -0,0 +1,45 @@
Autoraise: true
CardID: 266310
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: ba0fe7
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Time Warp (2)
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -48.18
posY: 3.17
posZ: -78.17
rotX: 0.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -36,9 +36,9 @@ Transform:
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 0.02
rotX: 359.99
rotY: 270.0
rotZ: 0.02
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -33,12 +33,12 @@ Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
posX: 0.0
posY: 1.5
posZ: 0.0
rotX: 359.99
rotY: 270.0
rotZ: 359.98
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0

View File

@ -0,0 +1,45 @@
Autoraise: true
CardID: 266328
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 7f5978
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Wendy's Amulet
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -40.86
posY: 3.17
posZ: -89.91
rotX: 0.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -1,45 +0,0 @@
Autoraise: true
CardID: 368928
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3689':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860341956229149/FC980D306FA8FE74C552981167CBDF4305821B31/
NumHeight: 7
NumWidth: 10
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: a56ffe
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Wendy's Amulet
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -0,0 +1,45 @@
Autoraise: true
CardID: 266311
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2663':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656727601395908060/2C854B8E2CE1E420C9AEF246BE3EC4138B724C1B/
NumHeight: 5
NumWidth: 6
Type: 0
UniqueBack: false
Description: Lost Son of Eztli
DragSelectable: true
GMNotes: ''
GUID: 284bbe
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Yaotl (1)
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -48.15
posY: 3.17
posZ: -85.35
rotX: 0.02
rotY: 270.0
rotZ: 0.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -1,45 +0,0 @@
Autoraise: true
CardID: 368840
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'3688':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/960860672864134253/9A6E0399D3624C5FFBD6CAFE5D4B988436CC65AC/
NumHeight: 7
NumWidth: 10
Type: 0
UniqueBack: false
Description: Lost Son of Earth
DragSelectable: true
GMNotes: ''
GUID: a7358f
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: Card
Nickname: Yaotl (1)
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: -66.06
posY: 3.48
posZ: -67.38
rotX: 0.02
rotY: 270.01
rotZ: 180.02
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

View File

@ -0,0 +1,45 @@
Autoraise: true
CardID: 266400
ColorDiffuse:
b: 0.713235259
g: 0.713235259
r: 0.713235259
CustomDeck:
'2664':
BackIsHidden: true
BackURL: https://i.imgur.com/EcbhVuh.jpg/
FaceURL: http://cloud-3.steamusercontent.com/ugc/1656728123511569951/E9A9A520312A1B7879E87F96EA67AE49B95EAD65/
NumHeight: 1
NumWidth: 1
Type: 0
UniqueBack: false
Description: ''
DragSelectable: true
GMNotes: ''
GUID: c174e3
Grid: true
GridProjection: false
Hands: true
HideWhenFaceDown: true
IgnoreFoW: false
Locked: false
LuaScript: ''
LuaScriptState: ''
MeasureMovement: false
Name: CardCustom
Nickname: Favor of the Moon (1)
SidewaysCard: false
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: 79.74
posY: 3.27
posZ: -2.58
rotX: 357.14
rotY: 269.96
rotZ: 181.17
scaleX: 1.0
scaleY: 1.0
scaleZ: 1.0
XmlUI: ''

Some files were not shown because too many files have changed in this diff Show More