here you go
a NEW Karma Quest and a NEW Class Quest
Main
{
questname "Karma"
version 1.0
}
State Begin
{
desc "Talk With The Death Dealer"
action AddNpcText( 2 , "I am the Death Dealer, Dealer of Lives and Keeper of Karma.");
action AddNpcText( 2 , "What Business do You seek with Me? My fee is 500 Cash");
action AddNpcInput( 2 , 1 , "Buy Karma");
action AddNpcInput( 2 , 2 , "Sorry I forgot my wallet");
rule InputNpc(1) goto Paying
}
State Paying
{
desc "Talk With The Death Dealer "
action ShowHint("Karma Store");
action RemoveItem(1,500);
action AddNpcText( 2 , "These are my prices");
action AddNpcInput( 2 , 1 , "Tainted Karma");
action AddNpcInput( 2 , 2 , "Pure Karma");
rule InputNpc(1) goto Take100
rule InputNpc(2) goto Give100
rule LostItems(1,500) goto Begin
}
state Take100
{
action RemoveKarma(100);
action Reset();
}
State Give100
{
action GiveKarma(100);
action Reset();
}
State Reset
{
action Reset();
}
Class Quest
Main
{
questname "Learning some moves"
version 1.0
}
State Begin
{
desc "Talk to Old Man"
action AddNpcText( 1 , "Whats up Homie, Wanna learn a kool new fighting style?" );
action AddNpcInput( 1 , 1 , "Yes Sir");
action AddNpcInput( 1 , 2 , "No, I was just leaving");
rule InputNpc(1) goto Paying
}
State Paying
{
desc "Learning Styles"
action AddNpcText( 1 , "Well if you wanna learn some stuff its gunna cost you?" );
action AddNpcInput( 1 , 1 , "Pay 1000 Gold");
action AddNpcInput(1 , 2 , "Fuck No");
rule InputNpc(1) goto Class
rule InputNpc(2) goto Reset
}
State Class
{
desc "Talk to Old Man"
action ShowHint("Styles Menu");
action RemoveItem(1,1000);
action AddNpcText( 1 , "Alright kiddo choose your moves." );
action AddNpcInput( 1 , 1 , "Train me to be a Gladiator");
action AddNpcInput( 1 , 2 , "Train me in Magic");
action AddNpcInput( 1 , 3 , "Train me to be a Shooter");
action AddNpcInput( 1 , 4 , "Make me a Gangster");
rule InputNpc(1) goto Gladiator
rule InputNpc(2) goto Magic
rule InputNpc(3) goto Shooter
rule InputNpc(4) goto Gangster
rule LostItems(1,1000) goto Begin
}
State Gladiator
{
action SetClass(1);
action Reset();
}
State Magic
{
action SetClass(2);
action Reset();
}
state Shooter
{
action SetClass(3);
action Reset();
}
state Gangster
{
action SetClass(4);
action Reset();
}
state Reset
{
action Reset();
}