Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main
- {
- questname "Wise Man and Rats"
- version 1.0
- }
- State Begin
- {
- desc "Talk with NPC NAME"
- action AddNpcText(#,"I can change your class if you kill some rats for me!");
- action AddNpcText(#,"Some infomation about where to find them etc.");
- action AddNpcText(#,"Will you go and kill some rats for me?");
- action AddNpcInput(#,1,"I will.");
- action AddNpcInput(#,2,"I will not.");
- rule InputNpc(1) goto Rats1
- rule InputNpc(2) goto HardReset
- }
- State Rats1
- {
- desc "Rats remaining:"
- rule KilledNpcs(CHANGE-ME-RATS-ID, 30) goto Rats2
- }
- State Rats2
- {
- desc "Return to NPC NAME"
- action AddNpcText(#,"Welcome back!");
- action AddNpcText(#,"You can change your class from me now, if you are ready.");
- action AddNpcText(#,"Would you like to change class now?");
- action AddNpcInput(#,1,"Yes, now please.");
- action AddNpcInput(#,2,"No thanks, later.");
- rule InputNpc(1) goto Class2
- rule InputNpc(2) goto Class1
- }
- State Class1
- {
- action ShowHint("Class change aborted.");
- action SetState("Rats2");
- }
- State Class2
- {
- action AddNpcText(#,"Class List:" );
- action AddNpcInput(#,1,"Abort! Cancel!");
- action AddNpcInput(#,2,"Class Name 1");
- action AddNpcInput(#,3,"Class Name 5");
- action AddNpcInput(#,4,"Class Name 6");
- rule InputNpc(1) goto Class1
- rule InputNpc(2) goto ChangeClass1
- rule InputNpc(3) goto ChangeClass2
- rule InputNpc(4) goto ChangeClass3
- }
- State ChangeClass1
- {
- action ShowHint("You have changed class!");
- action SetClass(1);
- action Reset();
- }
- State ChangeClass2
- {
- action ShowHint("You have changed class!");
- action SetClass(5);
- action Reset();
- }
- State ChangeClass3
- {
- action ShowHint("You have changed class!");
- action SetClass(6);
- action Reset();
- }
- State HardReset
- {
- action Reset();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement