Sorry, we don't support your browser.  Install a modern browser

function onObjectSearchEnd, object.shuffle() does not work for all players#1838

The code:

function onObjectSearchEnd(object, color)
object.shuffle()
end

Does not work for any players EXCEPT for the host. The script will work if the host searches something and will shuffle afterward, but if any othe player does a search it will just do the animation, and sound, but the cards will stay in the exact same order.

2 years ago

Try this:

function onObjectSearchEnd(object, color)
Wait.frames(function() object.shuffle() end, 1)
end

Increase the 1 if you need to.

2 years ago
Changed the status to
Research
a year ago