Method returning error message

chungsie

Veteran
Veteran
Joined
Sep 9, 2015
Messages
656
Reaction score
857
First Language
English
Primarily Uses
N/A
So I'm using VX ACE, and I am working with a tutorial on youtube for method arguments. I did exactly as it said, and I am getting an error.





so for the method, I used:

def Rome_Diplomacy (status, taxes, enemy)    msgbox_p(status)

    msgbox_p(taxes)

    msgbox_p(enemy)

end

then I did a method call

Rome_Diplomacy (false, 30, "none")

when I execute the script it says unexpected ',' expecting a ')' for the call of method.

I did what the tutorial said to do, and its giving me this error for some reason.
 
Last edited by a moderator:

cremnophobia

Veteran
Veteran
Joined
Dec 10, 2013
Messages
216
Reaction score
97
Primarily Uses
You need to remove the space between Rome_Diplomacy and (.
 

chungsie

Veteran
Veteran
Joined
Sep 9, 2015
Messages
656
Reaction score
857
First Language
English
Primarily Uses
N/A
thank you so much.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
Next time can you tell us where in the video the problem is? Watching a 5-6 minute video just to find an error (that you could have shown more easily in a screenshot of your script window) takes too much time, when you don't know if it's going to be in the first 30 seconds or the last.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top