Active inv picture on GUI bar

Started by Radiant, Mon 15/03/2004 14:01:23

Previous topic - Next topic

Radiant

Hi there,

I'm using a Sierra-type GUI. When EGO picks up an item, I have the cursormode automatically set to 'using an inv item', and the cursor image changed from the black-and-white bag icon to the sprite used for said item. This part works.
However, in the GUI icon bar, I have this box with an @INV tag (or however it's spelled) that shows the active inventory item. How do I change this? So far it only displays the item correctly if I pop up my inventory window and select the item again, not when I first pick it up.

By the way, why is there no 'SetInvProperty[Text]' command?

Ishmael

Well, if you set the cursor mode with something like:

{
AddInventory(3); // to add the new item
SetActiveInventory(3); // set the new item as the active item
SetCursorMode(MODE_USEINV); // set the inv cursor mode
}

It should work... Post your code here so we can see what's wrong, if it's a scripting problem.
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.

Radiant

Ah, it works now, thanks.
I was using character[EGO].activeinv = x rather than SetActiveInv, that may have made a difference.

SMF spam blocked by CleanTalk