Legendary Tales Official Website
News Search:
Home · Articles · Downloads · Discussion Forum · RegisterJuly 29 2010 14:21:54
Navigation
Home
Articles
Downloads
Discussion Forum
Web Links
News
Contact Me
Screenshots
Search
Login
Username

Password

Save



I forgot my password.

Why register?
Newsletter
Subscribe now to receive important news, game releases and site updates
Buy 3 Skulls only $9.99


Download a demo

Full version download immediately after purchase!

You can use any credit card.

Visa Mastercard American Express Discover
Affiliates
You can now offer your support and also make money by selling 3 Skulls RPG. You receive 30% commision per sale. If you do not want to let this opportunity pass then act now and register for free.

You will get your own affiliate Control Panel from where you can generate the links to put on your webpages and monitor your generated sales.

Affiliate Registration
Relevant Content
Making NPC's Talk In .vbs
Ok, making NPC's talk is a very important part of your game. It'll add realism and also allow you to tell the player to go somewhere or do something without spoiling the rpg feel. This is how to make your npc's talk:

Ok, making NPC's talk is a very important part of your game. It'll add realism and also allow you to tell the player to go somewhere or do something without spoiling the rpg feel. This is how to make your npc's talk:


Function OnDialog()
Echo("NPC: What NPC is saying")
End Function


Ok, let's break this down...

Function - A function is simply something that is called
by the engine when certain things happen.
E.G: OnEnter() When someone enters etc.

Function OnDialog() - This is called whenever the player clicks on the "Talk to" button and selects and NPC. The engine then looks for this is the NPC's script.

Echo("NPC: What NPC is saying") - The
"Echo" command makes text appear on the screen, simple as. Most games using the LT engine write dialogues in script from. With the thing that is talking seperated by a colon (:).

End Function - "End Function" tells the computer that's all it needs to do for now, and can continue doing whatever it was doing..
Now if you have two people named "A" and "B" then you may want a dialogue as follows:


Function OnDialog()
Echo("A: Hello B!")
Echo("B: Hello um... what's your name again?")
Echo("A: It's A!")
Echo("B: Oh yeh...")
End Function
Of course you can make it as complicated as you want!

Any script with "OnDialog()" in it must be in a NPC or it'll return an error!
Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
RSS Newsfeed
King's Island II
Isometric action RPG
Dragon Age Journeys
Flash version of Dragon Age
Gemstone Dragon
Isometric flash RPG
Fantasy Kommander
Flash miniature RPG game
Troll's Rage
Platform RPG
Sin Mark
Action Fantasy Game
King's Island
Isometric Flash RPG
Zelda Classic
Zelda classic RPG for Flash
Seeds Of Darkness
Mardek
Top-down classic RPG
 
Darkness Springs
Isometric Action RPG
Murloc
Fun WoW based RPG game
Monster's Den
Classic dungeon crawl RPG
Dungeon Defender
Strategy RPG game
A PBBG Game
Legendary Tales Online is a PBBG.
Suggestions
Copyright www.legendarytales.com © 2001 - 2010

Terms Of Service Privacy Policy