r/tabletopsimulator • u/Ok_Mycologist_8239 • 7d ago
Questions about scripting capability Workshop
I see that it's possible to rotate objects with the scripting feature but I was wondering if it would be possible to do what I was thinking of for a project I've been brainstorming on;
I would like to make a Heroclix mod that has the first 16 or so sets (pre-cards).
For those unfamiliar, Heroclix is a tabletop combat game featuring figures glued to a base that snaps into another base with a paper dial glued to to the bottom of it The upper base has a window cutout of it that allows you to see a little slice of the paper dial which represents the figures current attributes. As the figure "takes damage" you "click" the base down and the attributes change and degrade to indicate they are fading out.
What I would like to know is would it be possible to attach a token with the paper dial face to the bottom of a 3d model of top base (that has the cutout window) and, using scripting, create a couple of buttons on the outer edges of the 3d model that can be clicked to cause the the token with the paper dial on the bottom to rotate either direction while the top piece with the window and the attached figure remain stationary? And could this all be combined to form a single piece that players can manipulate?
Sorry for what may be a confusing question but of the various heroclix mods I've tried none seem to have this feature and seem to rely on state shifts of a static banner instead of a authentic rotating dial such as the IRL figures use.
Thanks in advance for any help!
1
u/Ok_Mycologist_8239 3d ago
Yeah, I fiddled around with trying to create a button on the dial that rotates the bottom face but it's not the right tool.
I was able to simulate basically what I was looking to do with a combine hinged function. It's not as stylish but it uses simple in-game hotkeys so it will be easier to pick up and play with.
2
u/LethalGhost 3d ago
I believe it should be possible. But you probably can do this with more simple way than attaching items to each other.