Scripts not working...
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Freelancer42

I started out with verge yesterday, and I have a problem... It doesn't seem to accept any of my commands. I have a file (outside.vc) that looks like this:
currentPlayer=EntitySpawn(6, 12, 'darin.chr');
SetPlayer(currentPlayer);


When I run verge it says: 'outside.vc(2): Expecting a function declaration - do you have a missing brace? (currentPlayer)'

The same thing happens when I try to make a while loop ('...function declaration (while)...').

When I write 'int' before currentPlayer=... it says that global declaration isn't allowed in VC maps...

What's wrong?

Posted on 2004-11-13 13:37:43

gannon

You need to put that into a function for that code the starting script would be best.
ie.

StartMap(){
currentPlayer=EntitySpawn(6, 12, 'darin.chr');
SetPlayer(currentPlayer);
}

and have StartMap as your starting script in maped 3 for the outside map

Posted on 2004-11-13 15:27:09 (last edited on 2004-11-13 15:27:56)

Freelancer42

Oh, now I get it. It's working now. Thanks mate!

Posted on 2004-11-13 16:37:51


Displaying 1-3 of 3 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.