*Update* Mini Fantasy

By supergeo on Aug 27, 2005

I have taken Poison's snippet "Mini Fantasy Game" and corrected and added some things. I think this will be much easier on the eye.

What I did: I created more weapons for the final scenario and I corrected spelling.

This was a lot of code so it took me a couple of hours to do this all by hand! Basically this is just a cleaner version of it with some additional turnouts.

I know people wanted the spelling corrections done, so I did them.

on @*:Text:!set game*:#:{
  msg $chan $nick Has Set The Game $3 
  if ($3 == on) set %game on 
  if ($3 == off) unset %game | unset %limit | unset %stage* 
}
on *:Text:!level_1:#:{
  if (%game == on) && (%limit == on) { msg $nick Someone is already playing the fantasy game. Please wait! | halt } 
  set %stage1 on
  timer 1 1 msg $chan You have started on Level 1.
  timer 1 1 msg $chan The choices you make will ultimately choose your fate. So I suggest you pick wisely.
  timer 1 2 { msg $chan You start on your journey through the mountains to save the village from the yeti.You go into a cave and meet a dangerous Eskimo
              msg $chan [Option 1: Fight the Eskimo. Type !fight_eskimo to choose this path.]
              msg $chan [Option 2: Run away. Type !run_away to choose this path.]
  }
  set %limit on 
}
on *:TEXT:!fight_eskimo:#: {
  if (%stage1 == on) {
    set %stage2 on
    set %details $rand(1,3)
    if (%details == 1) { msg $chan You Pull out your sword and charge after the Eskimo. You slice off the Eskimo's head. You go further into the cave and meet a huge bear. You run as fast as You can and just make it out. }
                         msg $chan You climb higher on the mountains and meet a Yeti feasting on an Eskimo. 
                         msg $chan [Option 1: Fight the yeti. Type !fight_yeti to choose this path.]
                         msg $chan [Option 2: Climb higher up the mountain. Type !climb to choose this path.]
    }
    if (%details == 2) { msg $chan The Eskimo runs at you. The Eskimo misses and lands in a pile of spikes in the corner of the cave. You go out of the cave knowing it's dangerous and come across a yeti.
                         msg $chan [Option 1: Fight the yeti. Type !fight_yeti to choose this path.]
                         msg $chan [Option 2: Climb higher up the mountain. Type !climb to choose this path.] 
    }

    if (%details == 3) { msg $chan The Eskimo is a warrior and makes a couple of moves sending you on the floor. He then grabs a spike and shoves it in your back. He then eats you for breakfast. YOU LOSE! 
    }
   }

on *:Text:!run_away:#: {
  if (%stage1 == on) {
    set %stage2 on
    msg $chan You make it out safely and climb higher onto the mountain and meet a yeti.
    msg $chan [Option 1: Fight the yeti. Type !fight_yeti to choose this path.]
    mag $chan [Option 2: Climb higher up the mountain. Type !climb to choose this path.]                                 
  }
}
on *:Text:!Fight_yeti:#: {
  if (%stage2 == on) {
    set %stage3 on
    set %seconddetails $rand(1,2)
    if (%seconddetails == 1) { msg $chan You attempt to fight the yeti. The yeti is strong and overpowers you. You go flying to the floor.The yeti approaches you. He begins to jumb onto you. You put a knife on your stomach and the yeti lands on it and dies. Then a man asks you for a fight.
                               msg $chan Type !fight_man to continue. 
    }
    if (%seconddetails == 2) { msg $chan The yeti charges at you full blast and you slide down the mountain onto the floor, breaking 15 bones in your body. You lay there, unable to move, and die of starvation. YOU LOSE! }
  }
}
on *:Text:!climb:#: {
  if (%stage2 == on) {
    set %stage3 on
    msg $chan You try to climb higher but the yeti grabs Your legs and chucks you all the way down the mountain killing you. YOU LOSE!
  }
}
on *:Text:!fight_man:#: {
  if (%stage3 == on) {
    set %stage4 on
    set %thirddetails $rand(1,2) 
    if (%thirddetails == 1) { msg $chan You face the man.He grins. You launch the 1st attack and you end up on the floor. The man then attacks while you're on the floor. You go skidding across the ice. You then get up and charge at him. The man just laughs. You pull out your sword and now the man looks worried. You slice his chest open. The man falls to his knees and dies! }
    if (%thirddetails == 1) { msg $chan You go to the old village where the villagers congradgulate You on your victory. $nick type !proceed_level_2 to go to level 2! }
    if (%thirddetails == 2) { msg $chan The man is strong and jumps high into the air and pulls out his sword. Without you even movin he slices you down the middle. YOU LOSE! ( This was the last part of level 1! ) }
  }
}
on *:Text:!proceed_level_2:#: {
  if (%stage4 == on) {
    set %stage5 on
    msg $chan [ Level 2 ] You are in a desert looking for a magical tree that will save the village from an EVIL curse. Collect the juice off the tree to save the village! 
    msg $chan You are walking through the desert and come across a pile of spiders on the floor. They are venomous and want to attack you!  
    msg $chan [Option 1: Tred on them and hope that you don't get bitten. Type !tred_spiders to choose this path.]
    msg $chan [Option 2: Turn left and walk away. Type !turn_left to choose this path.]
  }
}
on *:Text:!help:#: {
  msg $nick Type !level_1 to start 
  msg $nick You Have to use commands and complete the levels 
}
on *:Text:!tred_spiders:#: { 
  if (%stage4 == on) {
  set %stage5 on
  msg $chan You furiously tred on the spiders killing hundreds. Then 1 goes up ur trousers and bites u on the leg.You fall to the floor and the spiders all feast on your left over body. YOU LOSE! 
}
}
on *:Text:!turn_left:#: {
  if (%stage4 == on) {
    set %stage5  on
    set %fourthdetails $rand(1,2)
    if (%fourthdetails == 1) { msg $chan You turn left and survive the spiders as they ignore you. You come across a solid building with a door with the code: " [ ~ _ ~ & ** ~ _ ] ". Complete the next bit of the pattern by typing !<next symbol> }
    if (%fourthdetails == 2) { msg $chan You turn left but the spiders won't let you go. They chase you through the sand. You trip onto the floor the spiders feast on you. YOU LOSE! }
  }
}
on *:Text:!~:#: {
  if (%stage5 == on) {
    set %stage6 on  
    msg $chan The door clicks Open and you walk inside. You stare in amazment. There's the the magical tree! You walk closer to the tree. You hear a clicking noise. YOU HAVE STEPPED ON A TRAP! You swiftly move out of the way. 
    msg $chan [Option 1: Proceed to the tree. Type !proceed_magical_tree to choose this path.]
    msg $chan [Option 2: Wait a moment. Type !wait_moment to choose this path.]
  }
}
on *:Text:!wait_moment:#: {
  if (%stage5 == on) {
    set %stage6 on  
    msg $chan You wait a moment looking at the tree. Suddenly, a massive log comes swooping across the tree, which would have killed you if you hadn't waited! Then you proceed to the tree grab the juice off the tree and head out of the door.You stop because the door is locked! Then you put your hand on the door wondering. The door clicks open and you walk out.
    msg $chan There are lots of huge spiders outside. Then the juice glistens from the sun, killing the spiders.You go to the village to see the villagers who are thank ful of the juice u have provided them with! Type !proceed_level_3 to go onto level 3. 
  }
}
on *:Text:!proceed_magical_tree:#: {
  if (%stage5 == on) {
    set %stage6 on  
    msg $chan You walk over to the magical tree and a huge log comes flying across crushing you into the wall. You die instandly. YOU LOSE! (This was the last part of level 2!)
  }
}
on *:Text:!proceed_level_3:#: {
  if (%stage6 == on) {
    set %stage7 on
    msg $chan Today the villagers are being threatened by the EVIL Darklord king in the castle of Mt. Doom.
    msg $chan You are walking up Mt. Doom into the castle where 2 zombie guards await. This time you brought along a sharp sword! You fight the 2 zombie guards.
    msg $chan You slash the first 1 in the head. His head comes off and he falls to the floor. The other zombie is mad and tries attacking you but you move just in time. He lands out of the door and you shut the castle door.
    msg $chan [Option 1: Proceed into the castle. Type !proceed_into_castle to choose this path.]
    msg $chan [Option 2: Climb the latter. Type !climb_ladder to choose this path.]
  }
}
on *:Text:!climb_ladder:#: {
  if (%stage7 == on) {
    set %stage8 on
    set %fifthdetails $rand(1,2) 
    if (%fifthdetails == 1) { msg $chan You climb Up the ladder and see a zombie Lion. Type !fight_lion to fight the lion or !run_away to run away. }
    if (%fifthdetails == 2) { msg $chan You climb up the ladder and a lion jumps on you. You fall down the ladder and break your legs, then the zombie guard comes through the door and slices you in half! YOU LOSE! }
  }
}
on *:Text:!proceed_into_castle:#: {
  if (%stage7 == on) {
    set %stage8 == on
    msg # You proceed into the castle, and the zombie comes through the door and pulls a lever making you fall into a pile of spikes! YOU LOSE!
  }
}
on *:Text:!fight_lion:#: {
  if (%stage7 == on) {
    set %stage9 on
    timer 1 1 msg $chan You pull out Your sharp sword and jump into the air and cut through the lion's head. It moulds back together! The lion growls and you jump down the ladder. You run onto a stone which triggers a pile of spikes which the lions falls into!
    timer 1 3 msg $chan You walk further into the castle and you come across a lever. Do you Pull(!pull_lever) it or leave it alone(!leave_lever)? 
  }
}
on *:Text:!run_from_lion:#: {
  if (%stage7 == on) {
    set %stage9 on
    msg $chan You run away from the lion but the lion chases you. You run as fast as you can and step on a stone which triggers a trap and you fall in a pile of spikes! YOU LOSE! 
  }
}
on *:Text:!pull_lever:#: {
  if (%stage9 == on) {
    set %stage10 on
    msg $chan You pull the lever Which releases two GIANT Ogre Zombies. Before you could pull your sword out they had already crushed and killed you. YOU LOSE!
  }
}
on *:Text:!leave_lever:#: {
  if (%stage9 == on) {
    set %stage10 on  
    msg $chan You leave the lever alone and carry on into the castle. You go into the GIANT door where a MASSIVE giant zombie warrior sits. THE KING! 
    msg $chan The King SHOUTS " WHO DARES ENTER THE EVIL DARKLORD'S ROOM ????!!!!" You reply: "I have come to fight you!" Type !fight_darklord to continue.
  }
}
on *:Text:!fight_darklord:#: {
  if (%stage10 == on) {
    msg $chan The Evil Darklord says,"You may choose your weapon. I will use my strength and my fists." Type !weapons to see the weapons list. 
  }
}
on *:Text:!weapons:#: {
  if (%stage10 == on) {
    timer 1 1 notice $nick 4,1There's:
    timer 1 2 notice $nick 4,1Lasergun
    timer 1 3 notice $nick 4,1Shotgun
    timer 1 4 notice $nick 4,1Daggers
    timer 1 5 notice $nick 4,1Excaliber
    timer 1 6 notice $nick 4,1Mace
    timer 1 7 notice $nick 4,1Billy Club
    timer 1 8 notice $nick 4,1Rifle
    timer 1 9 notice $nick 4,1Fists
    timer 1 10 notice $nick 4,1Axe
    timer 1 11 notice $nick 4,1Sword
    timer 1 12 notice $nick 4,1Sling Shot
    timer 1 13 notice $nick 4,1Tazer
    timer 1 14 notice $nick 4,1Lead Pipe
    timer 1 9 notice $nick 4,1Type !fight <weapon> to use the weapon.
  }
}
on *:TEXT:!fight*:#: {
  if (%stage10 == on) {
   msg $chan You have chosen The weapon: $2-

   if ($2 == Lasergun) { msg $chan You prepare to fight. The Darklord winds up for a punch. You fire your laser at him. You miss by inches. He punches you in the face, breaking your neck. You die. YOU LOSE! }
   if ($2 == Shotgun) { msg $chan You are about to fire a shot when the Darklord grabs hold of the barrel and turns it around to face it at you. You struggle for several minutes to keep the barrel aimed away from you. The Darklord, who knows no boundries, kicks you in the place where the sun doesn't shine.
                        msg $chan You keel over, and he gets the shotgun at you. He then procedes to blow your head off. You die instantly. YOU LOSE! }
   if ($2 == Daggers) { msg $chan You try to cut into the Darklord, but you can't get close enough. You go for the all or nothing, and he gets you in a neck-hold, where he cuts off your air supply and kills you. YOU LOSE! }
   if ($2 == Excaliber) { msg $chan The Darklord charges at you and runs you into the ground. He punches you over and over. He's about to finish you off by breaking your neck when you take out your excaliber and slice his leg off. As he screams in agony, you watch him suffer. Finally, when you've had enough of his screaming, you slit his throat, thus killing him. Congradulations! You have defeated the darklord! You made all of the right decisions, and now you are the ruler of the world! YOU WIN! }
   if ($2 == Mace) { msg $chan You spray mace into the Darklord's eyes. He grabs his eyes, acting like they are burning. When you go to finish him off, he surprises you by grabing your throat. He cuts off your air supply and you die. YOU LOSE! }
   if ($2 == Billy) { msg $chan You beat the DarkLord with the Billy Club until he stops moving. But you don't check his pulse, and when you turn around to leave, he grabs you from behind and beats you to death with his fists. YOU LOSE! }
   if ($2 == Rifle) { msg $chan You take a shot at The DarkLord with your rifle, but it's jammed, and you now have no weapons. He comes up to you and beats you to death. YOU LOSE! }
   if ($2 == Fists) { msg $chan You start punching at the DarkLord, but you are no match for his fighting skills. He quickly beats you until you can't move, and puts his foot on your throat and pushes down until you can't breath anymore and die. YOU LOSE! }
   if ($2 == Axe) { msg $chan The axe is too heavy of a weapon, and takes too long to pull back. When you try a chop at him, he quickly gives you a kick to the ribs. More kicks and hits follow, and the DarkLord finishes you by ramming your head into a concrete wall. YOU LOSE! }
   if ($2 == Sword) { msg $chan You take a huge swing at The Dark Lord with your sword, and he ducks under it. You don't have enough time to recover from the follow-through, and the Dark Lord beats you to a pulp. You die. YOU LOSE! }
   if ($2 == Sling) { msg $chan You hit The Dark Lord with a rock fired from your slingshot. This freezes him long enough for you to get the sling shot around his neck and choke him to death.  Congradulations! You have defeated the darklord! You made all of the right decisions, and now you are the ruler of the world! YOU WIN! }
   if ($2 == Tazer) { msg $chan You fire your tazer at the Dark Lord, but it will only shoot 20 feet. You misjudge the distance, and the prongs fall short. That was your only shot. He proceeds to kill you in a fist fight. YOU LOSE! }
   if ($2 == Lead) { msg $chan You swing the pipe at the Dark Lord. He catches it and uses it to push you into a wall, crushing and killing you. YOU LOSE! }
   }
 }

Comments

Sign in to comment.
supergeo   -  Dec 22, 2005

you missed the \"}\", closing bracket, at the end of the lasergun \'if.\' add one there and remove one at the end, and the script is finished...

That one\'s done too. Sorry I missed those, I just assumed since I was working off a predone code it was fine, and I probably started typing in between the lasergun thing and the and, so there\'s an extra brackett at the end.

 Respond  
supergeo   -  Dec 22, 2005

you missed the \"n\" after the \"o\", that is why stage 7 doesnt work.

I also just fixed this one, thanks :)

 Respond  
supergeo   -  Dec 22, 2005

ermm actualy your command is wrong it should be on *:Text:!~:#: {
also !proceed_into_castle and !climb_ladder triggers do not work

I fixed this. Thanks!

 Respond  
brottor   -  Nov 08, 2005

and, the final fix:
\"on :TEXT:!fight:#: {
if (%stage10 == on) {
msg $chan You have chosen The weapon: $2-

if ($2 == Lasergun) { msg $chan You prepare to fight. The Darklord winds up for a punch. You fire your laser at him. You miss by inches. He punches you in the face, breaking your neck. You die. YOU LOSE!
if ($2 == Shotgun) { msg $chan You are about to fire a shot when the \"
you missed the \"}\", closing bracket, at the end of the lasergun \'if.\' add one there and remove one at the end, and the script is finished... supergeo check your scrips before posting them.

 Respond  
brottor   -  Nov 08, 2005

\"on *:Text:!proceed_level_3:#: {
if (%stage6 == on) {
set %stage7 o\"

you missed the \"n\" after the \"o\", that is why stage 7 doesnt work.

 Respond  
WDragon   -  Nov 01, 2005

on *:Text!~:#: {
if (%stage5 == on) {

You type !~ for the last symbol. It should work.

ermm actualy your command is wrong it should be on *:Text:!~:#: {
also !proceed_into_castle and !climb_ladder triggers do not work

 Respond  
|CE|Genji   -  Sep 07, 2005

Erk, I can\'t seem to beat level one after i set it, i see the bigging mess and i type !climb the i see the yeti as my only choice (so i fight and die) then if I use 2 i kill the eskimo go into a cave and come out running form a bear, I then see another yeti and i fight/die or !climb and die -.-

 Respond  
supergeo   -  Aug 31, 2005

on *:Text!~:#: {
if (%stage5 == on) {

You type !~ for the last symbol. It should work.

 Respond  
Lord Kiam   -  Aug 31, 2005

well u have a spelling mistake in their just to let u know :P

if (%fourthdetails == 2) { msg $chan You turn left but the spiders won\'t let you go. They chase you through the sand. You trip onto the floor the spiders feast on you. YOU LSOSE! }

ya spelt loose wrong :P and read the pm :)

 Respond  
supergeo   -  Aug 30, 2005

Fixed.

 Respond  
Yoinx   -  Aug 29, 2005

Test Comment, I think the last 10 comments section is miscount the 10.

 Respond  
Yoinx   -  Aug 29, 2005

You know, clicking the brackets button in the scripts editor will tell you if you have a mismatch, and you can scroll down looking for a missing bracket (or extra).

 Respond  
xDaeMoN   -  Aug 29, 2005

In your !fight command, you forgot to put a closing bracket in the \"Daggers\" option.

 Respond  
supergeo   -  Aug 29, 2005

Fixed. Thanks. I just uupdated some things, and figured there wouldn\'t be any errors. I fixed it!

 Respond  
supergeo   -  Aug 28, 2005

oops bumped the enter button. As I was saying, it was getting really long and hard to edit, so I started it on another line. I\'ll delete it though if it\'s causing problems in the mIRC editor.

 Respond  
supergeo   -  Aug 28, 2005

@ Death I made this in notepad, and I

 Respond  
supergeo   -  Aug 28, 2005

Well, it is a random thing, anthalus. What happens to you is sometimes random. I think you\'re talking about the end thing where you win or lose based on your weapon of choice? I might make more outcomes for it, and make it random. Maybe I could do that for the next version.

 Respond  
anthalus   -  Aug 27, 2005

Hmmmm one thing I would change, would be for the win/lose to be more of a random thing. Like
var %x = $rand(1,100)
if ( %x > 20 ) { return You Lose }
else { return You Win }

 Respond  
DeathRyder082   -  Aug 27, 2005

watch him suffer. Finally, when you\'ve
msg $chan had
looks like an error, otherwise great job.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.