Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Invenotry item doesnt work  (Read 3252 times)

0 Members and 1 Guest are viewing this topic.

Yakuzza

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 50
    • View Profile
Invenotry item doesnt work
« 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
Code: [Select]
#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");
}
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Invenotry item doesnt work
« Reply #1 on: September 16, 2012, 06:30:28 PM »

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 :)
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Yakuzza

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 50
    • View Profile
Re: Invenotry item doesnt work
« Reply #2 on: September 17, 2012, 07:29:54 PM »

Thanks metamorphium!
It was game.script handler i was missing.
To bad the tutorial never covered that area.
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Invenotry item doesnt work
« Reply #3 on: September 17, 2012, 10:04:50 PM »

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Yakuzza

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 50
    • View Profile
Re: Invenotry item doesnt work
« Reply #4 on: September 17, 2012, 11:21:51 PM »

Oh i never covered online tuts.
Thanks again!
Logged
 

Page created in 0.03 seconds with 19 queries.