IMUNME 3 Posted October 9, 2015 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
+ Glasses 606 Posted October 9, 2015 Why is there an else? Share this post Link to post Share on other sites
IMUNME 3 Posted October 9, 2015 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
+ Glasses 606 Posted October 10, 2015 (edited) 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 October 10, 2015 by Glasses 1 Share this post Link to post Share on other sites
IMUNME 3 Posted October 10, 2015 I did! Not that good at scripting! hehe Working now! Thanks :) Share this post Link to post Share on other sites
Kayzee 4,032 Posted October 11, 2015 You can also use "unless". It's the exact opposite of if. Share this post Link to post Share on other sites