Hi!
I've tried to figure out how to make it so when you left click an item, the character will pick it up, instead of right click
and then choose to pick it up.
Basically, I'd like my character to pick up item when left click, and "look at" item when right click without the "menu" popping up. The right click will therefore make her only speak about the item.
Could someone tell me which files I should edit and what i should write to make that work?
Also Im having problems with making the object(an apple) appear in the inventory with the right-click menu thing, even tho i followed the steps in the manual.
When I choose to pick it up, it doesn't disappear from its position nor appearing in the inventory.
here's what i got so far:
the apple.script
#include "scripts\base.inc"
////////////////////////////////////////////////////////////////////////////////
on "LookAt"
{
actor.Talk("Looks like an apple....");
}
////////////////////////////////////////////////////////////////////////////////
on "Take"
{
actor.Talk("It could be useful, I might get hungry.");
Game.TakeItem("apple");
Game.SelectedItem = "apple";
}
The items.item file:
ITEM
{
CURSOR_COMBINED = TRUE
CAPTION = "WME User's Guide"
NAME = "book"
IMAGE = "items\book.bmp"
CURSOR = "items\book.bmp"
CURSOR_HOVER = "items\book_h.bmp"
SCRIPT = "items\book.script"
}
ITEM
{
CURSOR_COMBINED = TRUE
CAPTION = "apple"
NAME = "apple"
IMAGE = "items\apple.png"
CURSOR = "items\apple.png"
CURSOR_HOVER = "items\apple.png"
SCRIPT = "items\apple.script"
}
i also added the apple.script file to the sceneEdit, by clicking on the apple entity and then adding the script file.
Also added "apple" to the "item" text box and saved it.
have I missed something?