Scripting error help!

Started by 4ce1, Thu 11/11/2004 21:09:45

Previous topic - Next topic

4ce1

I am doing the tutorial and i do the item part and then i do what it says and a test it.
i try to pick up the key(item) and it says GLOBAL SCRIPTING ERROR LINE 60. PLEASE SOME1 HELP! ???

Ishmael

Do read the rules ok? :)

We can solve your problem (hopefully) very quickly if you post the stuff around your global script line 60. Post the function the line is part of, for starts, so we can see what's wrong.

Welcome to the forums
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

4ce1

this is what it says
" else if (button==LEFT) {
    ProcessClick(mouse.x, mouse.y, GetCursorMode() ); "
please reply soon!

Ishmael

There seems to be nothing wrong with it... could you write the error message it gave you (Something like "Expected: ;"), and maybe post lines 55 - 65 of the global script, the problem may well be on some line close to line 60, but not on it.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

4ce1

ok here are lines 55-65
// called when a mouse button is clicked. button is either LEFT or RIGHT
  if (IsGamePaused() == 1) {
    // Game is paused, so do nothing (ie. don't allow mouse click)
  }
  else if (button==LEFT) {
    ProcessClick(mouse.x, mouse.y, GetCursorMode() );
  }
  else {   // right-click, so cycle cursor
    SetNextCursorMode();
  }
}

Goot

There's nothing wrong with that. It's probably got something to do with the process click not being able to be run properly.
All other interactions work, right? Such as looking or talking to the key. If you haven't made those interactions yet, just have it display a message for look and talk to the key. That way you can see if it's a problem with the object or with whatever it's supposed to do when you try to pick up the key.

The problem is probably with the key ineraction events. Since you're not using scripting, the process click is the only place in the script where the error can be shown to occur. Make sure your key interaction events are exactly as they are in the tutorial. And that you did each one in the right way, such as choosing "wait for move to finish" in character-move character, or whatever it is.

4ce1

#6
YESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYESYES i jsut got it thank you guys so much!

Scummbuddy

#7
A) your signature needs to change. this is an adult forum. I believe we ask for 16 and above, but we do make exceptions to those who can act like an adult.

B) writing "YES" contiuously is not acceptable either.

please reconsider these kind of things the next time you post, but do stick around if you can follow these simple rules. we understand that your happy with your game, and we're happy to help, but keep the celebrating to a minimum.  ;)
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Ishmael

I find that signature kinda... wild... but yeah, what scumm said, and what I said in my first post.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Edwin Xie

Moving at superhigh speed getting to the planet called Earth. But it is boxed in white......thing.....

SMF spam blocked by CleanTalk