Common Run Time Error... or is it?

Started by rtf, Mon 09/02/2004 04:59:01

Previous topic - Next topic

rtf

"There was an error compiling your script.  The problem was in 'main script'.
Runtime error, function still open, missing }

I know what it's trying to tell me, but I dont know what i'm supposed to do or where I'm supposed to put it.
I fail at art.

strazer

Well, put it where it's missing! :P

Seriously, just post the script code here, we'll have a look.  :)

rtf

#2
OK, but its long.  hope nothing slows down on the forums

Quote
// room script file


int charsaid;
int wall;



function room_b() {
 // script for room: First time player enters screen
Display("Ok, folks, here's the story so far:");
Display("Gary the Garabaldi, a stubborn fish from far away, goes out on a morning stroll in order to maintain his health before his fin surgery.");
Display("Unbeknownst to Gary, he will be swept up in a day of magical adventure and occurences.");
Wait (30);
Display("The scared fish gets caught up in a strong current while swiming, and gets thrown horribly off course.");
Display( "Little known to Gary, he is now swept up an a folklorian place.");
Display( "A place where he feels scared.");
Display( "Feeling scared, Gary runs to find a hiding place for him to stay.");
DisplaySpeech(1, "Oh, no, where am I?");
 DisplaySpeech(1, "I was just out on a morning swim, and I get picked up by a gust of current!");
DisplaySpeech(1, "Now, I am suddenly in this folklorian place where I feel scared.");
DisplaySpeech (1, "And Gary the Garabaldi NEVER gets scared.");
DisplaySpeech (1, "I've got to find a way out of this place before someone kills me.");
Display("Good Luck, young one.");
DisplaySpeech (1, " WHO SAID THAT??");
Wait (50);
DisplaySpeech (1, "Whatever.");
}

function hotspot1_a() {
 // script for hotspot1: Talk to hotspot
 
}

function hotspot1_b() {
 // script for hotspot1: Talk to hotspot
 
}

function hotspot1_c() {
 // script for hotspot1: Look at hotspot
}
 

function hotspot1_d() {
 // script for hotspot1: Look at hotspot
}
function hotspot4_a() {
 // script for hotspot4: Look at hotspot

 if (wall == 0) {
   DisplaySpeech (1, "A wall covers the cave.");
   }
 if (wall == 1) {
   DisplaySpeech (1, "THERE IS NOTHING SPECIAL ABOUT WALLS!!!");
   }
 if (wall < 1) {
   wall += 1;
   }
}

function hotspot3_a() {
 // script for hotspot3: Interact hotspot
DisplaySpeech(1, "OK, I'll look in here.");
AddInventory (3);
DisplaySpeech (1, "It's a fishtol!");
}


function room_c() {
// script for room: Walk off left screen edge
while ((player.inv[3] != 1)&&(charsaid==0)){
DisplaySpeech (1, "I can't go out there without protection.");
charsaid=1;
}

if (player.inv[3] == 1){
 DisplaySpeech (1, "Got my fishtol loaded and i'm ready to face the dangers of the unknown!");
NewRoom(3);
}

I fail at art.

Gilbert

It's long, I hadn't read all of it yet, but at least there is one missing at the end of it:

// room script file


int charsaid;
int wall;



function room_b() {
 // script for room: First time player enters screen
Display("Ok, folks, here's the story so far:");
Display("Gary the Garabaldi, a stubborn fish from far away, goes out on a morning stroll in order to maintain his health before his fin surgery.");
Display("Unbeknownst to Gary, he will be swept up in a day of magical adventure and occurences.");
Wait (30);
Display("The scared fish gets caught up in a strong current while swiming, and gets thrown horribly off course.");
Display( "Little known to Gary, he is now swept up an a folklorian place.");
Display( "A place where he feels scared.");
Display( "Feeling scared, Gary runs to find a hiding place for him to stay.");
DisplaySpeech(1, "Oh, no, where am I?");
 DisplaySpeech(1, "I was just out on a morning swim, and I get picked up by a gust of current!");
DisplaySpeech(1, "Now, I am suddenly in this folklorian place where I feel scared.");
DisplaySpeech (1, "And Gary the Garabaldi NEVER gets scared.");
DisplaySpeech (1, "I've got to find a way out of this place before someone kills me.");
Display("Good Luck, young one.");
DisplaySpeech (1, " WHO SAID THAT??");
Wait (50);
DisplaySpeech (1, "Whatever.");
}

function hotspot1_a() {
 // script for hotspot1: Talk to hotspot
 
}

function hotspot1_b() {
 // script for hotspot1: Talk to hotspot
 
}

function hotspot1_c() {
 // script for hotspot1: Look at hotspot
}
 

function hotspot1_d() {
 // script for hotspot1: Look at hotspot
}
function hotspot4_a() {
 // script for hotspot4: Look at hotspot

 if (wall == 0) {
   DisplaySpeech (1, "A wall covers the cave.");
   }
 if (wall == 1) {
   DisplaySpeech (1, "THERE IS NOTHING SPECIAL ABOUT WALLS!!!");
   }
 if (wall < 1) {
   wall += 1;
   }
}

function hotspot3_a() {
 // script for hotspot3: Interact hotspot
DisplaySpeech(1, "OK, I'll look in here.");
AddInventory (3);
DisplaySpeech (1, "It's a fishtol!");
}


function room_c() {
// script for room: Walk off left screen edge
while ((player.inv[3] != 1)&&(charsaid==0)){
DisplaySpeech (1, "I can't go out there without protection.");
charsaid=1;
}

if (player.inv[3] == 1){
 DisplaySpeech (1, "Got my fishtol loaded and i'm ready to face the dangers of the unknown!");
NewRoom(3);
}
}


rtf

Cant thank you enough Gilbot.

I had to leave my computer on all night because I wanted to keep my changes.

well, time for school.  ta ta!   :P
I fail at art.

SMF spam blocked by CleanTalk