Use inventory on GUI?

Started by Nine Toes, Thu 05/02/2004 02:07:27

Previous topic - Next topic

Nine Toes

Is there a function that will enable me, after I open my inventory window and select an item, to use the selected item on a GUI?

I've looked through the manual, and the Tech Archive, I can't seem to find anything that might help me.

Thanks in advance.
~Sully
Watch, I just killed this topic...

Gilbert

#1
I think something like this may work (in theory):

Set the button of a GUI to "run script..." on left click action, say, this is button 3 of GUI TEST, then script something like this:
Code: ags

if (interface==TEST){
__if (button==3){
_____if(GetCursorMode()==4){ //use inv mode
_______if(character[CHARID].activeinv==3){blahbla}
_______else if(character[CHARID].activeinv==9){blahbla} ....
}
}}






Ishmael

I think the on_event function could help you... Study the manual for global script function references... or whatever..

I'll be on my own computer this evening, so then I might wrap up something which could work in theory too...
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.

Nine Toes

Hell yeah, Gil@!

It works.  (sorry TK)  Thanks much. ;)

On the other hand, TK... I would be interested to see what you can come up with... just in case... ???
Watch, I just killed this topic...

SMF spam blocked by CleanTalk