People may understand it, but the word sounds regional and antique to me.
I always find "trick" hard to be translated into Chinese, since we have different concepts on different "tricks". Few definitions from dictionaries are colloquial.
To stay safe and easy, avoid the word. Just ask: 你的狗会什么？会打滚/握手/转圈吗？