Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main
- {
- questname "Intensive Training (Daily)"
- version 1
- }
- State Begin
- {
- desc "Talk to Trainer (Daily)"
- action AddNpcText(#,"Greetings! Once per day, you can come to me for Intensive Training!");
- action AddNpcText(#,"The price for this service, is AMOUNT");
- action AddNpcText(#,"You can choose which statistic we will target for each training session!");
- action AddNpcText(#,"With my help, you can increase your desired stat between 10 - 15 points each day!");
- action AddNpcInput(#,1,"Okay!");
- rule InputNpc (1) goto Menu1
- }
- State Menu1
- {
- desc "Choose Stat?"
- action ShowHint("You will be charged if you proceed with training...");
- action AddNpcText(#,"Which statistic shall we focus on for your Intensive Training today?");
- action AddNpcInput(#,1,"Strength.");
- action AddNpcInput(#,2,"Intelligence.");
- action AddNpcInput(#,3,"Agility.");
- action AddNpcInput(#,4,"Constitution.");
- action AddNpcInput(#,5,"Wisdom.");
- action AddNpcInput(#,6,"Charisma.");
- rule InputNpc(1) goto Check1
- rule InputNpc(2) goto Check2
- rule InputNpc(3) goto Check3
- rule InputNpc(4) goto Check4
- rule InputNpc(5) goto Check5
- rule InputNpc(6) goto Check6
- }
- State Check1
- {
- if GotItems(1,100) goto CheckStr
- else SetState("SoftReset1");
- }
- State Check2
- {
- if GotItems(1,100) goto CheckInt
- else SetState("SoftReset1");
- }
- State Check3
- {
- if GotItems(1,100) goto CheckAgi
- else SetState("SoftReset1");
- }
- State Check4
- {
- if GotItems(1,100) goto CheckCon
- else SetState("SoftReset1");
- }
- State Check5
- {
- if GotItems(1,100) goto CheckWis
- else SetState("SoftReset1");
- }
- State Check6
- {
- if GotItems(1,100) goto CheckCha
- else SetState("SoftReset1");
- }
- State CheckStr
- {
- action Roll(5)
- rule DoneDaily(1) goto DailyReset
- rule Rolled(1) goto Str1
- rule Rolled(2) goto Str2
- rule Rolled(3) goto Str3
- rule Rolled(4) goto Str4
- rule Rolled(5) goto Str5
- }
- state Str1
- {
- action RemoveItem(1,100);
- action GiveStat("str",1);
- action ShowHint("Your Strength has increased by 1 today!");
- action SetState("GetReward");
- }
- state Str2
- {
- action RemoveItem(1,100);
- action GiveStat("str",2);
- action ShowHint("Your Strength has increased by 2 today!");
- action SetState("GetReward");
- }
- state Str3
- {
- action RemoveItem(1,100);
- action GiveStat("str",3);
- action ShowHint("Your Strength has increased by 3 today!");
- action SetState("GetReward");
- }
- state Str4
- {
- action RemoveItem(1,100);
- action GiveStat("str",4);
- action ShowHint("Your Strength has increased by 4 today!");
- action SetState("GetReward");
- }
- state Str5
- {
- action RemoveItem(1,100);
- action GiveStat("str",5);
- action ShowHint("Your Strength has increased by 5 today!");
- action SetState("GetReward");
- }
- state CheckInt
- {
- action Roll(5)
- rule DoneDaily(1) goto DailyReset
- rule Rolled(1) goto Int1
- rule Rolled(2) goto Int2
- rule Rolled(3) goto Int3
- rule Rolled(4) goto Int4
- rule Rolled(5) goto Int5
- }
- state Int1
- {
- action RemoveItem(1,100);
- action GiveStat("int",1);
- action ShowHint("Your Intelligence has increased by 1 today!");
- action SetState("GetReward");
- }
- state Int2
- {
- action RemoveItem(1,100);
- action GiveStat("int",2);
- action ShowHint("Your Intelligence has increased by 2 today!");
- action SetState("GetReward");
- }
- state Int3
- {
- action RemoveItem(1,100);
- action GiveStat("int",3);
- action ShowHint("Your Intelligence has increased by 3 today!");
- action SetState("GetReward");
- }
- state Int4
- {
- action RemoveItem(1,100);
- action GiveStat("int",4);
- action ShowHint("Your Intelligence has increased by 4 today!");
- action SetState("GetReward");
- }
- state Int5
- {
- action RemoveItem(1,100);
- action GiveStat("int",5);
- action ShowHint("Your Intelligence has increased by 5 today!");
- action SetState("GetReward");
- }
- state CheckAgi
- {
- action Roll(5)
- rule DoneDaily(1) goto DailyReset
- rule Rolled(1) goto Agi1
- rule Rolled(2) goto Agi2
- rule Rolled(3) goto Agi3
- rule Rolled(4) goto Agi4
- rule Rolled(5) goto Agi5
- }
- state Agi1
- {
- action RemoveItem(1,100);
- action GiveStat("agi",1);
- action ShowHint("Your Agility has increased by 1 today!");
- action SetState("GetReward");
- }
- state Agi2
- {
- action RemoveItem(1,100);
- action GiveStat("agi",2);
- action ShowHint("Your Agility has increased by 2 today!");
- action SetState("GetReward");
- }
- state Agi3
- {
- action RemoveItem(1,100);
- action GiveStat("agi",3);
- action ShowHint("Your Agility has increased by 3 today!");
- action SetState("GetReward");
- }
- state Agi4
- {
- action RemoveItem(1,100);
- action GiveStat("agi",4);
- action ShowHint("Your Agility has increased by 4 today!");
- action SetState("GetReward");
- }
- state Agi5
- {
- action RemoveItem(1,100);
- action GiveStat("agi",5);
- action ShowHint("Your Agility has increased by 5 today!");
- action SetState("GetReward");
- }
- state CheckCon
- {
- action Roll(5)
- rule DoneDaily(1) goto DailyReset
- rule Rolled(1) goto Con1
- rule Rolled(2) goto Con2
- rule Rolled(3) goto Con3
- rule Rolled(4) goto Con4
- rule Rolled(5) goto Con5
- }
- state Con1
- {
- action RemoveItem(1,100);
- action GiveStat("con",1);
- action ShowHint("Your Constitution has increased by 1 today!");
- action SetState("GetReward");
- }
- state Con2
- {
- action RemoveItem(1,100);
- action GiveStat("con",2);
- action ShowHint("Your Constitution has increased by 2 today!");
- action SetState("GetReward");
- }
- state Con3
- {
- action RemoveItem(1,100);
- action GiveStat("con",3);
- action ShowHint("Your Constitution has increased by 3 today!");
- action SetState("GetReward");
- }
- state Con4
- {
- action RemoveItem(1,100);
- action GiveStat("con",4);
- action ShowHint("Your Constitution has increased by 4 today!");
- action SetState("GetReward");
- }
- state Con5
- {
- action RemoveItem(1,100);
- action GiveStat("con",5);
- action ShowHint("Your Constitution has increased by 5 today!");
- action SetState("GetReward");
- }
- state CheckWis
- {
- action Roll(5)
- rule DoneDaily(1) goto DailyReset
- rule Rolled(1) goto Wis1
- rule Rolled(2) goto Wis2
- rule Rolled(3) goto Wis3
- rule Rolled(4) goto Wis4
- rule Rolled(5) goto Wis5
- }
- state Wis1
- {
- action RemoveItem(1,100);
- action GiveStat("wis",1);
- action ShowHint("Your Wisdom has increased by 1 today!");
- action SetState("GetReward");
- }
- state Wis2
- {
- action RemoveItem(1,100);
- action GiveStat("wis",2);
- action ShowHint("Your Wisdom has increased by 2 today!");
- action SetState("GetReward");
- }
- state Wis3
- {
- action RemoveItem(1,100);
- action GiveStat("wis",3);
- action ShowHint("Your Wisdom has increased by 3 today!");
- action SetState("GetReward");
- }
- state Wis4
- {
- action RemoveItem(1,100);
- action GiveStat("wis",4);
- action ShowHint("Your Wisdom has increased by 4 today!");
- action SetState("GetReward");
- }
- state Wis5
- {
- action RemoveItem(1,100);
- action GiveStat("wis",5);
- action ShowHint("Your Wisdom has increased by 5 today!");
- action SetState("GetReward");
- }
- state CheckCha
- {
- action Roll(5)
- rule DoneDaily(1) goto DailyReset
- rule Rolled(1) goto Cha1
- rule Rolled(2) goto Cha2
- rule Rolled(3) goto Cha3
- rule Rolled(4) goto Cha4
- rule Rolled(5) goto Cha5
- }
- state Cha1
- {
- action RemoveItem(1,100);
- action GiveStat("cha",1);
- action ShowHint("Your Charisma has increased by 1 today!");
- action SetState("GetReward");
- }
- state Cha2
- {
- action RemoveItem(1,100);
- action GiveStat("cha",2);
- action ShowHint("Your Charisma has increased by 2 today!");
- action SetState("GetReward");
- }
- state Cha3
- {
- action RemoveItem(1,100);
- action GiveStat("cha",3);
- action ShowHint("Your Charisma has increased by 3 today!");
- action SetState("GetReward");
- }
- state Cha4
- {
- action RemoveItem(1,100);
- action GiveStat("cha",4);
- action ShowHint("Your Charisma has increased by 4 today!");
- action SetState("GetReward");
- }
- state Cha5
- {
- action RemoveItem(1,100);
- action GiveStat("cha",5);
- action ShowHint("Your Charisma has increased by 5 today!");
- action SetState("GetReward");
- }
- state GetReward
- {
- action ShowHint("Your Intensive Training is completed for today! (DAILY)");
- action PlaySound(17);
- action GiveExp(100);
- action ResetDaily();
- }
- state DailyReset
- {
- desc "Intensive Training (Daily)"
- action ShowHint("You can only complete your Intensive Training once a day.");
- action AddNpcText(#,"You have already completed your training today, please come back tomorrow." );
- rule TalkedToNpc(#) goto Reset
- }
- state Reset
- {
- action ShowHint("Intensive Training (Daily) aborted...")
- action Reset();
- }
- State SoftReset1
- {
- action ShowHint("Insufficient funds.");
- action Reset();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement