Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main
- {
- questname "Question Bank"
- version 1.0
- }
- state Begin
- {
- desc "Talk to the quiz master"
- action AddNpcText(27, "Welcome to the floor 2, I am here to ask you some basic questions related to the floor 2");
- action AddNpcText(27, "Would you like to begin?");
- action AddNpcInput(27, 1, "Sure why not?");
- action AddNpcInput(27, 2, "No thanks..");
- rule InputNpc(1) goto Sure
- rule InputNpc(2) goto Reset
- }
- state Sure
- {
- desc "Question 1"
- action AddNpcText(27, "Ok let's begin. If your answer is corret, then you will get reward otherwise you will lose the half amount of the total amount of reward for each question.");
- action AddNpcText(27, "1st Question - How many snowmans are there in Floor 2?");
- action AddNpcInput(27,1,"There are 10 Snowmans");
- action AddNpcInput(27,2,"There are 7 Snowmans");
- action AddNpcInput(27,3,"There are 4 Snowmans");
- rule InputNpc(1) goto Wrong1
- rule InputNpc(2) goto Reward1
- rule InputNpc(3) goto Wrong1
- }
- state Wrong1
- {
- desc "Talk to Quiz Master"
- action AddNpcText(27, "Your Answer is Wrong and hence 500g has been deducted.");
- action RemoveItem(1,500);
- action SetState("Question2");
- }
- state Reward1
- {
- action GiveItem(1,1000);
- action SetState("Question2");
- }
- state Question2
- {
- desc "Question 2"
- action AddNpcText(27, "2nd Question for 2k - Who is the boss of this floor?");
- action AddNpcInput(27,1,"Yeti");
- action AddNpcInput(27,2,"Ice Golem");
- action AddNpcInput(27,3,"Roukan");
- rule InputNpc(1) goto Wrong2
- rule InputNpc(2) goto Wrong2
- rule InputNpc(3) goto Reward2
- }
- state Wrong2
- {
- desc "Talk to Quiz Master"
- action AddNpcText(27, "Your Answer is Wrong and hence 1k has been deducted.");
- action RemoveItem(1,1000);
- action SetState("Question3");
- }
- state Reward2
- {
- action GiveItem(1,2000);
- action SetState("Question3");
- }
- state Question3
- {
- desc "Question 3"
- action AddNpcText(27, "3rd Question for 5k - How many Penguins are caged?");
- action AddNpcInput(27,1,"caged penguins are 15");
- action AddNpcInput(27,2,"caged penguins are 10");
- action AddNpcInput(27,3,"caged penguins are 5");
- rule InputNpc(1) goto Wrong3
- rule InputNpc(2) goto Reward3
- rule InputNpc(3) goto Wrong3
- }
- state Wrong3
- {
- desc "Talk to Quiz Master"
- action AddNpcText(27, "Your Answer is Wrong and hence 2.5k has been deducted.");
- action RemoveItem(1,2500);
- action SetState("Question4");
- }
- state Reward3
- {
- action GiveItem(1,5000);
- action SetState("Question4");
- }
- state Question4
- {
- desc "Question 4"
- action AddNpcText(27, "4rth Question for 8k - How many Balloons are there in a christmas tree?");
- action AddNpcInput(27,1,"There are 18 Balloons");
- action AddNpcInput(27,2,"There are 9 Balloons");
- action AddNpcInput(27,3,"There are 3 Balloons");
- rule InputNpc(1) goto Reward4
- rule InputNpc(2) goto Wrong4
- rule InputNpc(3) goto Wrong4
- }
- state Wrong4
- {
- desc "Talk to Quiz Master"
- action AddNpcText(27, "Your Answer is Wrong and hence 4k has been deducted.");
- action RemoveItem(1,4000);
- action SetState("Question5");
- }
- state Reward4
- {
- action GiveItem(1,8000);
- action SetState("Question5");
- }
- state Question5
- {
- desc "Question 5"
- action AddNpcText(27, "5th Question for 10k - How many kinds of npcs are in this floor?");
- action AddNpcInput(27,1,"There are 12 kinds of npcs");
- action AddNpcInput(27,2,"There are 8 kinds of npcs");
- action AddNpcInput(27,3,"There are 6 kinds of npcs");
- rule InputNpc(1) goto Wrong5
- rule InputNpc(2) goto Reward5
- rule InputNpc(3) goto Wrong5
- }
- state Wrong5
- {
- desc "Talk to Quiz Master"
- action AddNpcText(27, "Your Answer is Wrong and hence 5k has been deducted.");
- action RemoveItem(1,5000);
- action SetState("Question6");
- }
- state Reward5
- {
- action GiveItem(1,10000);
- action SetState("Question6");
- }
- state Question6
- {
- desc "Question 6"
- action AddNpcText(27, "6th Question for 12k - Which npc is the strongest npc of this floor?");
- action AddNpcInput(27,1,"Grim reaper");
- action AddNpcInput(27,2,"Roukan");
- action AddNpcInput(27,3,"Wolf Leader");
- rule InputNpc(1) goto Wrong6
- rule InputNpc(2) goto Reward6
- rule InputNpc(3) goto Wrong6
- }
- state Wrong6
- {
- desc "Talk to Quiz Master"
- action AddNpcText(27, "Your Answer is Wrong and hence 6k has been deducted.");
- action RemoveItem(1,6000);
- action SetState("NoMore");
- }
- state Reward6
- {
- action GiveItem(1,12000);
- action SetState("NoMore");
- }
- state NoMore
- {
- action AddNpcText(27, "Cloud has no idea what to add more in this quest. come back later.");
- rule TalkedToNpc(27) goto Reset
- }
- state Reset
- {
- action End();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement