Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Help with a script  (Read 2233 times)

0 Members and 1 Guest are viewing this topic.

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Help with a script
« on: April 22, 2008, 09:18:31 AM »

Hello every body

I'm not a coder and english is not my language, so sometimes it's difficult for me to understand, so forgive if my very newbies questions !
 i Saw a script at this adress
http://wiki.dead-code.org/wakka.php?wakka=IconBased&v=5ir

so i'm understand the part 1, 2, and i pasted the script in the good place
but in part free i dont understand something:

Then in your test scene put the following code:
dlgObject.initializeDialogue("scripts\reactions.script");
dlgObject.insertIcon("first","icon.png","icon.png"); // insert some real image file instead of icon.png
dlgObject.insertIcon("second","icon.png","icon.png"); // insert some real image file instead of icon.png
dlgObject.insertIcon("third","icon.png","icon.png"); // insert some real image file instead of icon.png

what is the test scene? where i need to put this script part exactly?
can you help me?
Thanks for help
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: Help with a script
« Reply #1 on: April 22, 2008, 10:43:59 AM »

if you have a scene with a NPC and you want to start dialogue by left clicking this NPC, put to his script

on "LeftClick"
{
   // Stuff for icon based dialogue.
}
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Re: Help with a script
« Reply #2 on: April 22, 2008, 12:00:09 PM »

it's cool
thanks for help metamorphium
Logged
 

Page created in 0.039 seconds with 19 queries.