Jump to content
IMUNME

Simple Script Call Syntax Error

Recommended Posts

Hello guys,

 

I get a syntax error with that very simple script call:

 

if $game_variables[188] == $game_variables[152]
else
$game_map.events[This Event].set_graphic("$fIRE", 1)
end

 

The graphic file name is $fIRE.png.

 

As usual it must be something silly but I can't figure it out.

 

Help.....

 

Thanks in advance guys!

 

FM

Share this post


Link to post
Share on other sites

Because I don't want anything to happen under that condition and the graphic switch otherwise.

Share this post


Link to post
Share on other sites

Did you actually type out This Event for the array?

If yes, this works properly:

if $game_variables[188] != $game_variables[152]
$game_map.events[event_id].set_graphic("$fIRE", 1)
end
Edited by Glasses
  • Like 1

Share this post


Link to post
Share on other sites

I did! Not that good at scripting! hehe

 

Working now!

 

Thanks :) :)

Share this post


Link to post
Share on other sites

You can also use "unless". It's the exact opposite of if.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted