Main
{
questname "Wise Man"
version 1.0
}
State Begin
{
action AddNpcChat(4, "Do you need any help my friend?");
action AddNpcText(4, "Welcome my friend, let me introduce myself. I am Kevin, but people around here just call me the wise man, and I know the arts and ways of the skilled profetionals and if you would like I don't mind teaching you... If you would like me to.");
rule TalkedToNpc(4) goto ClassMenu
}
State ClassMenu
{
desc "Talk to Wiseman"
action AddNpcChat(4, "I know exactly what you want after all I'm quite wise");
action AddNpcChat(4, "I can help you change your path in life ;)");
action AddNpcText(4, "would you like a class change? What class would you like?");
action AddNpcInput(4, 2, "Priest");
action AddNpcInput(4, 3, "Magician");
action AddNpcInput(4, 4, "Rogue");
action AddNpcInput(4, 5, "Archer");
action AddNpcInput(4, 6, "Warrior");
rule InputNpc(2) goto Priest
rule InputNpc(3) goto Magician
rule InputNpc(4) goto Rogue
rule InputNpc(5) goto Archer
rule InputNpc(6) goto Warrior
}
State Priest
{
action AddNpcText(4, "The Nobal Priest prides themselves in their Intelligence. They harbor their skills in Healling and buffering themselves and their teamates. Their preferred attire if robe cloths and Holy books. Sound Good?");
action AddNpcInput(4, 1, "Yes, I would love to become a Priest");
action AddNpcInput(4, 2, "No, Let me look at some other ones");
rule InputNpc(1) goto PriestNext
rule InputNpc(2) goto ClassMenu
}
State Magician
{
action AddNpcText(4, "The Mystical Magician prides themselves in their Wisdom. They harbor their skills in leathal spells and curses on their foes. Their preferred attire if cloaks, staffs, and magic wands. Sound Good?");
action AddNpcInput(4, 1, "Yes, I would love to become a Magician");
action AddNpcInput(4, 2, "No, Let me look at some other ones");
rule InputNpc(1) goto MagicianNext
rule InputNpc(2) goto ClassMenu
}
State Rogue
{
action AddNpcText(4, "The Thrivals Rogue prides themselves in their Agility and Concentration. They harbor their skills in Quick Jabs and Silently killing their targets. Their preferred attire if tight leather garment, dagers, and feirce ninja hand-to-hand combat. Sound Good?");
action AddNpcInput(4, 1, "Yes, I would love to become a Rogue");
action AddNpcInput(4, 2, "No, Let me look at some other ones");
rule InputNpc(1) goto RogueNext
rule InputNpc(2) goto ClassMenu
}
State Archer
{
action AddNpcText(4, "The Keen Archer prides themselves in their Agility. They harbor their skills in ranged combat and hindering their foes. Their preferred attire if light armor with a hand bow and arrow. Sound Good?");
action AddNpcInput(4, 1, "Yes, I would love to become a Archer");
action AddNpcInput(4, 2, "No, Let me look at some other ones");
rule InputNpc(1) goto ArcherNext
rule InputNpc(2) goto ClassMenu
}
State Warrior
{
action AddNpcText(4, "The Ruthless Warrior prides themselves in Hard core strength. They harbor their skills in Powerfull strikes and death dealling blows to their apponent. Their preferred attire if Heavy mettal armor, Gient Swords or a Powerfull Axe/Warhammer. Sound Good?");
action AddNpcInput(4, 1, "Yes, I would love to become a Warrior");
action AddNpcInput(4, 2, "No, Let me look at some other ones");
rule InputNpc(1) goto WarriorNext
rule InputNpc(2) goto ClassMenu
}
State PriestNext
{
action AddNpcText(4, "Let me know when ever you would like to change your class again. See you next time my friend =D");
action SetClass(2);
action SetState("NextTime");
}
State MagicianNext
{
action AddNpcText(4, "Let me know when ever you would like to change your class again. See you next time my friend =D");
action SetClass(3);
action SetState("NextTime");
}
State RogueNext
{
action AddNpcText(4, "Let me know when ever you would like to change your class again. See you next time my friend =D");
action SetClass(4);
action SetState("NextTime");
}
State ArcherNext
{
action AddNpcText(4, "Let me know when ever you would like to change your class again. See you next time my friend =D");
action SetClass(5);
action SetState("NextTime");
}
State WarriorNext
{
action AddNpcText(4, "Let me know when ever you would like to change your class again. See you next time my friend =D");
action SetClass(6);
action SetState("NextTime");
}
State NextTime
{
action AddNpcText(4, "Welcom Back My friend, long time no see.");
rule TalkedToNpc(4) goto ClassMenu
}