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
One could put an update that constantly checks if the die is resting and then, if it goes from not resting to resting, do the color detection. This would cover all instances of bumping and such.
Thanks for this scripting, it's going to be helpful for me.
I did notice one small issue. This appears to only work if you pickup the die and toss it. It doesn't work if you use the "R" key to roll or use the right-click menu to roll. Is it possible to get this to work from the other methods of rolling?
Thanks again. I'm studying all your projects as I learn how to code in TTS.
-David
Once it IS resting, you can get value off a die using getValue() (the same number that pops up in a tooltop when you mouse over a rolled die). Then you set the die's color tint depending on what face it is. Finally, you yield 1 on the couroutine, signaling that it is now finished.