So this line is giving me a syntax error:
#@character_name = ""
it's not the last line, and what I posted is the full line. I tried to move it to another line, the syntax error followed. :wacko:
What about what you had on previous/following lines?
if @page == nil #and $game_map.events[@id] != Map_Enemy
# Set each instance variable
@tile_id = 0
#@character_name = ""
@character_hue = 0
@move_type = 0
@through = true
@trigger = nil
@list = nil
@interpreter = nil
# End method
return
end
Of course I can just remove the comment, but I wonder why it's happening.
You sure the syntax error is coming from that line?
Are you also sure it is a syntax error and not a NoMethod, NoName, etc. error?
There's something unusual I noticed a few times while working in RMXP's script editor. It would switch a double space in the indentation with an unusual character. Try to remove the indentation of that piece of code completely (select it and press SHIFT+TAB until it's on the left border) and then put the indentation back (select it and press TAB).
That explains it all, Case closed.
Damn, now it's happening again, and what you said isn't working this time. It's happening mostly when I copy a script from somewhere else.