Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Yakuzza on September 16, 2012, 01:20:06 PM
-
Hi guys!
I'm fairly new to the engine and i'm loving it so far. But i ran in to a problem using an inventory item on entity.
Every time i click on the region with my inventory item selected actor performs regular on "LeftClick" events.
Debug window shows no errors though.
I would really appriciate the help!
Here's the script
#include "scripts\base.inc"
on "LeftClick"
{
actor.GoTo(996, 412);
actor.TurnTo(DI_RIGHT);
actor.Talk("There could be something interesting on the other side.");
actor.Talk("If only i had something to help me to cross that gap...");
}
on "LeftDoubleClick"
{
actor.RunTo(996, 412);
actor.TurnTo(DI_RIGHT);
actor.Talk("There could be something interesting on the other side.");
actor.Talk("If only i had something to help me to cross that gap...");
}
on "ledder"
{
actor.GoTo(995, 366);
actor.TurnTo(DI_LEFT);
actor.PlayAnimChannel(0,"pickup_low");
Game.DeleteItem("ledder");
}
-
Hi,
1. check left click handler in scripts/game.script (this is the part where is usually scripted item handling)
2. check items definition (is the item really called ledder (as opposed to ladder)?
3. post relevant scripts here :)
-
Thanks metamorphium!
It was game.script handler i was missing.
To bad the tutorial never covered that area.
-
how comes?
http://res.dead-code.org/doku.php/wmebook:ch4
-
Oh i never covered online tuts.
Thanks again!