ChatScape
ChatScape's Official Chat Forum.
HomePortalGalleryCalendarFAQSearchRegisterLog in
Post new topic   Reply to topic
 

Thy Dungeonman - Text Adventure: Doesn't work.

View previous topic View next topic Go down 
AuthorMessage
Shaimus




Joined : 12 Jul 2008
Posts : 10

PostSubject: Thy Dungeonman - Text Adventure: Doesn't work.   Thu Jul 17, 2008 5:43 pm

I decided to convert the flash "Thy Dungeonman" found on www.homestarrunner.com to mIRC. Obviously, I'm having a few problems.

Code:

on *:text:!dungeonman:?: {
  msg $nick YOU ARE THY DUNGEONMAN!
  msg $nick Ye find yeself in yon dungeon. Ye see a SCROLL. Behind ye scroll is a FLASK. Obvious exits are NORTH, SOUTH and DENNIS.
  set %help Main Dungeon Room
  set %room Main Dungeon Room
}
on *:text:HELP:?: {
  if (%help == Main Dungeon Room) { msg $nick Ye find yeself in yon dungeon. Ye see a SCROLL. Behind ye scroll is a FLASK. Obvious exits are NORTH, SOUTH and DENNIS. }
}
on *:text:LOOK:?: {
  if (%room == Main Dungeon Room) {
    if ($2 == scroll) { msg $nick Parchment, definitely parchment. I'd recognize it anywhere. | halt }
    if ($2 == flask) { msg $nick Looks like you could quaff some serious mead out of that thing. | halt }
    else { msg $nick It looketh pretty awesome. | halt }
  }
}
on *:text:GET:?: {
  if ($2 == dagger) { msg $nick Yeah, okay. | halt }
  if (%room == Main Dungeon Room) {
    if ($2 == scroll) { msg $nick Ye takes the scroll and reads of it. It doth say: BEWARE, READER OF THE SCROLL, DANGER AWAITS TO THE- The SCROLL disappears in thy hands with ye olde ZAP! | halt }
    if ($2 == flask) {
      if (%flask == 3) {
        msg $nick Okay, okay. You unbolt yon FLASK and hold it aloft. A great shaking begins. The dungeon ceiling collapses down on you, crushing you in twain. Apparently, this was a load-bearing FLASK. Your score was: ___ Play again? [Y/N]
        else {
          msg $nick Ye cannot get the FLASK. It is firmly bolted to a wall which is bolted to the rest of the dungeon which is probably bolted to a castle. Never you mind.
          inc %flask 1
        }
      }
    }
  }
}


All I can think is saying:

Code:

on *:text:LOOK:?: {
  if ($2 == scroll) {
    if (%room == Main Dungeon Room) { msg $nick Parchment, definitely parchment. I'd recognize it anywhere. }
  }
  if ($2 == flask) {
    if (%room == Main Dungeon Room) { msg $nick Looks like you could quaff some serious mead out of that thing. }
    else { msg $nick It looketh pretty awesome. | halt }
  }
}


But that would take much more space and I'm not sure it would work anyway.
Back to top Go down

Thy Dungeonman - Text Adventure: Doesn't work.

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You can reply to topics in this forum
ChatScape :: Everything mIRC! :: mIRC Scripting Help Section.-
Post new topic   Reply to topic