The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: magic2345 on January 13, 2007, 06:37:38 AM

Title: Syntax problem
Post by: magic2345 on January 13, 2007, 06:37:38 AM
How come in one event I always get a syntax error.
The code is:


<>Script : $game_system.add_shortcut('\c1', '\nm[Arshes]\face
:        :[Arshes]\fl\')
:        :$game_system.add_shortcut('\c2', '\nm[Basil]\face
:        :[Basil]\fr')
:        :$game_system.add_shortcut('\c3', '\nm[]\face[]')
<>Flash Screen: (0,0,0,255), @30
<>Move event: Player
            :<>Graphic: '189-Down01'. 0. 2, 0
<>Wait: 20 Frames
<>Message: \ignr\c0
:        :WOOAH!
<>Move Event: Player
:           : <>Phasing Mode On
:           : <>Jump: +5, +2
:           : <>Wait: 30 Frames
:           : <>Graphic: '001-Fighter01'. 0. 2, 0
<>Wait: 20 Frames
<>Move Event: [EV002]
:           : <>Move left
:           : <>Move left
:           : <>Move left
:           : <>Move left
:           : <>Move left
:           : <>Move left
:           : <>Move left
:           : <>Face Left
:           : <>Wait: 1 Frame
<>Message: Arshes! Kamu nggak apa-apa kan?
<>Message: \c1Aduh...Sakit...Tapi nggak apa-apa
<>Message: \c3\nm[Bu Resa]Bener nggak apa-apa, ya udah
<>Move Event: [EV002]
:           : <>Move Right
:           : <>Move Right
:           : <>Move Right
:           : <>Move Right
:           : <>Move Right
:           : <>Move Right
:           : <>Move Right
:           : <>Move Right
<>Local Switch: A = ON
<>


I set the trigger to be "Auto Start"
Graphic None
MOvement Pattern: None
SPeed: Slow
Frequency: Slow

Is anything wrong with the event?
Oh, and I'm using Universal Message System (UMS)

Note: The messages are in another language.
Title: Re: Syntax problem
Post by: Arrow on January 13, 2007, 06:39:34 AM
Which line is it at? What does the error message say exactly?
Title: Re: Syntax problem
Post by: magic2345 on January 13, 2007, 07:13:32 AM
The message says = ?????????? SyntaxError ???????????

ANd about the line....what do you mean? If its about the script, then its in the Game_Temp, on the third line. Then one that says

#--------------------------------------------------------------------------------------

edit: Funny thing...When I erase the event, it goes normally...weird... ???
Title: Re: Syntax problem
Post by: Synthesize on January 13, 2007, 05:50:18 PM
Are you using an Advanced Message System? Is there a particular place the event errors or does it just not start?
Title: Re: Syntax problem
Post by: Falcon on January 13, 2007, 05:56:10 PM
<>Message: \c1Aduh...Sakit...Tapi nggak apa-apa
Try putting a space between \ci and the rest
Title: Re: Syntax problem
Post by: magic2345 on January 13, 2007, 11:43:45 PM
I'm using UMS (Universal Message System). When I teleported to an inside of this home, it plays the BGM, show the map but then came a message saying "syntax error"

Oh, and putting a space doesn't help...Sorry, even erasing the event doesn't help...maybe I should make the map again? The map is inside a house...

The problem is either in the event...or the map....
Title: Re: Syntax problem
Post by: Blizzard on January 14, 2007, 02:06:46 PM
Post the script you are using, that might help.
Title: Re: Syntax problem
Post by: magic2345 on January 19, 2007, 06:53:06 AM
Never mind...The problem is in the event before I teleported.