安装 Steam						
					
				
				
									登录
											 | 
						语言
						
																																															繁體中文(繁体中文)
																													日本語(日语)
																													한국어(韩语)
																													ไทย(泰语)
																													български(保加利亚语)
																													Čeština(捷克语)
																													Dansk(丹麦语)
																													Deutsch(德语)
																													English(英语)
																													Español-España(西班牙语 - 西班牙)
																													Español - Latinoamérica(西班牙语 - 拉丁美洲)
																													Ελληνικά(希腊语)
																													Français(法语)
																													Italiano(意大利语)
																													Bahasa Indonesia(印度尼西亚语)
																													Magyar(匈牙利语)
																													Nederlands(荷兰语)
																													Norsk(挪威语)
																													Polski(波兰语)
																													Português(葡萄牙语 - 葡萄牙)
																													Português-Brasil(葡萄牙语 - 巴西)
																													Română(罗马尼亚语)
																													Русский(俄语)
																													Suomi(芬兰语)
																													Svenska(瑞典语)
																													Türkçe(土耳其语)
																													Tiếng Việt(越南语)
																													Українська(乌克兰语)
																									报告翻译问题
							
						
 
											 
													







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 ^.^
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
can you give me more information on the poisionlocal and position global variables so i can use them to have the sticker spawn relative
here's a script snippet from that - should help!
https://pastebin.com/CDFfTJDc
small quality of life suggestions:
add 'visible=false' to the module properties (since the menu toggle button does not actually do anything)
make position of spawned sticker-puck be relative to the card's position using
positionToLocal() and positionToGlobal()
I think some text somewhere (maybe the label on the sticker-puck?) should hint that the thing needs to be dropped onto a card