(EDITED) Triggering "look" interaction from script

Started by Ytterbium, Wed 21/01/2004 02:22:42

Previous topic - Next topic

Ytterbium

I resolved the problem I was previously asking about in case anyone saw it. But I still have another problem.

I'd like to set clicking RIGHTINV to triggering the "Look" interaction of Inventory Item "game.int_activated." Uh...how?

Or, in other words, what function/command/random scripting gobbledegook term should I use to do this?

Currently in production: Septigon

strazer

#1
Hi!

Try adding this to your on_mouse_click function:

//...other button checks
else if (button==RIGHTINV) { // right click in inventory
  RunInventoryInteraction (game.inv_activated, MODE_LOOK);
}
//...more button checks, LEFTINV etc.

For this to work, "Handle inventory clicks in script" has to be turned on in the general settings.

Hope it works :)
Chris

Ytterbium

Thank you! The help file just wasn't telling me there was a RunInventoryInteraction command. This is just what I needed.

Currently in production: Septigon

SMF spam blocked by CleanTalk