Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // QUest Engine 0.01 example script by VUlt-r
- // script shows how to initialize and begin the quest 111
- Main
- {
- questname "Monkey Island"
- version 2.0
- }
- State Begin
- {
- desc "Talk to the young pirate"
- action AddNpcText( 21 , "Arrr, I discovered a new issssland!" );
- action AddNpcChat( 21 , "Arrr, I discovered a new issssland!" );
- action AddNpcInput( 21 , 1 , "Not intrested");
- action AddNpcInput( 21 , 2 , "Tell me more..");
- action AddNpcInput( 21 , 3 , "Dont believe you");
- rule InputNpc( 1 ) goto Reset
- rule InputNpc( 2 ) goto BeginReset
- rule InputNpc( 3 ) goto Begin0
- }
- State BeginReset
- {
- desc "Talk to the young pirate"
- action AddNpcText( 21 , "Arrrr, no its pirate secret!" );
- rule TalkedToNpc( 21 ) goto Reset
- }
- State Begin0
- {
- desc "Talk to the young pirate"
- action AddNpcText( 21 , "Arrr you think I making this up? Well i could show you the island myself matey! But first you would need to prove that you are a real pirate" );
- action AddNpcText( 21 , "Are you willing to take the pirate test?" );
- action AddNpcChat( 21 , "Arrrr");
- action AddNpcInput( 21 , 1 , "I will prove it");
- action AddNpcInput( 21 , 2 , "No thanks");
- rule InputNpc( 1 ) goto Begin1
- rule InputNpc( 2 ) goto Reset
- }
- State Begin1
- {
- desc "Talk to the pirate captain"
- action AddNpcText( 21 , "Ha-ha-ha.. Dont make me laugh now, you are no pirate, you dont look like a pirate at all.." );
- action AddNpcText( 21 , "Go talk to the pirate captain, he will teach you how to become a real pirate!" );
- action AddNpcText( 6 , "So, arhh pirate test?!.. You want to become a real pirate and take the pirate test, arhhhhhh har har har.. *gulp*" );
- action AddNpcText( 6 , "Okay then.. if you can defeat 3 of my elite crew members Ill consider it");
- action AddNpcInput( 6 , 1 , "Maybe piracy is not for me.");
- action AddNpcInput( 6 , 2 , "Fear me, crew members!");
- rule InputNpc( 1 ) goto Lose
- rule InputNpc( 2 ) goto Killcrew
- }
- State Killcrew
- {
- desc "Defeat 3 pirate crew members"
- action ShowHint("Show them whos the boss!");
- action AddNpcText( 6 , "Okay what are you waiting for? get off my boat and defeat three elites of my crew.");
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- rule KilledNpcs( 128 , 3 ) goto Donecrew
- }
- State Donecrew
- {
- desc "Talk the Pirate Captain again"
- action ShowHint("Talk to Pirate Captain!");
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- action AddNpcText( 6 , "Yeah yeah, my crew members are weak anyways..." );
- action AddNpcText( 6 , "but that doesnt make you a pirate, in fact");
- action AddNpcChat( 6 , "you will never become one.. Har Har Har");
- action AddNpcInput( 6 , 1 , "I know about a treasure..");
- action AddNpcInput( 6 , 2 , "Ill report you for software piracy.");
- action AddNpcInput( 6 , 3 , "Ok, I drink all this fairy soda myself.");
- rule InputNpc( 1 ) goto Anstreasure
- rule InputNpc( 2 ) goto Anssoft
- rule InputNpc( 3 ) goto Anssoda
- }
- State Anstreasure
- {
- desc "Talk to Pirate Captain again"
- action ShowHint("We hope he doesnt find out you dont know about a treasure.");
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- action AddNpcText( 6 , "Huh? err.. you mean the Legendary Monkey Island Treasure?" );
- action AddNpcInput( 6 , 1 , "Monkey Islad trea?");
- action AddNpcInput( 6 , 2 , "Ya, that treasure");
- rule InputNpc( 1 ) goto Piratetest
- rule InputNpc( 2 ) goto Piratetest
- }
- State Anssoft
- {
- desc "Talk to Pirate Captain again"
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- action AddNpcText( 6 , "What! Er.. I was kidding, cant you take a joke?" );
- action AddNpcChat( 6 , "Of course im going to let you take my brave pirate test" );
- action AddNpcInput( 6 , 1 , "Sure, pal");
- action AddNpcInput( 6 , 2 , "Im not good at math");
- rule InputNpc( 1 ) goto Piratetest
- rule InputNpc( 2 ) goto Piratetest
- }
- State Anssoda
- {
- desc "Talk to Pirate Captain again"
- action ShowHint("Cheers!");
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- action AddNpcText( 6 , "Huh? You said.. fairy soda?" );
- action AddNpcChat( 6 , "Allright maybe youre a good pirate after all" );
- action AddNpcInput( 6 , 1 , "He, lets drink matey!");
- action AddNpcInput( 6 , 2 , "Tell me about the test..");
- rule InputNpc( 1 ) goto Piratetest
- rule InputNpc( 2 ) goto Piratetest
- }
- State Piratetest
- {
- desc "Talk with Pirate Captain"
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- action AddNpcText( 6 , "Oh well, lets begin the test then.. this is really easy" );
- action AddNpcText( 6 , "at least for us, the real pirates, Har Har Har" );
- action AddNpcInput( 6 , 1 , "I want to prove my fighting skills");
- action AddNpcInput( 6 , 2 , "Lets go treasure hunting!");
- action AddNpcInput( 6 , 2 , "Im good at getting information");
- rule InputNpc( 1 ) goto Fightquest
- rule InputNpc( 2 ) goto Nottreasure
- rule InputNpc( 3 ) goto Infoquest
- }
- State Nottreasure
- {
- desc "Talk to Pirate Captain"
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- action AddNpcText( 6 , "Dont be silly, you cant go treasure hunting without proving your strenght and abilities" );
- action AddNpcInput( 6 , 1 , "Ill show you im strong!");
- action AddNpcInput( 6 , 2 , "Im the best pirate of the world!");
- rule InputNpc( 1 ) goto Fightquest
- rule InputNpc( 2 ) goto Infoquest
- }
- State Fightquest
- {
- desc "Defeat the octupos"
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- action AddNpcText( 6 , "Ok then..You have to find a giant octopus and defeat him." );
- action AddNpcText( 6 , "Good luck killing that giant octopus, har har" );
- action AddNpcInput( 6 , 1 , "Isnt there another way to prove it?");
- action AddNpcInput( 6 , 2 , "Okay, i got it.");
- rule KilledNpcs( 118 , 1 ) goto NextTest
- rule InputNpc( 1 ) goto Infoquest
- }
- State Infoquest
- {
- desc "Go to Atlantis and find its secret"
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- action AddNpcText( 6 , "Listen, the legend about the monkey island claims that a long time ago, when villagers from Atlantis became aware.." );
- action AddNpcText( 6 , "that their city was going to sink, and they burried some of their major treasures at monkey island." );
- action AddNpcText( 6 , "Maybe they wrote something about it somewhere." );
- action AddNpcText( 6 , "Good luck finding the secret of atlantis." );
- action AddNpcInput( 6 , 1 , "Isnt there another way to prove it?");
- action AddNpcInput( 6 , 2 , "Okay, i got it.");
- rule EnterCoord( 251 , 8 , 33) goto NextTest
- rule InputNpc( 1 ) goto Fightquest
- }
- State NextTest
- {
- desc "Talk to pirate captain"
- action PlaySound(18);
- action ShowHint("The pirate captain wants to talk to you!");
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- action AddNpcText( 6 , "Looks like you have some skills son! too bad you are not a real pirate yet.." );
- action AddNpcText( 6 , "Look these rats in the port are really a problem. At night they make a terrible noise and i just cant sleep, uhrr" );
- rule TalkedToNpc( 6 ) goto RatTest
- }
- State RatTest
- {
- desc "Kill 30 rats in aevens port"
- action AddNpcText( 21 , "Nawh, i will only share this pirate secret with REAL PIRATES." );
- action AddNpcText( 6 , "Go kill 30 rats for me, and you will be a real pirate.. whatever" );
- rule KilledNpcs( 2 , 30 ) goto RatTest2
- }
- State RatTest2
- {
- desc "Talk to the young pirate"
- action AddNpcText( 6 , "Hmm.. ow its you, yaya your a real pirate now, now leave me alone." );
- action AddNpcText( 21 , "Hmm so the captain has declared you a real pirate, i cant believe it.." );
- action AddNpcText( 21 , "But ok if you can answer this simple PIRATE test, i believe you." );
- rule TalkedToNpc( 21 ) goto Quiz1
- }
- State Quiz1
- {
- desc "Talk to the young pirate"
- action AddNpcText( 21 , "Whats the special \'nickname\' of our skull&bone flag?" );
- action AddNpcInput( 21 , 1 , "Jolly Roger");
- action AddNpcInput( 21 , 2 , "Dodger Deadly");
- action AddNpcInput( 21 , 3 , "Black Skull");
- rule InputNpc( 1 ) goto Quiz2
- rule InputNpc( 2 ) goto QuizLose1
- rule InputNpc( 3 ) goto QuizLose1
- }
- State Quiz2
- {
- desc "Talk to the young pirate"
- action AddNpcText( 21 , "Pirates always share their looted treasures equally, except for captain, the pilot, the carpenter and our cook." );
- action AddNpcText( 21 , "How much more do they receive?");
- action AddNpcInput( 21 , 1 , "half of the entire treasure");
- action AddNpcInput( 21 , 2 , "a double share");
- action AddNpcInput( 21 , 3 , "a tripple share");
- rule InputNpc( 1 ) goto QuizLose2
- rule InputNpc( 2 ) goto Quiz3
- rule InputNpc( 3 ) goto QuizLose2
- }
- State Quiz3
- {
- desc "Talk to the young pirate"
- action AddNpcText( 21 , "Is the captain’s cabin always open for anyone to use?" );
- action AddNpcText( 21 , "How much more do they receive?");
- action AddNpcInput( 21 , 1 , "Yes, always open");
- action AddNpcInput( 21 , 2 , "No, its private");
- rule InputNpc( 1 ) goto ReadyToGo
- rule InputNpc( 2 ) goto QuizLose3
- }
- State ReadyToGo
- {
- desc "Talk to the young pirate"
- action AddNpcText( 21 , "Hmm.. okay you proved to be a pirate, maybe not.. Lets just sail to that island now. The captain doesnt beleive me and i been anxious to tell anyone ever since.." );
- action AddNpcText( 21 , "Do you want to sail to monkey island?" );
- action AddNpcInput( 21 , 1 , "Yes, let go");
- action AddNpcInput( 21 , 2 , "No, maybe later");
- rule InputNpc( 1 ) goto GoIsland
- }
- State GoIsland
- {
- desc "Find the shipwreck hut"
- action SetCoord( 271 ,25 , 54 );
- // escape sequence
- action AddNpcText( 21 , "Do you want to sail to monkey island?" );
- action AddNpcInput( 21 , 1 , "Yes let go");
- action AddNpcInput( 21 , 2 , "No, maybe later");
- // lost pirate
- action AddNpcText( 22 , "A treasure huh?.. Ya , i been looking for it for years.." );
- rule TalkedToNpc( 22 ) goto SolveRiddle
- // continue quest part
- rule InputNpc( 1 ) goto GoIsland
- }
- State SolveRiddle
- {
- desc "Find 10 fish for the lost pirate"
- action AddNpcText( 21 , "Do you want to sail to monkey island?" );
- action AddNpcInput( 21 , 2 , "No maybe later");
- action AddNpcInput(21, 1, "");
- action AddNpcText( 22 , "Sorry i cant tell you more about the reasure, you see.. i havent ate anything since weeks.." );
- action AddNpcText( 22 , "Now if you could bring me 10 fish, i would be willing to share this secret.." );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement