Legendary Tales Official Website
News Search:
Home · Articles · Downloads · Discussion Forum · Old Forums (read only) · RegisterAugust 28 2008 04:47:18
Navigation
Home
Articles
Downloads
FAQ
Discussion Forum
Web Links
News
Contact Me
Screenshots
Search
Login
Username

Password

Save



Not a member yet?
Then register.

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 also use your credit card without a paypal account.

Visa Mastercard American Express Discover
Adding shops and shop services (by Kamakani)
Adding Shops and Shop Services

Here you will learn how to add Shops and Shop Services to NPC?s and Locations.

Go to the Shops folder and create a new shop. Name this shop whatever you want (name it by double clicking on the name in the folder's view), but take note of the shop's ID. Ex: 700100. At the bottom in the type of items and weapons to buy, check all of the boxes. This will allow all items to be bought and sold in this shop. Now click on the Add button and add one of each item into the shop contents box. You can add as many items as you want into a shop.

Now go to the NPC's folder and add an NPC and name it whatever you like. This will be your Shopkeeper. Click on the script tab and using the drop down menu at the bottom select JScript, this will let the engine know that the script is being run in the JScript format. Now, cut and paste the following script into the script of the NPC:

function op1(){
BeginShop("Test Shop",10,12,700100);
OpenShop();
}

function OnDialog(){
Echo("Shop Keeper: Hello, can I interest you in some armor, weapons or healing potions today?");
ClearOptions();
AddOption(0,"Yes","op1();","");
AddOption(0,"No Thanks","","");
ProcessOptions();
}

Page 1 of 3 1 2 3 >
Comments
Throndir on June 23 2007 00:04:24
AN overall good article about shops and it should help anyone with starting up their game. Shops are another must have for any LT game.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 33% [1 Vote]
Very Good Very Good 33% [1 Vote]
Good Good 33% [1 Vote]
Average Average 0% [No Votes]
Poor Poor 0% [No Votes]
Play Online Now
Play Now
Requirements and info
Terms of Service
Privacy Policy
RSS Newsfeed
Shoutbox
You must login to post a message.

Throndir
21/08/2008 10:54
Then read this tutorial. http://h1.ripway.com/thro
ndir/Delete After Files/Tutorial.zip


Throndir
21/08/2008 10:51
It depends what you're trying to do. If you want to create a textbased game, download the engine and editor.

jfreak
20/08/2008 02:52
how do i begin smiley?

MrHelem
17/08/2008 15:22
Nevermind, got it figured out.

MrHelem
17/08/2008 04:13
Hey, can anyone tell me how to set up a custom skill so it uses mana? I scanned the tutorials and didn't find anything.

Throndir
10/08/2008 13:33
Or check out legendarytales.wikispaces
.com


Throndir
10/08/2008 13:09
Yes. Post in the forums with your problem.

critchell
09/08/2008 17:46
i need some help with a particular script which adds a new member to a party, can anyone help?

Throndir
05/08/2008 14:24
Legendarytales is a game engine and editor. You basically create textbased games, or hope for any other person to create an adventure so you could play it..

Delphinus
05/08/2008 10:17
You create. Check the 'Downloads' page.

Shoutbox Archive
Copyright www.legendarytales.com © 2001 - 2008

Terms Of Service Privacy Policy
eXTReMe Tracker