Powered by MediaWiki

  Page  Discussion  View source  History 

BASIC Elemental

From TheKolWiki


BASIC Elemental
Location Menagerie Level 1
Hitpoints 40
Attack 50
Defense 50
Initiative  ?
Meat None
Element None
Physical None
Drops
None
edit data
BASIC Elemental You're fighting a BASIC Elemental

10 PRINT "YOU'RE GOING TO DIE, PUNY ADVENTURER!"
20 GOTO 10

Hit Message(s):

It GOTOs you in the <ear>. Ugh! Ow! Ow!

FOR X = 1 TO 5
PRINT "PUNCH!"
NEXT X Ouch! Argh! Oof!

Critical Hit Message:

INPUT "What is your name"; UserName$; PRINT "Sizable soupcon of pain"; UserName$ Ugh! Ow! Argh!

Miss Message(s):

It tries to GOTO you in the <ear>, but misses.

The BASIC Elemental tries to punch you in the <ear>, but it gets stuck in an infinite loop and can't proceed.

Fumble Message:

B124 Label "asswhup" has literal subscripts out of range.

You gain 12-13 <substat>.

Occurs at Menagerie Level 1.

Notes

  • Attacks by this monster are rumored to possibly give the Infinite Loop status effect.

References

  • The BASIC program in the adventure text produces an infinite loop, printing "YOU'RE GOING TO DIE, PUNY ADVENTURER!" repeatedly.
  • The basic elements making up the image of the BASIC Elemental are a few lines of a simple but better-behaved BASIC program.
10 CLS
20 PRINT "HELLO WORLD!"
30 FOR X = 1 TO 2
40 NEXT X
60 END
  • This program, if actually entered into a BASIC compiler or interpreter and run, would clear the screen, print "HELLO WORLD", pause for a brief instant (long enough for the computer to count from 1 to 2), then end. (Note that the "CLS" command will only work in some versions of BASIC. In others, this program will just result in a syntax error on line 10 and immediately stop)
  • "Hello World!" is traditionally the program used to demonstrate to students the basics of the language and how to use its compiler or interpreter.
  • One of the attack messages is another small BASIC program:
FOR X = 1 TO 5
PRINT "PUNCH!"
NEXT X
  • If run, this program would print out
PUNCH!
PUNCH!
PUNCH!
PUNCH!
PUNCH!
  • Note that depending on the BASIC version used, it may need line numbers to run correctly.
This page was last modified on 12 April 2009, at 14:13.
This page has been accessed 10,251 times.
About TheKolWiki  Disclaimers
 
© 2005 - 2008 Coldfront L.L.C.
About Coldfront | Privacy Policy | Advertising