look at inventory item

Started by picklegreen, Wed 31/08/2011 11:53:31

Previous topic - Next topic

picklegreen

I noticed in mokey island you can look at items in your inventory and guybrush says things about them, I found this helpful, how can I implement this?
I tried going to the actions collum in the iventory items properties and clicked the "if look at" option and then just typed cCharacter.say("something about the item");
But it doesn't seem to have worked.

Matti

What didn't work? Did you properly create the function (as seen below) or did you type that line directly into the actions pane?


picklegreen

Yeah I clicked that then when it took me to the script page I typed cCharacter.say("something about the item");
But when I look at the item he says nothing.

Khris

You're using the 9verb template, right?

Read the included pdf, everything is explained in there.
Basically, you need to add the "any click on" event, and in there, use UsedAction(eActLook) or similar.

SMF spam blocked by CleanTalk