diff --git a/objects/AllPlayerCards.15bb07/ScrollofSecrets.230835.json b/objects/AllPlayerCards.15bb07/ScrollofSecrets.230835.json index 57e5ec32..bdec7352 100644 --- a/objects/AllPlayerCards.15bb07/ScrollofSecrets.230835.json +++ b/objects/AllPlayerCards.15bb07/ScrollofSecrets.230835.json @@ -33,7 +33,7 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", + "LuaScript": "require(\"playercards/cards/ScrollofSecrets\")", "LuaScriptState": "", "MeasureMovement": false, "Name": "Card", diff --git a/objects/AllPlayerCards.15bb07/ScrollofSecrets3.0b12ac.json b/objects/AllPlayerCards.15bb07/ScrollofSecrets3.0b12ac.json index 58b80881..44ded60c 100644 --- a/objects/AllPlayerCards.15bb07/ScrollofSecrets3.0b12ac.json +++ b/objects/AllPlayerCards.15bb07/ScrollofSecrets3.0b12ac.json @@ -33,7 +33,7 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", + "LuaScript": "require(\"playercards/cards/ScrollofSecrets\")", "LuaScriptState": "", "MeasureMovement": false, "Name": "Card", diff --git a/objects/AllPlayerCards.15bb07/ScrollofSecrets3.194d88.json b/objects/AllPlayerCards.15bb07/ScrollofSecrets3.194d88.json index 99f1862c..d2dd906d 100644 --- a/objects/AllPlayerCards.15bb07/ScrollofSecrets3.194d88.json +++ b/objects/AllPlayerCards.15bb07/ScrollofSecrets3.194d88.json @@ -33,7 +33,7 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", + "LuaScript": "require(\"playercards/cards/ScrollofSecrets\")", "LuaScriptState": "", "MeasureMovement": false, "Name": "Card", diff --git a/objects/AllPlayerCards.15bb07/ScrollofSecrets3Taboo.84a7df.json b/objects/AllPlayerCards.15bb07/ScrollofSecrets3Taboo.84a7df.json index 7ea28028..705b77c2 100644 --- a/objects/AllPlayerCards.15bb07/ScrollofSecrets3Taboo.84a7df.json +++ b/objects/AllPlayerCards.15bb07/ScrollofSecrets3Taboo.84a7df.json @@ -33,7 +33,7 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", + "LuaScript": "require(\"playercards/cards/ScrollofSecrets\")", "LuaScriptState": "", "MeasureMovement": false, "Name": "Card", diff --git a/objects/AllPlayerCards.15bb07/ScrollofSecrets3Taboo.c127f1.json b/objects/AllPlayerCards.15bb07/ScrollofSecrets3Taboo.c127f1.json index e5143b65..f2640ffc 100644 --- a/objects/AllPlayerCards.15bb07/ScrollofSecrets3Taboo.c127f1.json +++ b/objects/AllPlayerCards.15bb07/ScrollofSecrets3Taboo.c127f1.json @@ -33,7 +33,7 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", + "LuaScript": "require(\"playercards/cards/ScrollofSecrets\")", "LuaScriptState": "", "MeasureMovement": false, "Name": "Card", diff --git a/objects/AllPlayerCards.15bb07/ScrollofSecretsTaboo.b383b8.json b/objects/AllPlayerCards.15bb07/ScrollofSecretsTaboo.b383b8.json index 2b56a0dc..0d62fb10 100644 --- a/objects/AllPlayerCards.15bb07/ScrollofSecretsTaboo.b383b8.json +++ b/objects/AllPlayerCards.15bb07/ScrollofSecretsTaboo.b383b8.json @@ -33,7 +33,7 @@ "IgnoreFoW": false, "LayoutGroupSortIndex": 0, "Locked": false, - "LuaScript": "", + "LuaScript": "require(\"playercards/cards/ScrollofSecrets\")", "LuaScriptState": "", "MeasureMovement": false, "Name": "Card", diff --git a/src/playercards/cards/ScrollofSecrets.ttslua b/src/playercards/cards/ScrollofSecrets.ttslua new file mode 100644 index 00000000..1cb68c7b --- /dev/null +++ b/src/playercards/cards/ScrollofSecrets.ttslua @@ -0,0 +1,32 @@ + + +function onLoad() + -- select mode via metadata and create context menu accordingly + local notes = JSON.decode(self.getGMNotes()) + if notes then + createContextMenu(notes.class) + else + print("Missing metadata for Scroll of Secrets!") + end +end + + +function createContextMenu(mode) + if mode == "Seeker|Mystic" then + + elseif mode == "Seeker" then + + elseif mode == "Mystic" then + + end +end + + +function drawCardsFromBottom(owner, amount) + +end + + +function actualCardDrawing(deck, amount) + +end \ No newline at end of file