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 - Lior

#1
Hi,
I want a specific inventory item will work like this:

if some global variable i've defined is true:
inventory item works as usual, means when i press on it on inventory window, the curser will just become the inventory image

else if the global variable i've defined is false:
the character says something, and then the curser become the inventory image

when i just tried to use the inventory event "interact inventory item", nothing happens.

I've found in the forum this code, i've put it in GlobalScript under on_mouse_click function:
Code: ags
else if (button == eMouseLeftInv) {
    if (player.ActiveInventory != null) player.ActiveInventory = null; // active item? drop it
    else inventory[game.inv_activated].RunInteraction(mouse.Mode); // interact with item
  }
and set "Override built-in inventory window click handling" to TRUE.
Now the character talks, but the cursor's image doesn't change.

How do i also make the cursor to change to inventory item image ?
#2
Hi Khris,
Right click to deselect an item sounds like a good idea, but i'm using SIERRA not BASS.
Can i do something like that in SIERRA?
#3
Hi,
I've set my invetory to always show on screen.
In my defalut inventory, i see that i can click on inventory item, lets say a key, the cursor will become the key picture and i can use the key.
If i want to change the cursor back to interact mode, i have a botton for that in gInventory GUI.

Is there an option, that if i'm using the inventory item on anything else than what i wanted it to do, the cursor will be back to interact mode?

i.e. if i use the key on the door, the door opens, and i can code the cursor back to interact mode.
I want that if i use the key on anything else like: other object/charcter/hotspot/background, the cursor will be back to interact mode automaticaly.
#4
I've changed PopupStyle to Normal, and code gInventory.Visible = true.
It seems to work.
Thanks!  :smiley:
#5
Hi,
I want to always see my inventory GUI during the game.
meaning, in each room the characther goes, i can always see the inventory items in the room itself without needing to open the inventory GUI.

There are games with the same concept, the invetory items at the bottom of the screen, like in:
"Putt-Putt Joins The Parade", and "Fatty Bear's Birthday Surprise".

Can it be done in AGS?
SMF spam blocked by CleanTalk