wait, isn't this a built-in function of rmxp? I'm pretty sure... lemme check...
EDIT: Yes, ok, I think I found it. Setting a character's step_anime property to true should give it idle animation. Hence, you code would look something like:
@character_name.step_anime = true
Yes, that should be it...