Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - ShadeJackrabbit

#121
Oh I get what you mean! It worked! Wait... DARN!! Why is there another error!!!!!! GUIOFF is undefined now. Here's the code:
Code: ags

  if (interface == SET) {     // They clicked a button on the Settings Tab
    if (button == 0)  {  // save game
      GUIOff(SET);
      SaveGameDialog();}
    else if (button == 1) {  // load game
      GUIOff(SET);
      RestoreGameDialog();}
    else if (button == 2)   // restart game
      RestartGame();
    else if (button == 3) {  // quit
      GUIOff(SET);
      QuitGame(1);}
    else if (button == 4) {   // about
      Display("Adventure Game Studio v2 run-time engine[     Copyright (c) 1999-2003 Chris Jones");}
    else if (button == 5) {  // resume
      GUIOff (SET);
      SetCursorMode (MODE_WALK);
      }

Again, I want to make it clear that I am using somebody else's GUI and did not put these commands in myself.
#122
Then "Myinv" is undefined.
#123
But then it says that it is undefined.
#124
It almost does, but it says that a "[" is expected.
#125
Sure:
Code: ags

#sectionstart interface_click  // DO NOT EDIT OR REMOVE THIS LINE
function interface_click(int interface, int button) {
if (interface == COM) {
  if (button==0) Mouse.Mode = eModeWalkto;
  if (button==1) Mouse.Mode = eModeLookat;
  if (button==2) Mouse.Mode = eModeInteract;
  if (button==3) Mouse.Mode = eModePickup;
  if (button==4) Mouse.Mode = eModeTalkto;
  if (button==5) Mouse.Mode = eModeUsermode1;
if (button == 7) {
  gInv.ScrollUp();
}
if (button == 6) {
  gInv.ScrollDown();
}
#126
But now it says that ScrollUp is not a public member of 'GUI'.
#127
Only problem is that ScrollUp is an undefined token.
#128
Different error: (disregard what was previously here)
Code: ags

Error (line 63): 'top_inv_item' is not a public member of 'GameState'

Code: ags

  if ((button == 7) && (game.top_inv_item < game.num_inv_items - game.num_inv_displayed))  {
      game.top_inv_item = game.top_inv_item + game.items_per_line;  }
  if ((button == 6) && (game.top_inv_item > 0))  { 
      game.top_inv_item = game.top_inv_item - game.items_per_line;  }
  }

FIXED
#129
Oh great, another problem:
Code: ags

Error (line 59): Parse error in expr near 'eModeUseinv'

Code: ags

  if (button==2) Mouse.Mode = eModeUseinv);

FIXED
So anybody knows, I am using a GUI which is like the lucasarts one, link to it's topic:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=18974.0
#130
Now I've got a problem with SetCursorMode. Undefined Token AGAIN.
FIXED
#131
That doesn't work. Then it says SaveDialogue is undefined.
#132
You aren't being very helpful. How can I make a game if I can't test it or save it because of an error? Answer that before you make rude (to me at least) remarks.
#133
I didn't. I'm using a RON template that GBC gave a link to. I'm trying to make it run, yet it won't.
#134
Okay, now I got another "Undefined Token" this one's called "save"

Code: ags

    else if (button == 6)    // save game
      Save();

FIXED
I think I should start learning the AGS language. This is getting real annoying.
#135
CJ doesn't let you use AGS on Chrstmas Day. it's part of the program.
#136
I'll try that when It's not christmas day.
#137
This problem IS with the new template.
#138
I don't know what comment out means, but I didn't remove show_inventory_window() function codes from the script.
#139
Oh great, now there's another error:
FIXED
Code: ags

---------------------------
Compile Error
---------------------------
There was an error compiling your script. The problem was:
In: 'Global script'
Error (line 58): Undefined token 'show_inventory_window' 


Here's the general area:
Code: ags

function interface_click(int interface, int button) {
  if (interface == ICONBAR) {
    if (button == 4) {  // show inventory
      show_inventory_window();
    }

Just getting the  game to work seems to be the hard part eh?
#140
No... That doesn't work. I guess I'll contact CJ then.
Wait... who's CJ? Oh, right. Chris Jones.
How do I contact him?
SMF spam blocked by CleanTalk