From 1f75ac50124c68ee03768badacdf7ba2fd127ca0 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Sun, 2 Jun 2024 02:00:38 +0200 Subject: [PATCH] updated script --- objects/Playermat1White.8b081b.json | 18 +- objects/Playermat2Orange.bd0ff4.json | 18 +- objects/Playermat3Green.383d8b.json | 18 +- objects/Playermat4Red.0840d5.json | 18 +- .../TokenSource.124381/Neutral.04765c.json | 2285 ----------------- .../UniversalActionAbilityToken.834ad5.json | 20 +- src/core/UniversalActionAbilityToken.ttslua | 167 +- src/playermat/Playmat.ttslua | 11 +- 8 files changed, 211 insertions(+), 2344 deletions(-) delete mode 100644 objects/TokenSource.124381/Neutral.04765c.json diff --git a/objects/Playermat1White.8b081b.json b/objects/Playermat1White.8b081b.json index df236edd..5c45dac0 100644 --- a/objects/Playermat1White.8b081b.json +++ b/objects/Playermat1White.8b081b.json @@ -17,7 +17,7 @@ }, { "Position": { - "x": -0.865, + "x": -0.86, "y": 0.1, "z": -0.28 }, @@ -27,7 +27,7 @@ }, { "Position": { - "x": -1, + "x": -1.03, "y": 0.1, "z": -0.28 }, @@ -37,7 +37,7 @@ }, { "Position": { - "x": -1.18, + "x": -1.20, "y": 0.1, "z": -0.28 }, @@ -47,7 +47,17 @@ }, { "Position": { - "x": -1.36, + "x": -1.37, + "y": 0.1, + "z": -0.28 + }, + "Tags": [ + "UniversalToken" + ] + }, + { + "Position": { + "x": -1.54, "y": 0.1, "z": -0.28 }, diff --git a/objects/Playermat2Orange.bd0ff4.json b/objects/Playermat2Orange.bd0ff4.json index 534057e6..80f2a770 100644 --- a/objects/Playermat2Orange.bd0ff4.json +++ b/objects/Playermat2Orange.bd0ff4.json @@ -17,7 +17,7 @@ }, { "Position": { - "x": -0.865, + "x": -0.86, "y": 0.1, "z": -0.28 }, @@ -27,7 +27,7 @@ }, { "Position": { - "x": -1, + "x": -1.03, "y": 0.1, "z": -0.28 }, @@ -37,7 +37,7 @@ }, { "Position": { - "x": -1.18, + "x": -1.20, "y": 0.1, "z": -0.28 }, @@ -47,7 +47,17 @@ }, { "Position": { - "x": -1.36, + "x": -1.37, + "y": 0.1, + "z": -0.28 + }, + "Tags": [ + "UniversalToken" + ] + }, + { + "Position": { + "x": -1.54, "y": 0.1, "z": -0.28 }, diff --git a/objects/Playermat3Green.383d8b.json b/objects/Playermat3Green.383d8b.json index 45f4eeb1..6fcef484 100644 --- a/objects/Playermat3Green.383d8b.json +++ b/objects/Playermat3Green.383d8b.json @@ -17,7 +17,7 @@ }, { "Position": { - "x": -0.865, + "x": -0.86, "y": 0.1, "z": -0.28 }, @@ -27,7 +27,7 @@ }, { "Position": { - "x": -1, + "x": -1.03, "y": 0.1, "z": -0.28 }, @@ -37,7 +37,7 @@ }, { "Position": { - "x": -1.18, + "x": -1.20, "y": 0.1, "z": -0.28 }, @@ -47,7 +47,17 @@ }, { "Position": { - "x": -1.36, + "x": -1.37, + "y": 0.1, + "z": -0.28 + }, + "Tags": [ + "UniversalToken" + ] + }, + { + "Position": { + "x": -1.54, "y": 0.1, "z": -0.28 }, diff --git a/objects/Playermat4Red.0840d5.json b/objects/Playermat4Red.0840d5.json index a256db3e..a2b5b05d 100644 --- a/objects/Playermat4Red.0840d5.json +++ b/objects/Playermat4Red.0840d5.json @@ -17,7 +17,7 @@ }, { "Position": { - "x": -0.865, + "x": -0.86, "y": 0.1, "z": -0.28 }, @@ -27,7 +27,7 @@ }, { "Position": { - "x": -1, + "x": -1.03, "y": 0.1, "z": -0.28 }, @@ -37,7 +37,7 @@ }, { "Position": { - "x": -1.18, + "x": -1.20, "y": 0.1, "z": -0.28 }, @@ -47,7 +47,17 @@ }, { "Position": { - "x": -1.36, + "x": -1.37, + "y": 0.1, + "z": -0.28 + }, + "Tags": [ + "UniversalToken" + ] + }, + { + "Position": { + "x": -1.54, "y": 0.1, "z": -0.28 }, diff --git a/objects/TokenSource.124381/Neutral.04765c.json b/objects/TokenSource.124381/Neutral.04765c.json deleted file mode 100644 index 99c27be4..00000000 --- a/objects/TokenSource.124381/Neutral.04765c.json +++ /dev/null @@ -1,2285 +0,0 @@ -{ - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.24706, - "g": 0.24706, - "r": 0.24706 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355435567056295/5A6DE2C637AADCD147723211020D8C0D0591EAE7/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120440/08045D95997033A4D64764850FC2B68C4FB12A3C/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "04765c", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Memo": "actionToken", - "Name": "Custom_Tile", - "Nickname": "Neutral", - "Snap": true, - "States": { - "1": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.647058845, - "g": 0.3294117, - "r": 0.07450976 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524115513/9CA3B804F167041F03C9E0687378FF7B5DCDE1B8/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524115014/6CBF573A12494524613C6280F558D4BED97CF007/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "0bcce1", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Guardian", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -53.1985855, - "posY": 1.55004013, - "posZ": -22.5279942, - "rotX": 359.983826, - "rotY": 269.989624, - "rotZ": 359.9841, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "10": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.2117644, - "g": 0.2823527, - "r": 0.06666646 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120675/493ACE1FA05ED4DC96CC7F6D85B3488378C15DD2/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120736/F53989F0806C796D180647A16C6BB4E9957F6DBF/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "68f249", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Rogue Engage/Fight Action", - "Snap": true, - "States": { - "1": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.647058845, - "g": 0.329411745, - "r": 0.07450979 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524115513/9CA3B804F167041F03C9E0687378FF7B5DCDE1B8/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524115014/6CBF573A12494524613C6280F558D4BED97CF007/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "e4b2b6", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Guardian", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.242507, - "posY": 0.959991634, - "posZ": -3.66628647, - "rotX": 3.19422554e-7, - "rotY": 269.987976, - "rotZ": -0.00009157829, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "11": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.2117644, - "g": 0.2823527, - "r": 0.06666646 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119623/2244A30B5EBB4126F0BE1D2FF61F6C824DFEE58D/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119692/042FBF813801CFDF4FEDA9ED3205D331842975FA/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "befce9", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Evade Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -8.970487, - "posY": 0.959991634, - "posZ": -5.93830156, - "rotX": -0.0000076235865, - "rotY": 269.9841, - "rotZ": -0.000118024727, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "12": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.2117644, - "g": 0.2823527, - "r": 0.06666646 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120530/79626D1941BEE2D2A310FD4B7C8E3CE90E6820AB/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120607/0D0F1B80B4E6A20B4728F1F7582FF09C1D4A3B9F/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "b439e3", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Parley Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -8.970486, - "posY": 0.959991634, - "posZ": -7.074313, - "rotX": 0.0000133775629, - "rotY": 269.988464, - "rotZ": -0.0000981453049, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "13": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.380391777, - "g": 0.07058794, - "r": 0.321568251 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121068/E62DCFA57CE5FE6AF021A2F07C6650323BE19C93/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121138/A5506FADCE917AA99925516A147E0320322B5BDD/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "f72f18", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Spell Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -7.834444, - "posY": 0.9599933, - "posZ": -3.666303, - "rotX": -0.0000930833849, - "rotY": 269.979767, - "rotZ": -0.0000140167895, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "14": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.176470339, - "g": 0.117646806, - "r": 0.745098054 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119758/EE686A3287D3399347AD72140474F599585E68D5/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119839/A92D5AF13B283117BD62EE84B657A3A71FBBD274/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "bbd286", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Play Item Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -7.83447456, - "posY": 0.9599919, - "posZ": -4.80229, - "rotX": -0.0000181347659, - "rotY": 269.9885, - "rotZ": -0.000124786486, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "15": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/952965722516201848/72B3B9E2B59F25FEC82412AC22245D03655A4558/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "11508f", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Guardian", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -7.83447456, - "posY": 1.019994, - "posZ": -5.93830156, - "rotX": 0.00007209413, - "rotY": 269.988525, - "rotZ": 0.0000200837931, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "16": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/952965722516265983/F50A6212D30C442429ED22B8CC8FD24D4CB76A2A/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "8888ff", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Seeker", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -7.834475, - "posY": 1.01999056, - "posZ": -7.074312, - "rotX": -0.00008478706, - "rotY": 270.009827, - "rotZ": -0.00007123187, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "17": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/952965722515898740/E92441671B056D4CDF99DF9E6C88BE6598AAB50F/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "7f001b", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Rogue", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -6.698466, - "posY": 1.01999128, - "posZ": -3.66628671, - "rotX": 0.00007766587, - "rotY": 270.000031, - "rotZ": 0.000128919462, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "18": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/952965722516557267/757887224F6C37104CDFFE241FAD09B57117D670/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "6bd479", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Mystic", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -6.69846535, - "posY": 1.019991, - "posZ": -4.80229, - "rotX": 0.0000896203055, - "rotY": 269.999969, - "rotZ": 0.000128821237, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "19": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/952965722515960460/F43F63452854B10B416FDF3BF9EF3068E6E68F26/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "172d0e", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Survivor", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -6.69846535, - "posY": 1.01999176, - "posZ": -5.938301, - "rotX": 0.000100863988, - "rotY": 270.000061, - "rotZ": 0.0000739920142, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "2": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.290195674, - "g": 0.5803921, - "r": 0.894117653 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120939/5A99D70BBAA96A7CCE94CBAA01BC8C9352F59174/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121002/727C40B7A122B3EC91AD1EF76741A9888E1FF0FF/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "45b80c", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Seeker", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425117, - "posY": 0.959991634, - "posZ": -3.66628766, - "rotX": -0.00000112005034, - "rotY": 269.987976, - "rotZ": -0.00009159232, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "20": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/950722873599303195/BAB8BB40C755C099128931212969243EFF56ED39/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "2d0664", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Neutral", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -6.698465, - "posY": 1.01999319, - "posZ": -7.07431269, - "rotX": 0.00007148875, - "rotY": 270.000122, - "rotZ": 0.00009776296, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "3": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.211764365, - "g": 0.282352656, - "r": 0.06666643 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120799/1AA70B46183E3DC9981CD93D0A289D456C368B15/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120870/FFA52250CDBE4067D16226E7B4C8D2E6BF263C5B/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "6cd9a4", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Rogue", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425175, - "posY": 0.959991634, - "posZ": -3.66628838, - "rotX": -0.0000136311965, - "rotY": 269.987885, - "rotZ": -0.00010959358, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "4": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.380391747, - "g": 0.07058791, - "r": 0.321568221 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120230/08DDB68E10023CC76B9450989F3526F9744A9F77/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120299/D6B1AAFF9763CD6F410D56A716D731714DE34EF8/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "484748", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Mystic", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425222, - "posY": 0.959991634, - "posZ": -3.66628933, - "rotX": -0.0000148262206, - "rotY": 269.987854, - "rotZ": -0.000109348286, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "5": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.176470309, - "g": 0.117646776, - "r": 0.745098054 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121217/CBDB66CA029638728CE27CCBD335BDCFF25B6BCE/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121301/8A83B84C4EC594D48259904616769E84C5191F83/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "59124e", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Survivor", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.242528, - "posY": 0.959991634, - "posZ": -3.66629028, - "rotX": -0.0000209040336, - "rotY": 269.9878, - "rotZ": -0.000119170043, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "6": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.247059911, - "g": 0.247059911, - "r": 0.247059911 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355435567056295/5A6DE2C637AADCD147723211020D8C0D0591EAE7/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120440/08045D95997033A4D64764850FC2B68C4FB12A3C/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "2691e1", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Neutral", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425337, - "posY": 0.959991634, - "posZ": -3.66629124, - "rotX": -0.0000184208129, - "rotY": 269.9878, - "rotZ": -0.000116128736, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "7": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.647058845, - "g": 0.3294117, - "r": 0.07450976 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119903/366BC6E113AE8B9BE480617CEC6BE564CF37CE93/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119975/196A6AB09BE31462712BA7DF6F6698762B3FC98D/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "29d645", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Guardian Engage/Fight Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425385, - "posY": 0.959991634, - "posZ": -3.66629219, - "rotX": -0.0000287290841, - "rotY": 269.9878, - "rotZ": -0.000127649575, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "8": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.290195674, - "g": 0.5803921, - "r": 0.894117653 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120070/74F06CA8602C110158A32ADFF9E1FC1FB858612B/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120154/9E0936305F807390EBA6AB130E498BFEDBA7596C/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "85047f", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Investigate Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425432, - "posY": 0.959991634, - "posZ": -3.66629314, - "rotX": -0.0000293503817, - "rotY": 269.987823, - "rotZ": -0.000127514912, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "9": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.290195674, - "g": 0.5803921, - "r": 0.894117653 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121381/43FEB2F56E57A5B72E6E7F02E138539D5BB42AC1/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121455/F21B46B06BBF327601B4F8A5F9F00974149A6752/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "2c6c38", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Tome Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425489, - "posY": 0.959991634, - "posZ": -3.66629434, - "rotX": -0.0000277218132, - "rotY": 269.987732, - "rotZ": -0.000125872859, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - } - }, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425489, - "posY": 0.959991634, - "posZ": -3.66629434, - "rotX": -0.0000277218132, - "rotY": 269.987732, - "rotZ": -0.000125872859, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "11": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.2117644, - "g": 0.2823527, - "r": 0.06666646 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119623/2244A30B5EBB4126F0BE1D2FF61F6C824DFEE58D/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119692/042FBF813801CFDF4FEDA9ED3205D331842975FA/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "befce9", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Evade Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -8.970487, - "posY": 0.959991634, - "posZ": -5.93830156, - "rotX": -0.0000076235865, - "rotY": 269.9841, - "rotZ": -0.000118024727, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "12": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.2117644, - "g": 0.2823527, - "r": 0.06666646 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120530/79626D1941BEE2D2A310FD4B7C8E3CE90E6820AB/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120607/0D0F1B80B4E6A20B4728F1F7582FF09C1D4A3B9F/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "b439e3", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Parley Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -8.970486, - "posY": 0.959991634, - "posZ": -7.074313, - "rotX": 0.0000133775629, - "rotY": 269.988464, - "rotZ": -0.0000981453049, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "13": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.380391777, - "g": 0.07058794, - "r": 0.321568251 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121068/E62DCFA57CE5FE6AF021A2F07C6650323BE19C93/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121138/A5506FADCE917AA99925516A147E0320322B5BDD/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "f72f18", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Spell Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -7.834444, - "posY": 0.9599933, - "posZ": -3.666303, - "rotX": -0.0000930833849, - "rotY": 269.979767, - "rotZ": -0.0000140167895, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "14": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.176470339, - "g": 0.117646806, - "r": 0.745098054 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119758/EE686A3287D3399347AD72140474F599585E68D5/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119839/A92D5AF13B283117BD62EE84B657A3A71FBBD274/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "bbd286", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Play Item Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -7.83447456, - "posY": 0.9599919, - "posZ": -4.80229, - "rotX": -0.0000181347659, - "rotY": 269.9885, - "rotZ": -0.000124786486, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "15": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/952965722516201848/72B3B9E2B59F25FEC82412AC22245D03655A4558/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "11508f", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Guardian", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -7.83447456, - "posY": 1.019994, - "posZ": -5.93830156, - "rotX": 0.00007209413, - "rotY": 269.988525, - "rotZ": 0.0000200837931, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "16": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/952965722516265983/F50A6212D30C442429ED22B8CC8FD24D4CB76A2A/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "8888ff", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Seeker", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -7.834475, - "posY": 1.01999056, - "posZ": -7.074312, - "rotX": -0.00008478706, - "rotY": 270.009827, - "rotZ": -0.00007123187, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "17": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/952965722515898740/E92441671B056D4CDF99DF9E6C88BE6598AAB50F/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "7f001b", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Rogue", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -6.698466, - "posY": 1.01999128, - "posZ": -3.66628671, - "rotX": 0.00007766587, - "rotY": 270.000031, - "rotZ": 0.000128919462, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "18": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/952965722516557267/757887224F6C37104CDFFE241FAD09B57117D670/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "6bd479", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Mystic", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -6.69846535, - "posY": 1.019991, - "posZ": -4.80229, - "rotX": 0.0000896203055, - "rotY": 269.999969, - "rotZ": 0.000128821237, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "19": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/952965722515960460/F43F63452854B10B416FDF3BF9EF3068E6E68F26/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "172d0e", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Survivor", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -6.69846535, - "posY": 1.01999176, - "posZ": -5.938301, - "rotX": 0.000100863988, - "rotY": 270.000061, - "rotZ": 0.0000739920142, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "2": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.290195674, - "g": 0.5803921, - "r": 0.894117653 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120939/5A99D70BBAA96A7CCE94CBAA01BC8C9352F59174/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121002/727C40B7A122B3EC91AD1EF76741A9888E1FF0FF/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "45b80c", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Seeker", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425117, - "posY": 0.959991634, - "posZ": -3.66628766, - "rotX": -0.00000112005034, - "rotY": 269.987976, - "rotZ": -0.00009159232, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "20": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 1, - "g": 1, - "r": 1 - }, - "CustomMesh": { - "CastShadows": true, - "ColliderURL": "", - "Convex": true, - "DiffuseURL": "http://cloud-3.steamusercontent.com/ugc/950722873599303195/BAB8BB40C755C099128931212969243EFF56ED39/", - "MaterialIndex": 3, - "MeshURL": "https://pastebin.com/raw/ALrYhQGb", - "NormalURL": "", - "TypeIndex": 4 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "2d0664", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Model", - "Nickname": "Neutral", - "Snap": true, - "Sticky": true, - "Tooltip": true, - "Transform": { - "posX": -6.698465, - "posY": 1.01999319, - "posZ": -7.07431269, - "rotX": 0.00007148875, - "rotY": 270.000122, - "rotZ": 0.00009776296, - "scaleX": 0.45, - "scaleY": 0.6, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "3": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.211764365, - "g": 0.282352656, - "r": 0.06666643 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120799/1AA70B46183E3DC9981CD93D0A289D456C368B15/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120870/FFA52250CDBE4067D16226E7B4C8D2E6BF263C5B/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "6cd9a4", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Rogue", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425175, - "posY": 0.959991634, - "posZ": -3.66628838, - "rotX": -0.0000136311965, - "rotY": 269.987885, - "rotZ": -0.00010959358, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "4": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.380391747, - "g": 0.07058791, - "r": 0.321568221 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120230/08DDB68E10023CC76B9450989F3526F9744A9F77/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120299/D6B1AAFF9763CD6F410D56A716D731714DE34EF8/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "484748", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Mystic", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425222, - "posY": 0.959991634, - "posZ": -3.66628933, - "rotX": -0.0000148262206, - "rotY": 269.987854, - "rotZ": -0.000109348286, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "5": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.176470309, - "g": 0.117646776, - "r": 0.745098054 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121217/CBDB66CA029638728CE27CCBD335BDCFF25B6BCE/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121301/8A83B84C4EC594D48259904616769E84C5191F83/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "59124e", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Survivor", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.242528, - "posY": 0.959991634, - "posZ": -3.66629028, - "rotX": -0.0000209040336, - "rotY": 269.9878, - "rotZ": -0.000119170043, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "7": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.647058845, - "g": 0.3294117, - "r": 0.07450976 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119903/366BC6E113AE8B9BE480617CEC6BE564CF37CE93/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524119975/196A6AB09BE31462712BA7DF6F6698762B3FC98D/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "29d645", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Guardian Engage/Fight Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425385, - "posY": 0.959991634, - "posZ": -3.66629219, - "rotX": -0.0000287290841, - "rotY": 269.9878, - "rotZ": -0.000127649575, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "8": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.290195674, - "g": 0.5803921, - "r": 0.894117653 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120070/74F06CA8602C110158A32ADFF9E1FC1FB858612B/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524120154/9E0936305F807390EBA6AB130E498BFEDBA7596C/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "85047f", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Investigate Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425432, - "posY": 0.959991634, - "posZ": -3.66629314, - "rotX": -0.0000293503817, - "rotY": 269.987823, - "rotZ": -0.000127514912, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - }, - "9": { - "AltLookAngle": { - "x": 0, - "y": 0, - "z": 0 - }, - "Autoraise": true, - "ColorDiffuse": { - "b": 0.290195644, - "g": 0.5803921, - "r": 0.894117653 - }, - "CustomImage": { - "CustomTile": { - "Stackable": false, - "Stretch": true, - "Thickness": 0.1, - "Type": 2 - }, - "ImageScalar": 1, - "ImageSecondaryURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121381/43FEB2F56E57A5B72E6E7F02E138539D5BB42AC1/", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2037355191524121455/F21B46B06BBF327601B4F8A5F9F00974149A6752/", - "WidthScale": 0 - }, - "Description": "Action Token", - "DragSelectable": true, - "GMNotes": "", - "GUID": "2c6c38", - "Grid": true, - "GridProjection": false, - "Hands": false, - "HideWhenFaceDown": false, - "IgnoreFoW": false, - "LayoutGroupSortIndex": 0, - "Locked": false, - "LuaScript": "", - "LuaScriptState": "", - "MeasureMovement": false, - "Name": "Custom_Tile", - "Nickname": "Tome Action", - "Snap": true, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -11.2425547, - "posY": 0.959991634, - "posZ": -3.66629553, - "rotX": -0.0000261616078, - "rotY": 269.987671, - "rotZ": -0.00012405579, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" - } - }, - "Sticky": true, - "Tags": [ - "ActionToken" - ], - "Tooltip": true, - "Transform": { - "posX": -53.2, - "posY": 1.55, - "posZ": 9.67, - "rotX": 0, - "rotY": 270, - "rotZ": 0, - "scaleX": 0.45, - "scaleY": 1, - "scaleZ": 0.45 - }, - "Value": 0, - "XmlUI": "" -} diff --git a/objects/TokenSource.124381/UniversalActionAbilityToken.834ad5.json b/objects/TokenSource.124381/UniversalActionAbilityToken.834ad5.json index bacf7108..67e5aa0e 100644 --- a/objects/TokenSource.124381/UniversalActionAbilityToken.834ad5.json +++ b/objects/TokenSource.124381/UniversalActionAbilityToken.834ad5.json @@ -29,9 +29,9 @@ "URL": "http://cloud-3.steamusercontent.com/ugc/2447222612020427973/0E2846A1A2FBD43301CA7639214066FC7D6DA639/" }, { - "Name": "Border", + "Name": "Engage", "Type": 0, - "URL": "http://cloud-3.steamusercontent.com/ugc/2447222612020428096/AE301C4B18B881FEC97AA208905520B35C906696/" + "URL": "http://cloud-3.steamusercontent.com/ugc/2447222612028466079/0F82B3F654CCC43846A2FB49D30277EA6BD6F638/" }, { "Name": "Evade", @@ -51,13 +51,18 @@ { "Name": "FreeTrigger", "Type": 0, - "URL": "http://cloud-3.steamusercontent.com/ugc/2447222612020428391/1AD72AF8D5B24171146B712109B20E27EF02F192/" + "URL": "http://cloud-3.steamusercontent.com/ugc/2447222612028469131/89E84A750CEBE4FD056DB0479465F6DF9341D8B7/" }, { "Name": "Investigate", "Type": 0, "URL": "http://cloud-3.steamusercontent.com/ugc/2447222612020428669/E96AF92A07C94429A9E2D68A63C6E489E000EE0E/" }, + { + "Name": "Move", + "Type": 0, + "URL": "http://cloud-3.steamusercontent.com/ugc/2447222612028309124/F23B2D2DDAF7B929004CB4E2ADA7524D5FCCA7D9/" + }, { "Name": "Parley", "Type": 0, @@ -88,6 +93,11 @@ "Type": 0, "URL": "http://cloud-3.steamusercontent.com/ugc/2447222612020429879/3DE13BD6A88637B0D114B38A18F3F997AA553820/" }, + { + "Name": "Ring", + "Type": 0, + "URL": "http://cloud-3.steamusercontent.com/ugc/2447222612028155966/8A83450BA18BC7E000474C065EFB6E6BB2AE081F/" + }, { "Name": "GuardianClass", "Type": 0, @@ -165,7 +175,7 @@ "MeasureMovement": false, "Memo": "universalActionAbility", "Name": "Custom_Tile", - "Nickname": "Universal Action Ability Token", + "Nickname": "Universal Action / Ability Token", "Snap": true, "Sticky": true, "Tags": [ @@ -178,7 +188,7 @@ "posZ": 7.323, "rotX": 0, "rotY": 270, - "rotZ": 180, + "rotZ": 0, "scaleX": 0.45, "scaleY": 1, "scaleZ": 0.45 diff --git a/src/core/UniversalActionAbilityToken.ttslua b/src/core/UniversalActionAbilityToken.ttslua index ca87322d..3745866e 100644 --- a/src/core/UniversalActionAbilityToken.ttslua +++ b/src/core/UniversalActionAbilityToken.ttslua @@ -11,11 +11,13 @@ local listOfClasses = { local listOfSymbols = { "Activate", + "Engage", "Evade", "Explore", "Fight", "FreeTrigger", "Investigate", + "Move", "Parley", "PlayItem", "Reaction", @@ -30,6 +32,14 @@ local listOfSymbols = { "Survivor" } +local colorsForClasses = { + Guardian = Color.new(19 / 255, 84 / 255, 165 / 255), + Mystic = Color.new(82 / 255, 18 / 255, 97 / 255), + Neutral = Color.new(108 / 255, 110 / 255, 112 / 255), + Rogue = Color.new(17 / 255, 72 / 255, 54 / 255), + Seeker = Color.new(228 / 255, 148 / 255, 74 / 255), + Survivor = Color.new(190 / 255, 30 / 255, 45 / 255) +} function onSave() return JSON.encode({ class = class, symbol = symbol }) @@ -42,6 +52,7 @@ function onLoad(savedData) updateDisplay() addContextMenu() + math.randomseed(os.time()) end function updateDisplay() @@ -52,21 +63,23 @@ function updateDisplay() attributes = { id = "ClassFront", image = class .. "Class", - height = "200", - width = "200", - position = "0 0 0.1", - rotation = "0 180 180" + height = "2000", + width = "2000", + scale = "0.1 0.1 1", + position = "0 0 -10.1", + rotation = "0 0 180" } }, - -- circular border on the front + -- ring on the front { tag = "Image", attributes = { - image = "Border", - height = "200", - width = "200", - position = "0 0 0.2", - rotation = "0 180 180" + image = "Ring", + height = "2000", + width = "2000", + scale = "0.1 0.1 1", + position = "0 0 -10.2", + rotation = "0 0 180" } }, -- symbol on the front @@ -75,10 +88,11 @@ function updateDisplay() attributes = { id = "SymbolFront", image = symbol, - height = "200", - width = "200", - position = "0 0 0.3", - rotation = "0 180 180" + height = "2000", + width = "2000", + scale = "0.1 0.1 1", + position = "0 0 -10.3", + rotation = "0 0 180" } }, -- background on the back @@ -87,23 +101,24 @@ function updateDisplay() attributes = { id = "ClassBack", image = "NeutralClass", - height = "200", - width = "200", - position = "0 0 -10.1", - rotation = "0 0 180" + height = "2000", + width = "2000", + scale = "0.1 0.1 1", + position = "0 0 0.1", + rotation = "0 180 180" } }, - -- circular border on the back + -- ring on the back { tag = "Image", attributes = { - image = "Border", - -- update color on the back for neutral - color = (class == "Neutral") and "#000000" or "#FFFFFF", - height = "200", - width = "200", - position = "0 0 -10.2", - rotation = "0 0 180" + image = "Ring", + color = "#000000", + height = "2000", + width = "2000", + scale = "0.1 0.1 1", + position = "0 0 0.2", + rotation = "0 180 180" } }, -- symbol on the back @@ -112,17 +127,53 @@ function updateDisplay() attributes = { id = "SymbolBack", image = symbol, - -- update color on the back for neutral - color = (class == "Neutral") and "#000000" or "#FFFFFF", - height = "200", - width = "200", - position = "0 0 -10.3", - rotation = "0 0 180" + color = "#000000", + height = "2000", + width = "2000", + scale = "0.1 0.1 1", + position = "0 0 0.3", + rotation = "0 180 180" } } } + + -- handling for double symbols + if string.contains(symbol, "/") then + local symbols = {} + for str in string.gmatch(symbol, "([^/]+)") do + table.insert(symbols, str) + end + + -- update front image + xml[3].attributes.image = symbols[1] + xml[3].attributes.height = xml[3].attributes.height / 2 + xml[3].attributes.width = xml[3].attributes.width / 2 + xml[3].attributes.position = "35 0 -10.3" + + -- add 2nd image element to front + local frontSymbolXml = deepcopy(xml[3]) + frontSymbolXml.attributes.image = symbols[2] + frontSymbolXml.attributes.position = "-35 0 -10.3" + table.insert(xml, frontSymbolXml) + + -- update back image + xml[6].attributes.image = symbols[1] + xml[6].attributes.height = xml[6].attributes.height / 2 + xml[6].attributes.width = xml[6].attributes.width / 2 + xml[6].attributes.position = "35 0 0.3" + + -- add 2nd image element to back + local backSymbolXml = deepcopy(xml[6]) + backSymbolXml.attributes.image = symbols[2] + backSymbolXml.attributes.position = "-35 0 0.3" + table.insert(xml, backSymbolXml) + end + self.UI.setXmlTable(xml) + -- set color tint + self.setColorTint(colorsForClasses[class]) + -- update name (only show symbol name if it isn't the class name) if isClassName(symbol) then self.setName(class) @@ -132,9 +183,9 @@ function updateDisplay() -- update scale if symbol == "FreeTrigger" or symbol == "Reaction" then - self.setScale({0.35, 1, 0.35}) + self.setScale({ 0.35, 1, 0.35 }) else - self.setScale({0.45, 1, 0.45}) + self.setScale({ 0.45, 1, 0.45 }) end end @@ -143,12 +194,33 @@ function addContextMenu() Player[playerColor].showOptionsDialog("Choose class", listOfClasses, class, updateClass) end) + -- get display symbol from potential list + local symbols = {} + for str in string.gmatch(symbol, "([^/]+)") do + table.insert(symbols, str) + end + self.addContextMenuItem("Change symbol", function(playerColor) - Player[playerColor].showOptionsDialog("Choose symbol", listOfSymbols, symbol, updateSymbol) + Player[playerColor].showOptionsDialog("Choose symbol", listOfSymbols, symbols[1], updateSymbol) + end) + + self.addContextMenuItem("Add 2nd symbol", function(playerColor) + if string.contains(symbol, "/") then + broadcastToColor("Two symbols is the maximum!", playerColor, "Orange") + else + Player[playerColor].showOptionsDialog("Choose 2nd symbol", listOfSymbols, symbol, function(additionalSymbol) + symbol = symbol .. "/" .. additionalSymbol + updateDisplay() + end) + end end) end function updateClass(newClass) + -- also update the symbol if it matches the class + if class == symbol then + symbol = newClass or "Neutral" + end class = newClass or "Neutral" updateDisplay() end @@ -172,3 +244,28 @@ function isClassName(str) end return false end + +function onRandomize() + local newSymbol = listOfSymbols[math.random(1, #listOfSymbols)] + + -- if the new symbol is a class symbol, don't get a random class + if isClassName(newSymbol) then + updateClassAndSymbol({ class = newSymbol, symbol = newSymbol }) + else + updateClassAndSymbol({ class = listOfClasses[math.random(1, #listOfClasses)], symbol = newSymbol }) + end +end + +function deepcopy(orig) + local copy + if type(orig) == 'table' then + copy = {} + for orig_key, orig_value in next, orig, nil do + copy[deepcopy(orig_key)] = deepcopy(orig_value) + end + setmetatable(copy, deepcopy(getmetatable(orig))) + else -- number, string, boolean, etc + copy = orig + end + return copy +end diff --git a/src/playermat/Playmat.ttslua b/src/playermat/Playmat.ttslua index 10bb80af..b3b3e39e 100644 --- a/src/playermat/Playmat.ttslua +++ b/src/playermat/Playmat.ttslua @@ -876,7 +876,7 @@ function maybeUpdateActiveInvestigator(card) -- spawn three regular action tokens (investigator specific one in the bottom spot) for i = 1, 3 do -- get position - local pos = self.positionToWorld(Vector(-1.54 + i * 0.18, 0, -0.28)):setAt("y", 0.1) + local pos = self.positionToWorld(Vector(-1.54 + i * 0.17, 0, -0.28)):add(Vector(0, 0.2, 0)) tokenManager.spawnToken(pos, "universalActionAbility", self.getRotation(), function(spawned) spawned.call("updateClassAndSymbol", { class = class, symbol = class }) @@ -888,8 +888,13 @@ function maybeUpdateActiveInvestigator(card) -- set value to class if currently "nil" extraToken = extraToken or class - -- get position - local pos = self.positionToWorld(Vector(-1, 0, 0.118)):setAt("y", 0.1) + -- get position (on the investigator card for abilities) + local pos + if extraToken == "FreeTrigger" or extraToken == "Reaction" then + pos = self.positionToWorld(Vector(-1, 0, 0.118)):add(Vector(0, 0.2, 0)) + else + pos = self.positionToWorld(Vector(-1.54 + 4 * 0.17, 0, -0.28)):add(Vector(0, 0.2, 0)) + end tokenManager.spawnToken(pos, "universalActionAbility", self.getRotation(), function(spawned) spawned.call("updateClassAndSymbol", { class = class, symbol = extraToken })