Ah.. there is more to the question..
It might have been easier to know that before..
Where are the buttons?
In a menu or in the same layout as the ragdoll?
I assume the name of the equipped animations should be stored in an instance variable on the right ragdoll part?
Would using an array work?
By the way..
"what do u mean by (button boolean is Bought)??"
create a new event
choose the button
choose "is boolean variable set"