Please update to the latest build 1182.
I wrote this ages ago. You should only need a single script. Please try editing the startAnimation lines like so...
startAnimation( game.CurrentCharacter.CurrentOutfit.CharacterAnimations["useinv_n"] )
-- shorthand code works best in the latest build.
or you can use longhand code in the build you are using...
startAnimation("Game.GameCurrentCharacter.CharacterCurrentOutfit.OutfitCharacterAnimations[useinv_n]")
... either of those should work for returning the animation of the current outfit.
P.S: you could actually make this script more global by turning it into a function which you could input the animation you want to start. As long as the prefix on the end of the animation names were always the same, i.e: use
_n, use
_nw, take
_n, take
_nw, etc, then it would be a much better option than writing a script for each interaction.