580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
|
# File 'lib/GameGrid.rb', line 580
def play
if ($tutorialcomp!=true) then; return "Please complete the tutorial by typing tutorial and hitting enter, before you start the game. To start the tutorial, type 'tutorial' and hit the enter/return key."; end;
if ($sector==-1)
puts "Welcome, to the Developer Plugin Test sector, referred to as Sector -1. Use this sector to access loaded plugins, easily. DO NOT use Sector 0, for any uses, unless you are an administrator of GameGrid. Thank you. The loaded plugin is processing... When done loading, your most recently installed plugin will activate...\n\n"
eval($loadedplugin)
end
if ($dimension==1) then
if ($sector==1) then
puts "Hello, and welcome to GameGrid! We see you've completed the tutorial nicely, so we're letting you into Dimension I (or D1). The first dimension, is a new world to you. It's exactly where you'll begin your search for The Royal Eyes. They are your token to achieving a huge advantage, and unlocking Dimension II (D2). There are a few new variables you should master: $dimension, shows your current dimension,, $sector, shows your current sector. You don't really need a tutorial to practice those, so we're movin' on!\n\n"
puts "It looks like you're feeling thirsty. You see a water fountain, next to a stone wall. There's a guard, protecting that fountain. He's on Zuki (the villain)'s army. It's best to battle him, and go to that fountain. Let's do this. Come on, "+ENV['USER']+"!"
$loc.x=1; $loc.y=1;
$battle = {
'target'=>:knee,
'opponent'=>{'name'=>:guard,
'lives'=>4,
'energy'=>75,
'active'=>true,
'weapon'=>:stone_sword,
'weakpoint'=>:face},
'type'=>:close_combat
}
puts "\n\n Okay, we need to slowly approach him from the sides. When you do an attack while you weren't noticed, it has slightly greater effects. So make sure to walk, only up to 2 steps at a time, or else, he'll hear us. The guard stands at 4,2. Let's get him! But go slow. Remember how to walk? Start walking!"
while($loc.x!=4||$loc.y!=2)
command=gets; eval(command);
break if $loc.x==4&&$loc.y==2
end
if ($loc.x==4&&$loc.y==2)
puts "Good! Now let's punch him with our fists. He has 4 lives, 75 energy, and a stone sword. Just telling you, his weak point is his face. Remember how to use the attack command? Go for it!"
command=gets; eval command
if $battle['opponent']['lives']<3 then
puts "He lost "+(4-$battle['opponent']['lives']).to_s+" lives! He immediately ell to the ground, bruised by your punch. But he's still undefeated! We better get him back, again. Start the attack!"
command=gets; eval command;
if $battle['opponent']['lives']<1 then
puts "Awesome! He's defeated, and we can stock up on water! Right now, you have 80 energy. But let's take a drink! *gulp* *gulp* You now have 100 energy. Cool! Let's move on to Sector 2."
$sector=2;
puts "Welcome to Sector 2, of the first dimension."
end
end
end
end
if ($sector==2) then
puts "Hello! You're currently in Sector 2, of Dimension 1. That grey, metallic factory over there pumps white magic, a special kind of magical substanced used to heal, or restore. But sadly, th factory owner sold it to the horrible Zuki. He plans to use white magic, to make himself invincible! You better put a stop sign to this business. When you go in, there'll be 3 guards waiting to kill you. These are not normal guards. When they want to attack, they float in the air, and twist and combine into one huge, one-eyed snake with all their power combined! The only way to defeat them, is to use a better weapon. Here, is a stone ax. It's not very powerful, but it's certainly better than your fists! Now go beat the juice outta them!"
$weapon= :stone_ax;
puts "type 'enter' to enter the factory"; ifenteredfac=false;
entered=gets; if (entered.index("e")!=nil) then; ifenteredfac=true; end;
if (ifenteredfac==true) then
puts "*you enter through the door*\n\n You see 3 men.\n\nBOOOM!!! The 3 men fly up in the air, and merge into a one-eyed, huge snake. It's killing time. Remember, think logically. You're battling a gigantic snake with one eye. What would be it's weakpoint? Engage the attack! Use the attack command. Remember, think logically. The snake can regenerate itself. But if you think logically, and hit it's weakpoint, it'll immediately collapse. Go!"
command=gets;
notquite= "Good hit! But the snake immediately regenerated it's health! Remember, think logically. What would be a huge, merged, one-eyed snake's weakpoint? Keep attacking!"
while(command.index(":eye")==nil)
puts "Good hit! But the snake immediately regenerated it's health! Remember, think logically. What would be a huge, merged, one-eyed snake's weakpoint? Keep attacking!"
command=gets
if (command.index(":eye")!=nil) then; break; end;
end
if (command.index(":eye")!=nil) then
puts "Awesome! Good job, thinking logically. The snake's eye gradually closed, and the snake burnt to ashes. Now, we need to stop this factory. Let's attack that circuit board, over there. Type attack(:circuitboard) to do so!"; facdestroyedd=false;
command=gets; if command.index(":circuitboard")!=nil then; facdestroyedd=true; else; puts "Oh no! You mistyped! The computer broke down. Type play to restart Sector 2, and use the answers you know to get back, and oh, remember to type correctly! :D"; end;
if (facdestroyedd==true) then
puts "Way to go! The circuits exploded, and the factory closed down. I put some white magic in your pockets, just in case. We can now get to Sector 3. Good job!"
$sector=3;
end
end
end
end
if ($sector==3) then
$weapon=:stone_ax;
puts "Hello, and welcome to Sector 3. You are currently in a vast desert, it seems. But see that boulder over there? Behind that huge rock, is a 10-foot tall soldier. Many of our soldiers couldn't defeat such a large man. He's defense is very easy to overtake, but his attacks are powerful blows. First, let's get a better weapon. Look, over there! Someone seems to have forgotten their iron sword! Pick it up, using pickup(:iron_sword) command!"
command=gets; $weapon=:iron_sword if (command.index("pickup")!=nil&&command.index(":iron_sword")!=nil);
if ($weapon==:iron_sword) then
puts "Iron swords are much more powerful than stone axes. But more than attack power, we need defense. What about we use the white magic we stored? Here's a new command for you, called evoke. The evoke command activates the power of magic. For white magic, we call it like this: evoke(:whitemagic). This will help you in battle, when you only have 1 or 1/2 lives left. Let's take him by surprise at first. He's probably asleep right now. Go get him! Oh, and his weakpoint is his neck, as he fractured it very bad. But he's so tall, we can't even reach his neck! Wait, I have an idea! I'll teach you another evoke command: evoke(:greenmagic_levitate). It's long, but worth it. It'll raise your altitude! Use it now, to prepare:"; $altitude=10;
command=gets;
$altitude=15 if command.index("greenmagic_levitate")!=nil;
if ($altitude>14) then
$loc.x=6; $loc.y=2
puts "You're floating at altitude "+$altitude.to_s+"! Good, now let's get him well. He has 7 lives, and an iron sword, too. But don't worry, we'll defeat him. Use the evoke command on white magic to heal yourself. Let's do this! Let's creep up on him while he naps. Walk to 3,3, cause that's where he is. You are currently standing at 6,2. You need to walk to 3,3. Go! "
while($loc.x!=3||$loc.y!=3)
command=gets; eval(command);
break if $loc.x==3&&$loc.y==3
end
if ($loc.x==3&&$loc.y==3) then
$battle = {
'target'=>:knee,
'opponent'=>{'name'=>:soldier,
'lives'=>7,
'energy'=>75,
'active'=>false,
'weapon'=>:iron_sword,
'weakpoint'=>:neck},
'type'=>:close_combat
}
puts "Okay, good. So there he is. His sleeping pouch is like 15 feet long, so it can fit him! OK, first, let's sneak up a small attack on him. Remember, his weakpoint is his fractured neck. Go!"; $lives==5;
command=gets;
eval(command);
if $battle['opponent']['lives']<7 then
puts "YAWWWN! The giant soldier is waking up! Quick, get another hit on him!"
command=gets;
eval(command);
if $battle['opponent']['lives']<5 then
$lives-=3;
puts "URRRGH! The giant soldier is ready to attack! WHAP! Oh no, he whapped you in the face! His hits are VERY hard. You just lost 3 lives, and only have 2!!! Okay, you can either attack him back, or heal yourself magically, by evoking white magic. Go!"; command=gets; eval(command)
puts "Good! The opponent still stands strong. He gets his fists ready for another whapping! Quick, do something! Either, you can heal yourself, with white magic, or attack him! What do you choose? Do it!"; command=gets; eval(command)
if ($battle["opponent"]["lives"]<=0) then
puts "Boom! The soldier slid to the ground, as his eyes closed, and his movement decreased. We did it! Let's move up to Sector 4."; $sector=4; return "Let's have some fun, cause we just entered the 4th Sector! Type play to start the 4th Sector!"; end
puts "Good job! You have #{$lives} lives, and the opponent has #{$battle['opponent']['lives']} lives. But the battle hasn't finished yet! Let's go and show him what we can do! Cause we are-WHAP! HE whapped you AGAIN!"; $lives-=3;
checkdeads();
return "OWW! Oh, that's not good. You died! Those hits were hard. Wait just a sec, I'll fix up your bruises. WHOOSH! There you go, all nice and healthy! Now go get that fiant dude again! Type play to retry that battle! " if dead==true;
puts "Okay, even though you only have #{lives} lives, I know we can still overtake him. You can either heal or attack, but I reccommend attacking, as your opponent has only a few lives, left. Go!"
command=gets; eval(command)
if ($battle["opponent"]["lives"]<=0) then; $sector=4;
puts "Boom! The soldier slid to the ground, as his eyes closed, and his movement decreased. We did it! Let's move up to Sector 4."; return "Let's have some fun, cause we just entered the 4th Sector! Type play to advance to Sector 4!"
else
puts "Oh no! I see that the opponent is preparing a SUPERBLAST! We should have attacked those times, instead of healing! BOOOOM!!!!!!!"; $lives==0; checkdeads();
return "OWW! Oh, that's not good. You died! Those hits were hard. Wait just a sec, I'll fix up your bruises. WHOOSH! There you go, all nice and healthy! Now go get that giant dude again! Type play to retry that battle! Oh, and try not to keep attacking or keep healing all the time!" if $dead==true;
end
end
end
end
end
end
end
if ($sector==4) then
puts "You look tired, fromm battling all those badguys! So I registered you in Crafting Class, a class, where they teach you the art of crafting. Crafting is a fundamental way to create Tools out of Substances. Let's learn how to craft!\n\nOkay, first, crafting is 60% Logic, 25% Background Knowledge, and 15% Randomness. So you need to think of substances that, when combined, create the tool you are looking for. Today, we will build a rust sword, which is very similar to the iron sword, but has a bit more advantages. Technically, when crafting, nobody will help you, but today, I will assist you while crafting. Before skipping to the next paragraph, think of the core materials needed for the rust sword!\n\nOkay, so you might have thought of rust, and cotton which is used to make the part where you hold the sword. These are still not correct! When crafting, we need to keep breaking down the substances as much as possible. So we break down rust, into...... iron and water! So iron, water, and cotton make the rust sword! But, we need to structure this out, so we don't end up crafting a rusty nail in a cotton bag! How do we do that? By using formations! Formations are the key structure behind your tool. The formation of a rust sword, would be the 'sword' formation. In the next paragraph, we'll get into the method of crafting.\n\nTo craft, you use the combine and craft commands. First, we need to combine all 3 fundamental elements. Type combine(:water, :iron, :cotton) in any order:\n\n"
command=gets; eval(command)
if (command.index(":water")!=nil&&command.index(":iron")!=nil&&command.index(":cotton")!=nil&&command.index("combine")!=nil) then
puts "\n\nDid you see that weird stuff it gave off? Looks weird, but it is key to crafting. So copy that stuff above (select it with cursor, then CTRL+C or COMMAND+C) for crafting's sake. Now, lets actually craft it! Remember, the formation is :sword. So start typing craft(:sword, and then stop typing. Now paste all that weird stuff you just copied (CTRL+V or COMMAND+V). After pasting, type an ending bracket ) to finish it off. Hit enter, to see if it worked!"
command=gets; eval(command)
if (command.index('material')!=nil) then
puts "Congrats! You crafted your first sword. I'll let you keep that rust sword for future battles. Let's go to Sector 5!\n\n"; sector=5;
else; puts "Oh no, that's not correct. Command play to try again."; end;
end
end
if ($sector==5) then
puts "Hi, and welcome to the 5th Sector. See that man over there, surrounded by bodyguards, soldiers, and a 15-people army? That's Yuni, Zuki's close brother. Yuni is very greedy, and is very talented at the art of trickery and technology. He guards the tunnel into the 2nd Dimension, where Zuki resides. We need to get through him. And a battle is waiting to happen. But don't think about swords and axes. His duels are in knowledge, because he has something called Bing, which lets him find answers to all questions. He'll ask a question, you'll need to type the answer. If you answer all 3 questions correct, he will let you pass into the portal. But don't worry, cause you have something called Google, at your side. Open www.google.com and search for answers. 1 question is also multiple choice, and you must type the letter of your answer. Get Google ready! Type anything and press enter to begin."
typeanything=gets; yqn=1; wrongsentence="Yuni:' THAT'S WRONG! HA! HA! ' What a mean guy. Just type play and hit enter, to retry."
if (yqn==1) then
puts "Yuni: What is the meaning of 'endemic'? Type the letter of your answer:"
puts "\n\n[a]: characteristic of or prevalent in a particular field, area, or environment"
puts "\n[b]:a virus like the flu, which gets passed around easily"
puts "\n[c]:a local population of organisms of the same kind, especially one in which the genetic mix is similar throughout the group"
answer=gets.chomp.to_s;
yqn=2 if answer=="a";
return wrongsentence if answer!="a";
end
if (yqn==2) then
puts "\n\nYuni: What is a group of kangaroos called?"
answer=gets.chomp.to_s;
yqn=3 if answer=="mob"||answer=="herd"||answer=="troop";
return wrongsentence if answer!="mob"&&answer!="herd"&&answer&&"troop";
end
if (yqn==3) then
puts "\n\nYuni: What is the popular video sharing website, based and founded in November 2004?";
answer=gets.chomp.to_s;
yqn=4 if answer.index("vimeo")!=nil||answer.index("Vimeo")!=nil;
return wrongsentence if answer.index("vimeo")==nil&&answer.index("Vimeo")==nil;
end
if (yqn==4) then
puts "\n\n\nYuni: Arrrgh. You got throught me this time. **steps aside**\n\n"+scrape_username+", there's your portal to Dimension 2!! Let's hop in! WHOOOOOSH\n\n"; $dimension=2; $sector=1;
end
end
end
if ($dimension==2) then
if ($sector==1) then
puts "\nWelcome to Dimension 2. Although, you won't really feel welcome, cause I can summarize my thoughts like this: What a vast, dangerous garbage dump. It's like an entire world-wide landfill, set on fire! Dimension 2 is not where you'd want to be. But we're here, because the Zuki army lies in here, and we're here to defeat them. So we practically have no real choice. Oh well. We're currently a bit far from the area in which Zuki and his army resides in. And right now, it's raining lava. Good thing is, we're under our umbrella. But the umbrella's cracking! We need to craft a metallic umbrella! Go and craft an metal umbrella. Umbrella handles are made out of plastic, and the top must be iron and steel. Go craft, before we walk in a magma shower! Start combining elements, first: "
command=gets; eval command;
puts "Now copy what you got above, and craft it now, with the umbrella formation:"
command=gets; eval command;
if (command.index("id")!=nil&&command.index("umbrella")!=nil) then
puts "Whew, good! That was easy. Let's go to Sector 2!\n\n"; $sector=2;
end
end
if ($sector==2) then
puts "\n\nYou thought Dimension 2 was easy, cause Sector 1 was. But no, Dimension 2 is the opposite of heaven. Welcome to Sector 2 of the 2nd Dimension, although it's unwelcoming."
end
end
end
|