Conditional Branch Scripting

Hello forums. So I have a bit of an issue - I want to set an idle animation for a character, and I can't get the scripting for it to work. I can't use Galv's idle animation plugin, because my walk cycle animation is seven frames long. So I've been trying to get it to work with a conditional branch in the event (Checking to see if the event's moving) but it keeps throwing errors at me, so I figured I'd just ask the forums and see what they have to say.


The script call I'm trying to use is game_map.events[event].moving? Here's a screenshot of the event text  Untitled.png


(I just realized that the screenshot cuts it off but the event ID is 001.)


And the error I'm getting is this: Untitled2.png


I realize the solution to this is probably stupidly obvious, but this is my first time messing with scripting and i just can't seem to figure it out.Thanks in advance for any replies.
Remove the '@' from in front of the 1 so it looks like $game_map.events[1].moving?
@Sarlecc  That worked, thanks. I knew it was something easy I was missing.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-scripting.59874/