Look on inventory Items

Started by kantor_98, Mon 13/11/2006 08:51:16

Previous topic - Next topic

kantor_98

I want that when I look (use look icon) on an inventory item, something to happen - a message displayed, a GUI activation, etc. To be honnest, I did not find something like this in the help file. I try also to use the "interact" option on on the inventory  item, I put there "run script", in the script I put display message, and after that activate GUI, but none of them work.
What should I do ?

SSH

Since interaction scripts are in the global script, you should use Global messages for any Dsiplay message commands. Although if you're using a script function you may as well say,

Display("It's a very interesting inventory item");
12

kantor_98

I try this, but the inventory window is over the text !

SSH

Why didn't you mention that to start with?   ::)

Turn off the inventory window, display your text, then turn it back on (if you want it to stay on). Or put the text on a gui with a higher Z property
12

Ashen

You should mention tings you've already tried and what was wrong with them in your first post - it'll save everyone's time.

Unless you've checked the 'Display all text as speech' option, Display commands should be on top of all GUIs.
In addition toSSH's suggestions, check the manual - DisplayAt/DisplayAtY/DisplayMessageAtY could all be used to move the message to somewhere it can be seen (Or SayAt for character speech.).
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk