Conditional Branch Scripting

Pyromantic

Veteran
Veteran
Joined
Mar 16, 2016
Messages
35
Reaction score
191
First Language
English
Primarily Uses
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.
 

Sarlecc

Veteran
Veteran
Joined
Sep 16, 2012
Messages
453
Reaction score
211
First Language
English
Primarily Uses
RMMV
Remove the '@' from in front of the 1 so it looks like $game_map.events[1].moving?
 

Pyromantic

Veteran
Veteran
Joined
Mar 16, 2016
Messages
35
Reaction score
191
First Language
English
Primarily Uses
@Sarlecc  That worked, thanks. I knew it was something easy I was missing.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top