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://steamcommunity.com/sharedfiles/filedetails/?id=1180142950
If you name every card in your deck, then you'll be able to identify cards by name and take them that way. The following function will search for a card by name in your deck, then if found move it smoothly to position {29.5, 3, 33}. If the card is not found in the deck, it broadcasts a message to all saying "Card not found." You can set the activation of this function to trigger when a faction card leaves a script area, or whatever other method you want to use.
For more information, hit up #scripting in the official TTS discord.
Some of my confusion was I saw many people who named cards, then put them into a deck, it would erase their names, so I was confused on how that would work.
I will also note the code didnt work at first when I put it in and named the card. Even after naming all cards in the deck it didnt work, I had to remove all cards from the deck, and re-stack it, then it started working. Not sure why. It was pulling random cards until i did that. Weird,
but again, thank you!
I had a code to randomize this deck after the load, but before the cards are drawn. Once i removed this, and have it randomize afterwards, it started to work as normal again.
Any chance you could look at my code and see what might be causing this?
thank you.
^-^''
Did you find the answers you (and I) are looking for?
then
and make getMyPlace function to get position where you want place the card.
even if you found out indexes when finding out cardids, you could shuffle afterwards found out cardids, then you would only know what cards there are but not where.