Tuesday, July 31, 2007

Bit of Scripting

Just touching up on my scripting. This is RC script. The Script is A MMO based Special NPC who adds a special quest to the player if player accepts. If not the script terminates.

Function Main()
//Sets NPC's Name
SetName(Actor(), "Old Wise Man")
//Sets NPC's clothes
SetActorClothes(Actor(), 529)
//Sets NPC's face
SetActorFace(Actor(), 42)
//Animate NPC
AnimateActor(Actor(), "Idle", 0.7)

Player = Actor()
X = OpenDialog(Player, ContextActor(), "Old Wise Man")
DialogOutput(Player, D, "Greetings Youngling, Many moons have spoken of someone with such guidence
as yourself to enlighten your path and fullfil your destiny as a Templar.", 255, 255, 255)

Result = DialogInput(Player, X, "About The Templar", "Im Interested", "No Thanks")
If (Result == 1)
DialogOutput(Player, X, "The Templar Knights were formed on a planet called earth during the medieval ages during the blessing and worship of Christ. Sworn to protect the holy powers the templar’s now roam the universe alliance with the Coalition of the Suns the Templar Knights are to help prevent war between the Coalition of the Suns and The Empriea Imperium Alliance. As well as the Exmpirian forces Templars are also hunted by bounty hunters for federation traders to sell off there Ancient Weapons the “CyroSword, GrailBow (Holocras Arrows)”
Everyone has the right to become a templar but only the true followers of god can embark on the galactic crusade. A templar knight must first journey to earth and find the resting place of the Holy Grail, once there they must then pass three tests, once they have passed the three tests. After completion of the three ancient tests they will then be presented in front of the patent of god there they will receive there blessing and will be able to enter the Templar Knights quarters located on Cordia. There they will be able to learn the teachings of the good book and learn the ways of a knight of god. After there training they are given the holy weapons by the leader.

To present rank and order in the universe the templar knights are ran by the higher orders there are twelve higher order which sit around the round table of king Arthur “The Knights of the Round Table”
", 255, 255, 255)
If (Result == 2)
DialogOutput(Player, X, "I am pleased you have chosen wiseley. Goto the ruins of Corcai. There you will seek the Order”
", 255, 255, 255)
// Add a quest to the player's log
NewQuest(Actor(), "Seeking The Order", "Goto the Corcai Ruins and Seek the Templar Order", 255, 255, 255)

If (Result == 3)
DialogOutput(Player, X, "As you wish. Do come see me if you change your mind”
", 255, 255, 255)
End Function

No comments: