Legendary Tales Official Website
News Search:
Home · Articles · Downloads · Discussion Forum · Old Forums (read only) · RegisterAugust 28 2008 04:45:53
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
Learning JScript
To write your own scripts in Legendary Tales, you will need to learn the scripting language. It is an object-oriented language that is easy to learn. We'll start with the functions.
The functions keep the script orderly. There are built in functions, but you can create your own.
The built in functions are, in alphabetical order:

OnCombatMove, OnCommand, OnCommandLine, OnCopySpell, OnCustomAction, OnDead, OnDialog, OnEnter, OnEquip, OnExamine, OnExecute, OnExit, OnFindTraps, OnFirstEnter, OnIdentify, OnInfo, OnInsertInto, OnLook, OnMessage, OnModify, OnOpen, OnOperate, OnPickLock, OnPickUp, OnRemoveTrap, OnRest, OnShopService, OnTakeOut, OnUnequip, OnUnlock, OnUse and OnUseWith.

You may make your own functions by using a call for them, like so...

function MyFunction(){
Echo("This is a player made function.");
}

I will not go into great depth explaining all the engine functions, you can choose to read them from this file:
http://legendarytales.wikispaces.com/space/showimage/Functions.txt

There are also actions, that are placed in the function. They define what you want to happen. Most of them have parameters you must fill in but for the sake of space I won't put them in too, they can be found in the help file. So, in alphabetical order:

AddContent, AddExit, AddItem, AddOption, AddPartyMember, AddShopService, AlterExitVisibility, AlterVisibility, AwardExperience, BeginOptions, BeginShop, ClearOptions, ClearText, Echo, EnterCombat, Force, Foreach, GetInput, GetValue, Global, GlobalPer, GlobalRem, ID, Identify, ItemEquipped, ItemExists, Kill, Load, LoadLocation, LoadMap, MoveContent, Msg, Name, NewJournalEntry, NewQuest, OpenShop, PartyGold, PlaySample, PlaySound, ProcessOptions, RaiseDead, RemoveItem, RemovePartyMember, RemovePoison, RemoveQuest, RestParty, Rnd, SendMsg, SetSwitch, SetValue, ShowText, SkillValue, Switch, SysParam, TakeDamage, ThrowDice, tID, Unlock, UpdateMap, UpdateQuest, UseLib and UseQuickItem.

A short description of each in this file:
http://legendarytales.wikispaces.com/space/showimage/Commands.txt

There is also the objects, they are: ActivePlayer, Current, Self, Sender and Target. You can make things happen to the specific object by adjoining the entity to an action. Like so...

Self.Identify();

That command string can go in a script that might allow a player to identify an item.
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.

Awesome! Awesome! 75% [3 Votes]
Very Good Very Good 0% [No Votes]
Good Good 25% [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