ID:264071
 
Code:
if("Dialga")
icon = 'Dialga.dmi'
icon_state = "ul"
proc
move_AddFOBJ(icon('Dialga.dmi',,icon_state="ur"),"ur",1,0)
move_AddFOBJ(icon('Dialga.dmi',,icon_state="bl"),"bl",0,-1)
move_AddFOBJ(icon('Dialga.dmi',,icon_state="br"),"br",1,-1)

Error:
loading Pokemon Rise of Darkness.dme
GM.dm:108:error::invalid expression

Pokemon Rise of Darkness.dmb - 1 error, 0 warnings (double-click on an error to jump to it)

Problem description:That's what happens when i compile it, BTW, when i run the game, the icon is alright, it moves, no problems, it's just i want to get rid of that STUPID error...

Take the "proc" out. You don't declare procs in the middle of one.
Mr.pentium wrote:
BTW, when i run the game, the icon is alright, it moves, no problems, it's just i want to get rid of that STUPID error...

You cant possibly be running it if theres a compile error, its not up to date files being ran
In response to Falacy
No, before i added that, it didn't do the thing i wanted it to do, BTW, if i remove proc it gives me more errors and it doesn't do the function i want.
In response to Mr.pentium
Did you delete an indent on the lines previously put "in the proc"?
In response to Kaiochao
Yes, but that just gives me an unwanted in-game result.(The FOBJ's don't move.) BTW: I fixed it by adding a proc that runs these procs XD.