Quinnsicle / arcs_tts

A mod for Tabletop Simulator that automates some actions and setup for the next upcoming title by Leder Games, Arcs.
5 stars 4 forks source link

enhancement: add snap point for initiative marker #21

Closed fallspectrum closed 1 month ago

fallspectrum commented 1 month ago

The scripted initiative movements help, but in situations where it gets moved manually, it's nice to have.

fallspectrum commented 1 month ago

Requires adding

   "Tags": [
        "Initiative"
      ],

to

{
      "GUID": "b3b3d0",
      "Name": "Custom_Model",
      "Transform": {
        "posX": -16.21615,
        "posY": -2.0,
        "posZ": 1.40615714,
        "rotX": -1.64243847E-05,
        "rotY": 0.0010432438,
        "rotZ": -6.166518E-06,
        "scaleX": 1.0,
        "scaleY": 1.0,
        "scaleZ": 1.0
      },
      "Nickname": "Initiative",
      "Description": "",
      "GMNotes": "",
      "AltLookAngle": {
        "x": 0.0,
        "y": 0.0,
        "z": 0.0
      },
      "ColorDiffuse": {
        "r": 1.0,
        "g": 1.0,
        "b": 1.0
      },
      "Tags": [
        "Initiative"
      ],

And adding:

{
      "Position": {
        "x": 24.6970863,
        "y": 0.9611349,
        "z": -11.084
      },
      "Rotation": {
        "x": -1.38506048E-05,
        "y": 0.0011014702,
        "z": 1.58460512E-06
      },
      "Tags": [
        "Initiative"
      ]
    },
    {
      "Position": {
        "x": 24.6964664,
        "y": 0.9611349,
        "z": 20.32479
      },
      "Rotation": {
        "x": -5.772771E-06,
        "y": 0.00109330693,
        "z": 2.16748936E-06
      },
      "Tags": [
        "Initiative"
      ]
    },
    {
      "Position": {
        "x": 1.05646694,
        "y": 0.9611349,
        "z": 20.3276825
      },
      "Rotation": {
        "x": -6.79644972E-06,
        "y": 0.00109656726,
        "z": 2.24386786E-05
      },
      "Tags": [
        "Initiative"
      ]
    },
    {
      "Position": {
        "x": 1.057924,
        "y": 0.9611349,
        "z": -11.0809717
      },
      "Rotation": {
        "x": -1.92476618E-05,
        "y": 0.00105187646,
        "z": -6.457663E-06
      },
      "Tags": [
        "Initiative"
      ]
    }

to "SnapPoints". These should match the natural coordinates that each piece ends up at when using "take initiative" control button.

Quinnsicle commented 1 month ago

Added a commit. Thanks for the suggestion!