dynamic tourscript

This commit is contained in:
Chr1Z93 2023-09-30 18:37:55 +02:00
parent 18c06b4691
commit accf9d7197
6 changed files with 11 additions and 7 deletions

View File

@ -36,6 +36,7 @@
"LuaScript": "require(\"playercards/PlayerCardPanel\")",
"LuaScriptState": "{\"spawnBagState\":{\"placed\":[],\"placedObjects\":[]}}",
"MeasureMovement": false,
"Memo": "{\"matColor\":\"Mythos\",\"type\":\"PlayerCardPanel\"}",
"Name": "Custom_Tile",
"Nickname": "Player Cards",
"Snap": true,

View File

@ -39,6 +39,7 @@
"LuaScriptState": "",
"MaterialIndex": -1,
"MeasureMovement": false,
"Memo": "{\"matColor\":\"Mythos\",\"type\":\"ResourceTokenBag\"}",
"MeshIndex": -1,
"Name": "Custom_Model_Infinite_Bag",
"Nickname": "Resource tokens",

View File

@ -30,6 +30,7 @@
"LuaScript": "",
"LuaScriptState": "",
"MeasureMovement": false,
"Memo": "{\"matColor\":\"Mythos\",\"type\":\"RulesReference\"}",
"Name": "Custom_PDF",
"Nickname": "Rules Reference",
"Snap": true,

View File

@ -45,6 +45,7 @@
"LuaScript": "require(\"core/DownloadBox\")",
"LuaScriptState": "",
"MeasureMovement": false,
"Memo": "{\"matColor\":\"Mythos\",\"type\":\"CampaignThePathToCarcosa\"}",
"Name": "Custom_Model",
"Nickname": "The Path to Carcosa",
"Snap": true,

View File

@ -123,8 +123,8 @@ do
delay = delay + 0.5
end
local lookPos
if TOUR_SCRIPT[cardIndex].showObj ~= nil then
local lookAtObj = getObjectFromGUID(TOUR_SCRIPT[cardIndex].showObj)
if TOUR_SCRIPT[cardIndex].objMemoData ~= nil then
local lookAtObj = Global.call("getObjectFromMemo", TOUR_SCRIPT[cardIndex].objMemoData)
lookPos = lookAtObj.getPosition()
lookPos.y = TOUR_SCRIPT[cardIndex].distanceFromObj or 0
-- Since camera isn't directly above the hook, changing the Y affects the visual position of

View File

@ -15,7 +15,7 @@ TOUR_SCRIPT = {
{
narrator = "Daisy",
text = "If you're new to the game, the library here has everything you'll need. A little research can go a long way, and looking into old newspapers for the weird and unusual can yield some surprisingly helpful information.\n\nI put a few right there that might prove enlightening.",
showObj = "d99993",
objMemoData = { matColor = "Mythos", type = "RulesReference" },
distanceFromObj = 20,
position = "west",
speakerSide = "right"
@ -23,7 +23,7 @@ TOUR_SCRIPT = {
{
narrator = "Mandy",
text = "To survive what's coming you'll need a deck. If it's safely hidden away on ArkhamDB you can load it here, and even find the newest version after an upgrade without changing the ID.\n\nNo need to publish all your decks, use 'Private' and you can see it. Just make sure to select 'Make your decks public' in ArkhamDB.",
showObj = "a28140",
objMemoData = { matColor = "Mythos", type = "DeckImporter" },
distanceFromObj = -5,
position = "northwest",
skipCentering = true,
@ -31,7 +31,7 @@ TOUR_SCRIPT = {
{
narrator = "Daniela",
text = "I prefer the hands-on approach to building things, if you do too you can build a deck yourself.\n\nAll the cards you could ever need are here, laid out like a disassembled engine. Place the cards on the table, copy them for your deck, and you'll be ready for anything.",
showObj = "2d30ee",
objMemoData = { matColor = "Mythos", type = "PlayerCardPanel" },
distanceFromObj = -7,
position = "south",
speakerSide = "right"
@ -39,7 +39,7 @@ TOUR_SCRIPT = {
{
narrator = "Finn",
text = "Ready to face the unknown? We've smuggled shocking revelations and devious enemies from all over the world. Download the campaign you want to play, then Place it on the table to see the scenarios.\n\nJust remember - if it turns out to be too much for you, I was never here.",
showObj = "aca04c",
objMemoData = = { matColor = "Mythos", type = "CampaignThePathToCarcosa" },
distanceFromObj = 20,
position = "northwest",
},
@ -77,7 +77,7 @@ TOUR_SCRIPT = {
{
narrator = "Preston",
text = "I can afford to buy what I need, but for those less well-off we've provided an endless pool of tokens to track your game. Simply drag one out of the pools here.\n\nResources are my favorite of course, but damage and horror are as inevitable as taxes. I leave those to my bookkeeper though. Those tokens can work like counters, use the number keys to change the value.",
showObj = "9fadf9",
objMemoData = = { matColor = "Mythos", type = "ResourceTokenBag" },
position = "north",
skipCentering = true,
speakerSide = "right"