Sword of Fargoal/Cheats

From StrategyWiki, the video game walkthrough and strategy guide wiki

'P'ass bug: The game has a pass mode where you can walk past a monster, trap, etc. If you hit P then step into a monster's square with him, he will not attack you because he cannot move toward you to attack (except for Dimensional Spiders, which will teleport next to you, then attack you on the next turn if you don't move onto them again). You can safely sit on a monster for as long as you like without being attacked by it or other monsters, as other monsters cannot enter the square to attack either. Be careful though, you could get surrounded by monsters completely if you do this against a wall. This bug can also be activated if you initiate a combat, then walk into an adjacent wall, or if you are on a staircase where a monster spawns.

You can break to Commodore Basic by pressing Run Stop, and manipulate the game variables by typing in the basic interpreter. When entering commands, the following applies:

  • The character set is modified — characters in normal basic may appear different than what's used in game.
  • Since the background is recognized as a character, Basic will attempt to parse the background. You can separate your commands from the background by typing : after the command — or you can try scrolling the screen downward.
  • If you receive a syntax error, you cannot use cont to resume the game — instead type goto 41.
  • Your visible map won't reflect the situation within the game, whether you simply try to type the commands directly at the cursor, or try scrolling the screen. You'll need to rebuild the map by visiting affected areas.
  • The Sword of Fargoal timer is still counting down if you activated it.

The source code for the game is protected. Attempting to use the list command will do a quick reset (similar to the Run Stop + Restore combination).

LIST the BASIC source code to discover variables. To do so, first perform a soft reset with the game in memory, then change the start of BASIC address to $4001 with:

```POKE44,40:POKE45,1```

For full information on these commands, you should consult the Commodore 64 programmer's reference guide or the Commodore user manual.

Command effect
sf = 1 Carries the sword of fargoal.
l = ? Sets dungeon level.
ht = ? Sets current hitpoints.
th = ? Sets maximum hitpoints.
bs = ? Sets battle skill.
hp = ? Healing Potion quantity.
tp = ? Teleport quantity.
sh = ? Shield quantity.
lg = ? Light quantity.
rg = ? Regeneration quantity.
iv = ? Invisibility quantity.
t = ? Gold.
be = ? Beacons.
t2 = ? Manipulates countdown timer. Current time is stored in variable TI.
gosub 423:goto41: Maps current level (Destroys object under player, move to empty space first).