Tabletop Simulator

Tabletop Simulator

评价数不足
Mtg sticker module
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
69.674 KB
2023 年 3 月 13 日 下午 8:23
2023 年 3 月 17 日 上午 11:18
4 项改动说明 ( 查看 )

订阅以下载
Mtg sticker module

描述
this sticker module adds some new functionality to sticker mtg cards when used in junction with tipsy hobbit's encoder
12 条留言
SleazyG 1 月 2 日 下午 2:15 
the "Stickers" spawned with this are just wooden things with the description of the sticker on them. also does not support name/art stickers
Darling Valk 2024 年 4 月 11 日 上午 1:03 
I just wanted to play my glorpgoop deck but I don't understand how to work this.
zachstover  [作者] 2024 年 3 月 4 日 下午 4:47 
It is designed to work with the oops I called a pie module loader
zachstover  [作者] 2024 年 3 月 4 日 下午 4:46 
I haven't seen any reason that it would have broken
Caine 2024 年 3 月 2 日 上午 8:55 
Does this work in modern times?
zachstover  [作者] 2023 年 3 月 17 日 上午 11:19 
fixed the pow/toughmess bug for the base power
Oops I Baked a Pie 2023 年 3 月 17 日 上午 7:03 
Note that you need to correct for the base power and base toughness of a card.
Currently: if you apply a 3/3 sticker to a 1/2 creature, you'll get a 4/5 creature
The pastebin script takes care of that tho ^.^
Oops I Baked a Pie 2023 年 3 月 16 日 下午 8:35 
positionToWorld is the right command, not "global"

the api doesn't do much to explain it too well but it's something:
https://api.tabletopsimulator.com/object/#positiontoworld

quick example that should explain how they work better:

worldPos = cardObj.getPosition()
locPos = cardObj.positionToLocal(worldPos) -- should be [0,0,0]
locPos.z = locPos.z + 2 -- should be [0,0,2]
newWorldPos = cardObj.positionToWorld(locPos)

here, you should be able to just do something fast like:

newWorldPos = cardObj.positionToWorld(vector(0,0,2))

oooh, also get the rotation to match up as well if that isn't already the case
zachstover  [作者] 2023 年 3 月 16 日 下午 4:27 
toggled visibility, and added the power and toughness setting.

can you give me more information on the poisionlocal and position global variables so i can use them to have the sticker spawn relative
Oops I Baked a Pie 2023 年 3 月 15 日 下午 6:50 
oooh, setting pow/tou buttons by dropping an object onto a card is something I've had to to before
here's a script snippet from that - should help!
https://pastebin.com/CDFfTJDc