You're missing a name for two functions. You *cannot* just have:
{
SetAppName('My First Verge Game!');
Map('tutorial.map');
}
The function *must* have a name *before* the opening brace.
For example:
void autoexec() //<--This is what you're missing
{
SetAppName('My First Verge Game!');
Map('tutorial.map');
}
Notice how I added
void autoexec() ? You NEED that, as that it is the function's name. If the function has no name, then the compiler will spit that error at you.
Look at the other functions/scripts you've created from the tutorial such as
void TestZone() and
void TalkToCrystal()
There you are telling the compiler to create new scripts
TestZone and
TalkToCrystal.
The difference between a function and a script is that a script is used *inside* a map's .vc file, where as a function is created inside a system .vc file (such as system.vc). If you create a *function* you can call it anywhere you'd like. A script can only be called within a map's.vc file. However, if you give it no name you cannot call it at all since you have nothing to call.
For example:
Look at void TalkToCrystal()
Now in the tutorial, in order for our entity to call that script when activated, we had to supply the
name (TalkToCrystal), in it's onActivate property. This would be the same if we wanted to call it anywhere else, we'd have to supply the name. Without a name, it's useless, so the compiler won't even compile it, since it knows that.
I *highly* recommend you take some time and read over zip's introduction to programming in V3:
http://www.verge-rpg.com/docs/view.php?libid=255
My tutorial isn't meant to teach the fundamentals of programming, but rather, just how to do general stuff with V3. So totally check out zip's awesome tutorial as that seems to be what you're having the most trouble understanding. :) Good luck!