HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need Inventory idea.

09-25-2007, 12:48 PM#1
cohadar
I have an extended inventory thingy in my map.

Basically I have 2 pages of 6 inventory slots,
first page is real inventory, second is virtual.

When I press a button items from slots 1 and 2 are swapped.
Simple and effective.

What I lack is a way for user to easily transfer one item between slots.

It would be perfect if I had something like double-rightclick event or similar...

Good idea will be get +rep and author will be credited in library.
09-25-2007, 01:07 PM#2
blu_da_noob
Well you can detect a 'double right click' (or rather the result thereof). A double right click will issue the unit an order which corresponds to the slot the item is in. So you can detect that and if the order target == item current slot then you have a double right click and can do your transfer.
09-25-2007, 01:24 PM#3
cohadar
Aaaaaaaaa ORDERS .....

ffs I knew I was doing something wrong....

orederID 852002.... pwnage.

thank you.


EDIT:

How do I detect if event target is an item...?
Gotta look in jasshelper...

GetOrderTargetItem()