Quest Writing Problem

Post your codes or new programs you are working on here.
KnightGamer
Noob
Noob
Posts: 3
Joined: Mon Jun 26, 2017 5:55 pm

Quest Writing Problem

Postby KnightGamer » Sun Feb 04, 2018 9:37 pm

Im sorta new at quest writing and I tried to follow the tutorial guide.
Could anyone point out what I did wrong?


Main
{
questname "Heroes Of Time"
version 1.0
}
State Begin
{
desc "Hear what he has to say"

action AddNpcText(1, "Who are you truely?");

action AddNpcInput(1, 1, "I wish to heal another (Cleric)");
action AddNpcInput(1, 2, "I want to master every spell (Sorcerer)");
action AddNpcInput(1, 3, "Anything, as long Its mine later on (Thief)");
action AddNpcInput(1, 4, "I am good at distances (Hunter)");
action AddNpcInput(1, 5, "I wish to protect others (Knight)");

rule InputNpc(1) goto goto Class Cleric
rule InputNpc(2) goto goto Class Sorcerer
rule InputNpc(3) goto goto Class Thief
rule InputNpc(4) goto goto Class Hunter
rule InputNpc(5) goto goto Class Knight

}
State Cleric
{
desc "You choose to be a cleric"
action SetClass(2);
action Reset();
}

State Sorcerer
{
desc "You Choose to be a Sorcerer"

action SetClass(3);
action Reset();
}
State Thief
{
desc "You Choose to be a Thief"

action SetClass(4);
action Reset();
}
State Hunter
{
desc "You Choose to be a Hunter"

action SetClass(5);
action Reset();
}
State Knight
{
desc "You Choose to be a Knight"

action SetClass(6);
action Reset();
}
sevenfold
General
General
Posts: 80
Joined: Thu Aug 07, 2014 6:16 pm

Re: Quest Writing Problem

Postby sevenfold » Thu Feb 15, 2018 1:41 pm

Here you go, all fixed up! :D


Main
{
questname "Heroes Of Time"
version 1.0
}
state Begin
{
desc "Hear what he has to say"
action AddNpcText(1, "Who are you truely?");
action AddNpcInput(1,1,"I wish to heal another - Cleric");
action AddNpcInput(1,2,"I want to master every spell - Sorcerer");
action AddNpcInput(1,3,"Anything, as long its mine later on - Thief");
action AddNpcInput(1,4,"I am good at distances - Hunter");
action AddNpcInput(1,5,"I wish to protect others - Knight");
rule InputNpc(1) goto Cleric
rule InputNpc(2) goto Sorcerer
rule InputNpc(3) goto Thief
rule InputNpc(4) goto Hunter
rule InputNpc(5) goto Knight
}
state Cleric
{
action ShowHint("You've chosen to be Cleric");
action SetClass(2);
action Reset();
}
state Sorcerer
{
action Reset();
action ShowHint("You've chosen to be Sorcerer");
action SetClass(3);
}
state Thief
{
action SetClass(4);
action Reset();
action ShowHint("You've chosen to be a Thief");
}
state Hunter
{
action SetClass(5);
action Reset();
action ShowHint("You've chosen to be Hunter");
}
state Knight
{
action SetClass(6);
action Reset();
action ShowHint("You've chosen to be a Knight!");
}
KnightGamer
Noob
Noob
Posts: 3
Joined: Mon Jun 26, 2017 5:55 pm

Re: Quest Writing Problem

Postby KnightGamer » Fri Feb 16, 2018 10:44 am

Wow Thanks, should give your version a try later

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests