???
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!!!!!!!!!!!!!!!
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. :)
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.
i want to have a close up of it.
but anything i try it will only work in one room.
What should i do!!!??
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.
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!!!!
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.
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 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
There's a global variable to check what was the last room the player was in before entering the current one... just cant remeber...
character[BLAH].prevroom