Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://api.tabletopsimulator.com/
drawClicked and the others are in Global not in Scripts so you have to call them but there you will have a problem because in a call you can only give a table as a parameter not 3 variables what drawClicked need.
so you have to put the function onScriptingButtonDown in Global.
this should not be a problem if you create in Global the same function with only the keys you use in Global.
you have to use the function like this:
If anyone sees this and is interested I basically mapped all the buttons from the battle interface to the numpad as well as the "Scenario won" button. I kept 1-3 but deleted the mappings for 7-9. (7-9 are present under Scripts under the function onScriptingButtonDown, the section starts with a line that says something like if index > 6 and <10) I input the following script near the end of Global.
The keys are mapped as follows
4 = draw attack modifier drawClicked(player, nil, color)
5 = start round reveal()
6 = end round endRound()
7 = sort hand sortHand(player, value, id)
8 = long rest longRest(player, value, id)
9 = Scenario Won spawnerClicked(player, value, id) id is for button so pass "win"
0 = game setup spawnerClicked(player, value, "showSpawner")
Some of these won't work as the black player for obvious reason.