Problem with Inventory/Problem with Room Transporting

Started by , Tue 03/02/2004 19:53:02

Previous topic - Next topic

Sir Steven

1)Whenever I get more than 12 items in my inventory at once, the ones after the 12th don't appear. When I open the inventory, there are no arrows to scroll down. I did check the GUI in the editor and the arrows are there, but when I play the game these arrows don't appear. Any help? Thanks.

2) I have this one room that does not transport the character to the correct spot in the room. In the room before, I call an action to bring the player to a new room at specific coordinates. But when it goes to the next room, the player does stay at my desired spot for a split second, but then he moves to another corner. After that he begins a dialog, which I want him to do, but in the right position. This is how the script looks for for the 1st and 2nd room:

1st: NewRoomEx (6, 152, 96)
2nd: RunDialog (5)
    NewRoomEx (8, 176, 70)
I think it may be because of a New Room function I have when the dialog finishes, but I'm not sure. Any suggestions? Thanks.

Darth Mandarb

1) Try out this thread; Custom Inventory GUIs and see if you can find the answer in there.  It helped me out a LOT and that's why I started it!  For just these kinds of questions :)

2) You might want to put a wait command before the last NewRoomEx call.  Something like:

while character[charid].animating != 0 {
wait(1);
}

Not sure if that'll work with dialogs ... but it's what I would try.

Also, if you look up Dialogs in the Help file there's some dialog commands you can use to call a new room rather than the way you've got it now.  That might work better for you.

like:
new-room X - Takes the player to room X, and aborts the conversation. Since this does not allow you to specify co-ordinates, you may need to use some Player Enters Screen logic in the target screen to place the character properly.

Sir Steven

Thanks for the help w/ the rooms, but I'm still having trouble with the inventory. I've tried many things to fix the problem, I've moved the arrows to a different location on the GUI, I've tried different script combinations for the buttons, but no matter what I do the up and down buttons still won't appear.

Ishmael

Have you made any alterations to the show_inventory_window function in the global script? Because if you haven't, most likely the buttons you are looking for are shown UNDER the items field, as to small arrowheads, on the RIGHT side of the other buttons, since it is the build-in Sierra inv...
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.

Sir Steven

Should I edit this script?

if ((button == 4) && (game.top_inv_item < game.num_inv_items - game.num_inv_displayed)) {
     // scroll down
     game.top_inv_item = game.top_inv_item + game.items_per_line;
   }
   if ((button == 5) && (game.top_inv_item > 0)){
     // scroll up
     game.top_inv_item = game.top_inv_item - game.items_per_line;

I've tried altering this script but had no luck. Is there something I should do to this script?

Scorpiorus

QuoteThanks for the help w/ the rooms, but I'm still having trouble with the inventory. I've tried many things to fix the problem, I've moved the arrows to a different location on the GUI, I've tried different script combinations for the buttons, but no matter what I do the up and down buttons still won't appear.
Try changing buttons' images to some other sprites (or just remove images completely by selecting a blue cup (sprite #0) )

Does it help at all?

SMF spam blocked by CleanTalk