Forum Discussion
Dealing with large number of triggers/varriables and states - Using Cards
The biggest problem is keeping track of which cards have been used, unless you want to always follow the same order. If you want to use a random order, without repeating any cards until they have all been used, there is no way SL can do that. So you need to use JS. I would create an array and sort all the cards into it randomly. You would need either to delete each card from the array as it is chosen, or use a variable in SL to keep track of where you are in the array. I would execute the JS every time I wanted a new card and have it change a variable in SL to match the chosen card ( 1-52). The card pile would have 52 states, and every time the variable changed, a series of triggers would change the state of the pile to match the variable number.
Related Content
- 10 months ago
- 3 months ago
- 6 months ago