Need help with iventory items; read messege to get in full l

Started by gogeta2000, Thu 14/08/2003 01:45:24

Previous topic - Next topic

gogeta2000

 ???

i tried looking for this and couldn't find it.

i have a note in my game that i want to look at in my iventory but i dont know how

PLEASE HELP!!!!!!!!!!!!!!!

TerranRich

Okay, first of all, your topic title is way too wacky. I'm going to edit it and tone it down a bit.

Secondly, what do you want exactly? From what I can understand, you have an inventory item that is a piece of paper with writing on it. When you look at it,  do you want to show a close-up? A description? What?

Please be more specific. Thank you. :)
Status: Trying to come up with some ideas...

Ginny

If you're using the normal inventory, which I'm guessing you are, then just create an action for the 'look at' inventory item interaction. If you want a message or speech displayed, use the Game- Display Message action.

This is one of the most basic things and they're all described in this tutorial:
http://www.agsforums.com/acintro.htm
Read and follow this tutorial and after that also the scripting tutorial here:
http://www.agsforums.com/acres.shtml (Scripting in AGS)
This will get you started with basic scripting and such. :)

If you want a close-up, you need to create a new room with the close up as the background, and move the character to this room when he looks at the note in his inventory. There are a few more things to do also polish this out, but I think you meant that you wanted to display a description of the item.
Try Not to Breathe - coming sooner or later!

We may have years, we may have hours, but sooner or later, we push up flowers. - Membrillo, Grim Fandango coroner

tigers

 i want to have a close up of it.
but anything i try it will only  work in one room.

What should i do!!!??

TerranRich

Dude, we already gave you suggestions. Choose one of the following:

(1) Create a new room that consists of a close-up image of the object.

(2) Create a GUI that consists of a close-up image of the object.

It's as simple as that. Read the manual if you're confused as to how to script it. It's all about interactions and the correct placement of commands.
Status: Trying to come up with some ideas...

gogeta2000

LOOK I TRIED BUT IT DIDNT WORK, I LOOKED IN THE MANUAL AND IT DIDNT WORK.


THE ONLY PROBLEM I HAVE IS WITH THE ITEM



WELL THANKS ANYWAYS

I WILL JUST SKIP IT TILL I CAN FIND OUT HOW TO FIX IT

___________________________________________________________


I STILL WOULD APPRECIATE ANY INFO YOU CAN GIVE ME ON THIS THOUGH

!!!!peace!!!!

Scummbuddy

First of all NO CAPS... I almost didn't want to reply to this.

-----------------
Are you talking about like looking at like a map or a note that is in your inventory, like if you have played Monkey Island, at least, you can do that in that game.  In that case, run an inventory action so that if user interacts with inventory object, plus an if statement to check if the paticular inventory item was used, and then you can go to new room, hide main character, turn off and hide guis, and show the note.  You'll have to draw it as a large background, and there the player can read the note, and perhaps make an 'any click' will bring you back to previousroom.
- 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 made the close-up thing with the text window GUI... Just se the bg to the close-up of the object, then display lots of empty space... :D

SetTextWindowBackground(94); // If the syntax is right... don't have manual here... but anyway, the 94 is the sprite number of the close-up pic
Display("#########(((((((("); // This will display an empty text window. The format is: you put a space in place of a #, and a [ in place of (. Needed to put it like that so it looked right... sorry.... Just se the number of space's and ['s to match the size of the close-up
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.

Babar

I had wanted to do the samething with a newspaper which I picked up. I created a new room for it that came up everytime the player looked at it. The problem I had was that after looking at it and clicking (to return back to the original room) I didn't know how to do it so that it goes back to the proper room the player was in, no matter what room you look at it from
The ultimate Professional Amateur

Now, with his very own game: Alien Time Zone

Ishmael

There's a global variable to check what was the last room the player was in before entering the current one... just cant remeber...
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.

Gilbert


SMF spam blocked by CleanTalk