lucasarts gui why doesn't the...

Started by manny.p, Fri 16/05/2003 17:48:49

Previous topic - Next topic

manny.p

You get a default lucasarts gui in the ags directory. Now everything works but why doesn't the "walk to" lable change? I just want to know if you can make it cahage, and how? Is there anyway you can make the lable like the lucasart style game.

           thnx manny.p

Scummbuddy

are you sure you copied all the correct global scripts to the right places?
- 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

manny.p

i got the default one out of the ags drectory, i'm still a begginer, but am willing to learn how to write script if i can correct this, please help  ???

Scummbuddy

You are going to have to post your global script, cause Im pretty sure you missed cut/copy/move of a certain part of your script.
- 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

wOoDz

#4
i couldn't get it to work either, until i read this, but sorted it now..
in AGS editor click on edit global script
so far down the code list you will see..
/*
*/
 
with a load of code between

copy the code from there, the first 2 lines and scroll up to game_start
paste in between the {}
it should look like this:


function game_start() {
 // called when the game starts, before the first room is loaded
 game.items_per_line=4;
 game.num_inv_displayed=8;
}

then do the same with the next lump of code:

function repeatedly_execute() {
 // put anything you want to happen every game cycle here
 string buffer;
 string madetext;
 int cur_mode;
 // Initialize the status line to display the score
 StrCopy (madetext, "");
 // Now, add text depending on the mode
 cur_mode = GetCursorMode();
 if (cur_mode == MODE_WALK)
   StrCat(madetext,"Walk to ");
 else if (cur_mode == MODE_LOOK)
   StrCat (madetext,"Look at ");
 else if (cur_mode == MODE_USE)
   StrCat(madetext,"Interact with ");
 else if (cur_mode == MODE_TALK)
   StrCat(madetext,"Talk to ");
 else if (cur_mode == 5)
   StrCat(madetext,"Pick up ");
 else if (cur_mode == 4) {
   StrCat(madetext,"Use ");
   GetInvName (player.activeinv, buffer);
   StrCat(madetext,buffer);
   StrCat(madetext," with ");
   }
 else if (cur_mode == 8) {
   if (GetGlobalInt(80) == 1) StrCat(madetext,"Close ");
   if (GetGlobalInt(80) == 2) StrCat(madetext,"Give ");
   if (GetGlobalInt(80) == 3) StrCat(madetext,"Open ");
   if (GetGlobalInt(80) == 4) StrCat(madetext,"Push ");
   if (GetGlobalInt(80) == 5) StrCat(madetext,"Pull ");
   }
hope you understand that i'm c**p at explaining stuff, :-\ but the script is already in the global sccript just needs copy and pasting

manny.p

thnx i'll try it out, now there is one more problem, how do you import objects with transparency off, may sound stupid, but i need it off, and my res is 640-480

manny.p

oh yeah, i know i'm a newbie and not to judge, but when it changes, and put it over something example "pickup", then you put it over a "banana", will it say "pickup banana", in the lable or not?

wOoDz

#7
noone will judge you, they are here to help ;D i'm fairly new at this to, plus you Q's  are sensible and relevant, the only time ppl judge here is if you ask "how can i get 20 people to do my game!" or "where can i steal everyones graphics"
i'm not sure about the "objects with transparency off"
it should say "pickup banana" at the top of the GUI, i can't remember if it did before i altered the script, the blue the text is in is very dark so i could of missed it. ive put a "quit" GUI in mine otherwise i would of pasted the full script for you

good luck with the game
woodz

Scummbuddy

If you want transparency off, set transparent color to pallete index 0.  Then just dont have that color in your picture you are importing.
- 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

manny.p

when i set it to pallete 0, it still makes it transparent, and i want that colour in the pic. also which is the best script guide for begginers, and thnx for all the help so far, once i'm more experienced, i'll help people with their problems ;)

Scummbuddy

Then add one more line of pixels to (say) the left side of the picture using some color you dont use, and then use transparency set to upper left most pixel.
- 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

manny.p

thnx scummy i'll try it, this is starting to turn out to be a good post for some of the baffling questions, also, which fan game made, has the best lucas arts feel to it, except night of the hermit

Scummbuddy

ask that in the ags talk and chit chat forum.
- 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

manny.p

ok I'll get back onto the subject, anyway how do you make a new room without restarting the program? because there is only open, and save not new file, and if you just import a new background, then you'll have to change all the hotspots, walkable area and such, so how do you?

wOoDz

at the top of the editor screen, click on "file" then "new room" if prompted save the room you have done (assuming thats the first room) as "room1" then when you've done the new one save it as room2
if you look at  room editor it lists the rooms created :D

woodz

SMF spam blocked by CleanTalk