QB64 Phoenix Edition
Modified Qbasic game THEWOODS.BAS by Kurt Kuzba - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Works in Progress (https://qb64phoenix.com/forum/forumdisplay.php?fid=9)
+---- Thread: Modified Qbasic game THEWOODS.BAS by Kurt Kuzba (/showthread.php?tid=2008)



Modified Qbasic game THEWOODS.BAS by Kurt Kuzba - Dav - 09-18-2023

One of the Qbasic gurus in the '90's that I learned the most from was Kurt Kuzba. I saved everything he shared.  Kurt was a great programmer and generous with his Qbasic knowledge.  Back in 1997 he posted a text game on the FidoNet QUIK_BAS Echo called THEWOODS.BAS.   It's a bare-bones text adventure that is great for learning and expanding on.  I thought I'd update it to QB64 and see where it could go.  More monsters and side adventures walking the woods would be a good addition, and another goal than reaching 2000 experience points, like defeating a dragon, would be better ending.

Here's where it is so far.  It includes a built-in font with it so the text can easy to read on any desktop size.

- Dav

Code: (Select All)
'=====================
'THEWOODS-MODIFIED.BAS
'=====================
'A modified version of THEWOODS.BAS by Kurt Kuzba that he
'placed in public domain and encouraged others to build on.
'It's a text adventure game in the classic BBS game style.
'Kurt posted it on the FidoNet QUIK_BAS Echo back in 1997.
'You can find the original THEWOODS.BAS in the ABC packets.
'Kurt, thanks for the game - If you're still out there,
'Come back to the BASIC scene!  You'll love QB64!

'Modified by Dav for QB64-PE 3.8, SEP/2023

Dim Shared q$: q$ = Chr$(34)
Dim Shared PlayerName$, PlayerHits&, PlayerMagic&, PlayerStrength&
Dim Shared PlayerGold&, PlayerWeapon%, PlayerExperience&
Dim Shared EnemyName$, EnemyHits&, EnemyMagic&, EnemyStrength&
Dim Shared EnemyGold&, EnemyWeapon%, EnemyExperience&

Randomize Timer

dh = Int(_DesktopHeight * .80)
Screen _NewImage(dh * 1.25, dh, 32)
BIGFONT Int(_Height / 21)
Width 52, 21

'======
Restart:
'======

Cls , _RGB(32, 32, 128) 'background color

Color _RGB(255, 255, 255), _RGB(32, 32, 128) 'Standard Text color

Color _RGB(255, 255, 0)
Print
Print "             -= Welcome to THE WOODS =-"
Print
Color _RGB(255, 255, 255)

Print "  Terrible beasts are roaming the nearby woods."
Print "  People in town live in constant fear of what "
Print "  lurks beyond the town gate.  Those who decide"
Print "  to venture out seldom return.  Something must"
Print "  be done.  Someone must save the town."
Print
Print "  You have decided to be the brave hero and to"
Print "  eliminate the evil inhabiting the woods.  It"
Print "  will NOT be easy however.  You will face many"
Print "  malevolent forces, many dark and evil beasts."
Print
Print "  Go into the woods, hunt down the beasts until"
Print "  you reach 2,000 experience points to win."
Print
Color _RGB(255, 255, 0)
Input "  Your name? ", plyr$

If plyr$ > "" Then

    PlayerName$ = plyr$
    PlayerHits& = 30
    PlayerMagic& = 0
    PlayerStrength& = 0
    PlayerGold& = 100
    PlayerWeapon% = 0
    PlayerExperience& = 0

    menu% = 1 'show full menu

    YourStats 'Show you stats at the beginning of the game

    'the main game play loop

    Do
        If PlayerHits& > 0 Then
            Print
            If menu% > 0 Then
                Color _RGB(255, 255, 255)
                Print " You're in the middle of town.  What now?"
                Print
                Print " (W)oods  - Enter the woods."
                Print " (H)ealer - Heal your wounds."
                Print " (A)rmory - Buy/Sell a weapon."
                Print " (S)tats  - See your stats."
                Print " (Q)uit   - Quit game."
            End If
            Print
            Print " [W/H/A/S/Q/?]";

            Select Case WaitKey%(" WHASQ?")
                Case 2: Woods
                Case 3: Healer
                Case 4: Armory
                Case 5: YourStats
                Case 6: Print: Print
                    Print " Quit this quest? (YN)? ";
                    If WaitKey%(" YN") = 2 Then Exit Do
                Case 7: Print: menu% = 1
            End Select
        Else
            Color _RGB(255, 200, 200)
            If PlayerExperience& < 2000 Then
                Print
                Print " Sorry... You have perished in battle."
                For t% = 200 To 150 Step -1: Sound t%, .1: Next
            Else
                Print
                Print " You have defeated all enemies! You WIN!!"
                For t% = 100 To 999 Step 10: Sound t%, .03: Next
                For t% = 1000 To 500 Step -10: Sound t%, .03: Next
            End If
            Print " You had"; PlayerExperience&; "points."
            Exit Do
        End If
    Loop

    Color _RGB(255, 255, 0)
    Print: Print " Would you like to play again (YN)? ";

    If WaitKey%(" YN") = 2 Then GoTo Restart

End If

Print: Print " Goodbye, then..."
Sleep 2
System


Sub Armory
    Dim price(1 To 8) As Integer
    price(1) = 75
    price(2) = 200
    price(3) = 400
    price(4) = 600
    price(5) = 900
    price(6) = 1500
    price(7) = 2500
    price(8) = 4000
    Do
        Cls
        Print
        Print "---------------------------------------------------"
        Print "          -==**[ Jake's Weapon Shop ]**==-         "
        Print "---------------------------------------------------"
        Print
        Print " Welcome to Jake's.  We only sell the finest."
        Print " Jake looks you over suspiciously and asks..."
        Print " Do you want to (B)uy or (S)ell?"
        Print
        Print " [B/S or ENTER to leave] "

        Print
        Select Case WaitKey%(" SBQ" + Chr$(13))
            Case 2
                money% = PlayerWeapon% * 30
                If money% = 0 Then
                    Color _RGB(255, 255, 0)
                    Print
                    Print "---------------------------------------------------"
                    Print " Sell what? You're not carrying anything!"
                    Print " Come back when you have something valuable."
                    Print "---------------------------------------------------"
                    Color _RGB(255, 255, 255)
                    Exit Sub
                Else
                    Color _RGB(255, 255, 0)
                    Print
                    Print "---------------------------------------------------"
                    Print " Hmm...I'll give you"; money%; "gold for ";
                    Print RTrim$(Weapon$(PlayerWeapon%)); "."
                    Print " Is it a deal (Y/N)? ";
                    Print "---------------------------------------------------"
                    Print
                    Color _RGB(255, 255, 255)

                    k% = WaitKey%(" YN")

                    Print
                    If k% = 2 Then
                        Color _RGB(255, 255, 0)
                        Print
                        Print "---------------------------------------------------"
                        Print " Great!  Here's your money.  Now go away."
                        Print "---------------------------------------------------"
                        Color _RGB(255, 255, 255)
                        PlayerGold& = PlayerGold& + money%
                        PlayerWeapon% = 0
                        Exit Sub
                    End If

                End If

            Case 3
                Print "--------------==**[  PRICES  ]**==-----------------"
                Print
                For t% = 1 To 8: Print Str$(t%); "->";
                    Print " "; Left$(Str$(price(t%)) + "    ", 6);
                    Print " "; Weapon$(t%)
                Next
                Print
                Print " You have"; PlayerGold&; "gold.  Which one you want (1-8)?"
                Print " (Hit ENTER to buy nothing)"

                k% = WaitKey%(" 12345678" + Chr$(13))

                k% = k% - 1
                If k% < 9 Then
                    money% = k% * 90
                    If money% > PlayerGold& Then
                        Color _RGB(255, 255, 0)
                        Print
                        Print "---------------------------------------------------"
                        Print " You can't afford "; RTrim$(Weapon$(k%)); "."
                        Print " Come back when you have more gold."
                        Print "---------------------------------------------------"
                        Color _RGB(255, 255, 255)

                        Exit Sub
                    Else
                        Color _RGB(255, 255, 0)
                        Print
                        Print "---------------------------------------------------"
                        Print " Sold! Good luck with "; RTrim$(Weapon$(k%)); "."
                        Print " Close the door on your way out."
                        Print "---------------------------------------------------"
                        Color _RGB(255, 255, 255)

                        PlayerGold& = PlayerGold& - money%
                        PlayerWeapon% = k%
                        Exit Sub
                    End If
                End If

            Case 4, 5:
                Color _RGB(255, 255, 0)
                Print
                Print "---------------------------------------------------"
                Print " Ok, maybe next time, says Jake with a grumble."
                Print "---------------------------------------------------"
                Color _RGB(255, 255, 255)
                Exit Sub
        End Select
Loop: End Sub

Sub FightMonster
    level% = GetLevel%(PlayerExperience&)
    MakeEnemy level%
    EnemyName$ = RTrim$(EnemyName$)
    Color _RGB(255, 255, 0)
    Print
    Print "---------------------------------------------------"
    Print " You came upon a "; RTrim$(EnemyName$); "!"
    Print "---------------------------------------------------"

    menu% = 1
    While (PlayerHits& > 0) And (EnemyHits& > 0)
        If menu% > 0 Then
            Print
            Print " (F)ight!            (Y)our Stats "
            Print " (R)un Away          (V)iew Enemy "
            Print " (S)urrender"
        End If
        Print
        Color _RGB(255, 200, 200)
        Print PlayerHits&;
        Print PlayerName$
        Print EnemyHits&;
        Print EnemyName$
        Print
        Color _RGB(255, 255, 255)
        Print " [F/R/S/Y/V/?] "

        level% = GetLevel%(PlayerExperience&)

        k% = WaitKey%(" FRSYV?")

        Select Case k%
            Case 2
                PlayerAtt! = 1 + PlayerWeapon%
                PlayerAtt! = PlayerAtt! * (1 + (PlayerStrength& / 10))
                PlayerAtt! = 5 + (Rnd * PlayerAtt! * 5 * level%)
                PlayerDef! = 1 + (PlayerStrength& / 100)
                EnemyAtt! = EnemyWeapon% * (1 + (EnemyStrength& / 10))
                EnemyDef! = 1 + (EnemyStrength& / 100)

                If Rnd > .5 Then
                    Color _RGB(255, 255, 0)
                    Print
                    Print "---------------------------------------------------"
                    Print " You move fast and hit first."
                    hits% = PlayerAtt! / EnemyDef!
                    If hits% > EnemyHits& Then hits% = EnemyHits&
                    EnemyHits& = EnemyHits& - hits%
                    Print " You hit for"; hits%; "points."
                    PlayerExperience& = PlayerExperience& + hits%
                    If EnemyHits& > 0 Then
                        hits% = EnemyAtt! / PlayerDef!
                        If hits% > PlayerHits& Then hits% = PlayerHits&
                        PlayerHits& = PlayerHits& - hits%
                        Print " You are hit for"; hits%; "points."
                    End If
                    Print "---------------------------------------------------"
                Else
                    Color _RGB(255, 255, 0)
                    Print
                    Print "---------------------------------------------------"
                    Print " You move slow and get hit first."
                    hits% = EnemyAtt! / PlayerDef!
                    If hits% > PlayerHits& Then hits% = PlayerHits&
                    PlayerHits& = PlayerHits& - hits%
                    Print " You are hit for"; hits%; "points."
                    If PlayerHits& > 0 Then
                        hits% = PlayerAtt! / EnemyDef!
                        If hits% > EnemyHits& Then hits% = EnemyHits&
                        EnemyHits& = EnemyHits& - hits%
                        PlayerExperience& = PlayerExperience& + hits%
                        Print " You hit for"; hits%; "points."
                    End If
                    Print "---------------------------------------------------"
                End If

                If EnemyHits& = 0 Then
                    Color _RGB(255, 255, 0)
                    Print
                    Print "---------------------------------------------------"
                    Print " You have defeated the "; RTrim$(EnemyName$)
                    Print "---------------------------------------------------"
                    PlayerMagic& = PlayerMagic& + EnemyMagic& \ 10
                    PlayerGold& = PlayerGold& + EnemyGold&
                    menu% = 1
                End If

                If PlayerHits& = 0 Then
                    Color _RGB(255, 255, 0)
                    Print
                    Print "---------------------------------------------------"
                    Print " You were defeated by "; RTrim$(EnemyName$)
                    Print "---------------------------------------------------"
                End If

            Case 3
                Color _RGB(255, 255, 0)
                Print
                Print "---------------------------------------------------"
                Print " You manage to escape, but all your strength"
                Print " and magic are lost, and some experience points."
                Print "---------------------------------------------------"
                PlayerMagic& = 0
                PlayerStrength& = 0
                PlayerExperience& = PlayerExperience& * .9
                menu% = 1
                Color _RGB(255, 255, 255)
                Exit Sub
            Case 4
                Color _RGB(255, 255, 0)
                Print
                Print "---------------------------------------------------"
                Print " You give all your gold to "; RTrim$(EnemyName$);
                Print " Being broke is better than dying I suppose..."
                Print "---------------------------------------------------"
                Color _RGB(255, 255, 255)
                menu% = 1
                PlayerGold& = 0: Exit Sub
            Case 5: YourStats
            Case 6: EnemyStats
            Case 7: menu% = 1
        End Select
    Wend
End Sub


Function GetLevel% (e&)
    Select Case e&
        Case Is < 100: level% = 1
        Case 101 To 500: level% = 2
        Case Else: level% = 3
    End Select
    GetLevel% = level%
End Function

Sub Healer
    Totalhits% = PlayerExperience& \ 10 + 30
    ToHeal% = Totalhits% - PlayerHits&
    Cls
    Color _RGB(255, 200, 200)
    Print
    Print "---------==**[  HARRY THE HEALER  ]**==------------"
    Print
    Print " Welcome friend.  Let me heal your wounds and soul."
    If ToHeal% <= 0 Then
        Print
        Print " Harry looks you over completely and says,"
        Print " You don't require healing, friend.  Goodbye..."
    Else
        Print
        Print " Each hit point costs 3 gold to heal."
        Print " You can afford to heal"; PlayerGold& \ 3; "hit points."
        Print " To max out, You need to heal"; RTrim$(Str$(ToHeal%)); "."
        Print
        Input " How many would you heal? (ENTER for max) ", heal%
        If heal% = 0 Then heal% = ToHeal%
        If heal% > ToHeal% Then heal% = ToHeal%
        If heal% > (PlayerGold& \ 3) Then heal% = PlayerGold& \ 3
        PlayerHits& = PlayerHits& + heal%
        PlayerGold& = PlayerGold& - (heal% * 3)
        Print
        Print " I have healed you for"; heal%; "hit points."
        Print " Go in peace my son..."
        Print
    End If
    Print "---------------------------------------------------"
    Color _RGB(200, 200, 255)

End Sub

Sub MakeEnemy (l%)

    ReDim EN(1 To 3) As String
    ReDim EP(1 To 3) As String

    EP(1) = "Ferocious "
    EP(2) = "Snarling "
    EP(3) = "Evil "

    Select Case l%
        Case 1
            EN(1) = "Squirrel"
            EN(2) = "Bunny"
            EN(3) = "Hedgehog"
        Case 2
            EN(1) = "Bear"
            EN(2) = "Boar"
            EN(3) = "Troll"
        Case 3
            EN(1) = "Demon"
            EN(2) = "Dragon"
            EN(3) = "Wizard"
    End Select

    EnemyName$ = EP(l%) + EN(Rnd * 2 + 1)
    EnemyHits& = ((Rnd * 10 + 20) * l%)
    EnemyMagic& = ((Rnd * 10 + 10) * l%)
    EnemyStrength& = ((Rnd * 10 + 10) * l%)
    EnemyGold& = ((Rnd * 100 + 100) * l%)
    EnemyWeapon% = (Rnd * 2 + l% * 2)
    EnemyExperience& = ((Rnd * 10 + 10) * l%)

End Sub

Sub YourStats ()
    Cls
    Color _RGB(255, 255, 0)
    Print "------------==**[  YOUR STATS  ]**==---------------"
    Print " Name       : "; PlayerName$
    Print " Hits       :"; PlayerHits&
    Print " Magic      :"; PlayerMagic&
    Print " Strength   :"; PlayerStrength&
    Print " Gold       :"; PlayerGold&
    Print " Weapon     : "; Weapon$(PlayerWeapon%)
    Print " Experience :"; PlayerExperience&
    Print "---------------------------------------------------"
    Color _RGB(255, 255, 255)
End Sub

Sub EnemyStats ()
    Cls
    Color _RGB(255, 255, 0)
    Print "------------==**[  ENEMY STATS  ]**==--------------"
    Print " Name       : "; EnemyName$
    Print " Hits       :"; EnemyHits&
    Print " Magic      :"; EnemyMagic&
    Print " Strength   :"; EnemyStrength&
    Print " Gold       :"; EnemyGold&
    Print " Weapon     : "; Weapon$(EnemyWeapon%)
    Print " Experience :"; EnemyExperience&
    Print "---------------------------------------------------"
    Color _RGB(255, 255, 255)
End Sub

Sub UseMagic
    Print
    Print
    Do
        Color _RGB(255, 255, 100)
        Print
        Print "------------==**[  CAST A SPELL  ]**==-------------"
        Print
        Print " (H)ealing Spell   (requires 4 magic points)"
        Print " (S)trength Spell  (requires 9 magic points)"
        Print " (Q)uit this menu"
        Print
        Print " You have"; PlayerMagic&; "magic points."
        Print "---------------------------------------------------"
        Print
        Print " [H/S/Q]"

        k% = WaitKey%(" HSQ" + Chr$(13))

        Print
        Select Case k%
            Case 2
                If PlayerMagic& < 4 Then
                    Print "---------------------------------------------------"
                    Print " You don't have enough magic points for that!"
                    Print "---------------------------------------------------"
                Else
                    m% = 1 + Rnd * 9
                    PlayerMagic& = PlayerMagic& - 4
                    PlayerHits& = PlayerHits& + m%
                    Print "---------------------------------------------------"
                    Print " Your spell yields"; m%; "hits."
                    Print "---------------------------------------------------"
                End If
            Case 3
                If PlayerMagic& < 9 Then
                    Print "---------------------------------------------------"
                    Print " You don't have enough magic points for that!"
                    Print "---------------------------------------------------"
                Else
                    m% = 1 + Rnd * 9
                    PlayerMagic& = PlayerMagic& - 9
                    PlayerStrength& = PlayerStrength& + m%
                    Print "---------------------------------------------------"
                    Print " Your spell yields"; m%; "strength."
                    Print "---------------------------------------------------"
                End If
            Case 4, 5: Color _RGB(255, 255, 255): Exit Sub
        End Select
    Loop
End Sub

Sub WalkInWoods
    Select Case (Rnd * 99)
        Case 0 To 9
            rndgold = Int(Rnd * 15) + 2
            PlayerGold& = PlayerGold& + rndgold
            Color _RGB(255, 255, 0)
            Print: Print " Lucky you! You found"; rndgold; "pieces of gold!"
            Color _RGB(255, 255, 255)
        Case 10 To 19
            PlayerMagic& = PlayerMagic& + 1
            Color _RGB(100, 255, 100)
            Print: Print " A nice faerie gives you one magic point!"
            Color _RGB(255, 255, 255)
        Case 20 To 29: m% = 1 + Rnd * 9
            PlayerHits& = PlayerHits& + m%
            Color _RGB(100, 200, 255)
            Print: Print " A friendly Elf heals you"; m%; "hit point";
            If m% = 1 Then Print "!": Else Print "s!"
            Color _RGB(255, 255, 255)
        Case 30 To 89
            Print: Print " The path continues before you. Now what?"
        Case Else: FightMonster
    End Select
End Sub

Function Weapon$ (w%)
    Select Case w%
        Case 0: Weapon$ = "Your Bare Hands"
        Case 1: Weapon$ = "A Stick"
        Case 2: Weapon$ = "A Quarterstaff"
        Case 3: Weapon$ = "A Small Knife"
        Case 4: Weapon$ = "A Big Knife"
        Case 5: Weapon$ = "A Machete"
        Case 6: Weapon$ = "A Shortsword"
        Case 7: Weapon$ = "A Longsword"
        Case 8: Weapon$ = "A Two-Handed Sword"
    End Select
End Function

Sub Woods
    menu% = 1
    Do
        level% = GetLevel%(PlayerExperience&)
        If PlayerExperience& > 2000 Then PlayerHits& = 0

        Print
        If PlayerHits& = 0 Then Exit Sub
        If menu% <> 0 Then
            Color _RGB(255, 255, 255)
            Print
            Print " You're in the woods, alone.  Now what?"
            Print
            Print " (C)ontinue .....Walk the path."
            Print " (T)own .........Go Back to town."
            Print " (S)pell.........Cast a Spell."
            Print " (Y)our Stats....Show your stats."
            Print
        End If
        menu% = 0
        Print " [C/S/T/Y/?] "

        k% = WaitKey%(" CTSY?")

        Select Case k%

            Case 2 'Pressed Continue walking...

                Select Case (Rnd * 99)
                    Case 0 To 9 'found gold
                        rndgold = Int(Rnd * 15) + 2
                        PlayerGold& = PlayerGold& + rndgold
                        Color _RGB(255, 255, 0)
                        Print: Print " Lucky you! You found"; rndgold; "pieces of gold!"
                        Color _RGB(255, 255, 255)
                    Case 10 To 19 'faerie magic
                        PlayerMagic& = PlayerMagic& + 1
                        Color _RGB(100, 255, 100)
                        Print: Print " A nice faerie gives you one magic point!"
                        Color _RGB(255, 255, 255)
                    Case 20 To 29 'elf heals you
                        m% = 1 + Rnd * 9
                        PlayerHits& = PlayerHits& + m%
                        Color _RGB(100, 200, 255)
                        Print: Print " A friendly Elf heals you"; m%; "hit point";
                        If m% = 1 Then Print "!": Else Print "s!"
                        Color _RGB(255, 255, 255)
                    Case 30 To 89 'nothing, you just continue
                        Print: Print " The path continues before you. Now what?"
                    Case Else 'Monster fight!
                        FightMonster: menu% = 1
                End Select

            Case 3: Exit Sub 'back to town

            Case 4: UseMagic: menu% = 1 'you use your magic
            Case 5: YourStats 'show your stats
            Case 6: menu% = 1 'Pressed ? for help

        End Select

    Loop
End Sub

Function WaitKey% (keys$)
    Do
        k% = InStr(keys$, UCase$(InKey$))
    Loop While k% < 2
    WaitKey% = k%
End Function

Sub BIGFONT (size)
    'loads a custom size CP437 font (like QB64's built-in one)'
    'You can make/use any size now.
    A$ = ""
    A$ = A$ + "haIgm]0MLEMMXkS^ST\\T]lHiaboe<Nl8c71HYa3f0VPiWa9H07n5a_0bn:K"
    A$ = A$ + ";#FB8;c773hBD8T42E_#C:=QBC39PSQB=DB2UhdhVBB^9=_D2EQ#Ala?JFmi"
    A$ = A$ + "ejeGKNiYTV4\UNkOWcmL791Y0Iefg<NdmNWiLfWmIoO_?WkeP10H6`NP0HS["
    A$ = A$ + "KMGj5l9Nf7lH0HC;3of5MAGb9ef>>V6V60Vfa[_^=_m>j[Y]NOC7PDY`?kKc"
    A$ = A$ + "gd0IQB1o20VfnaO?eFkH7m=nh8TP=]8ljY]e^_e]DhRj<;0CoG1`5>lfj\S`"
    A$ = A$ + "IOn5Z6o]G6oLbK3oRZONcW6QoL`[Gfffn0gBQ5]P_=NmC3#5__^kMcMlg=[o"
    A$ = A$ + "a=RPjY`[?W]ga]dWICVEPonZafW]W>fNWObWOGk3P[h7POg7[_Nga07oM<8f"
    A$ = A$ + "f[2agZnF0=g`?kjkmmOT[]nel;PVZJ]hg0?OKcLadaGiKoLOB06[_P\Y8lOJ"
    A$ = A$ + "#5Pl2kCZm?FO04TU^4o[1Bn:5m=VLhOH8jj9mj4UF4Te<4D9R7[U6eP\fS#H"
    A$ = A$ + "5]c]X6G?2l1mUORGl9Rl3CcgPP3Yf?27leNXQi017VViP9PXlI5<D`Bg[8lC"
    A$ = A$ + "8OFXkk2MW7jMNL?lKIT21l_VF:3>F2D;LOV8TRaP9n:<aIA^f=aF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AXZnjL78`"
    A$ = A$ + "ZYSnk_gK^k>gb0EcW]cnV>O\o^fjf6#na`N_iNTcfD_3\]JdV5fCM^cfd>jT"
    A$ = A$ + "1KK]N:C_gn7HKm^eNkYS^[[[N60]XdiV70=ZDKWgh>kjVjXk>kIcMFifjMWk"
    A$ = A$ + "XcIdOWgDgm^e^fL7MgC_3<MZaK]o>jNPnLW^Y1VfU\^F9aQE#WdZNb:LWDdN"
    A$ = A$ + "BKfCFYmTEK?iD\WLbfCFUmTBj9[d2Wf\M_TM8:IQLA;LJcn=]IKCKFhDbRZ["
    A$ = A$ + "dfhRFdX=g9fA_=;nDdMRmWFYM8Je=XF8gV5EGY[aF8_B;n\Bglb2iEJkN9g4"
    A$ = A$ + "d1WE:ZKm]Y^kMcg#e8_T>FYLEgKA>fo0je3\S]eAHWEbo]j`KP?FcFjZk^k<"
    A$ = A$ + "LCmN;CG>[OTSGm0mgE7KMWm97kG_>\7iHgKYZ=gEoK^k>[Y[N^Y=]C\C3#WY"
    A$ = A$ + "Og>fNGXlH7K^CD0jVLG4\SMfCEKYc]SR#YXoDi>j37lDK^kM^Y:gFWMP3AHG"
    A$ = A$ + "M\mNk9\f]_cMX2EM>C_cAIOa=ehScNbHoGSl3nVg6Mdooo4noEAM%%h1"
    btemp$ = ""
    For i& = 1 To Len(A$) Step 4: B$ = Mid$(A$, i&, 4)
        If InStr(1, B$, "%") Then
            For C% = 1 To Len(B$): F$ = Mid$(B$, C%, 1)
                If F$ <> "%" Then C$ = C$ + F$
            Next: B$ = C$: End If: For j = 1 To Len(B$)
            If Mid$(B$, j, 1) = "#" Then
        Mid$(B$, j) = "@": End If: Next
        For t% = Len(B$) To 1 Step -1
            B& = B& * 64 + Asc(Mid$(B$, t%)) - 48
            Next: X$ = "": For t% = 1 To Len(B$) - 1
            X$ = X$ + Chr$(B& And 255): B& = B& \ 256
    Next: btemp$ = btemp$ + X$: Next
    BASFILE$ = _Inflate$(btemp$, 25152): btemp$ = ""
    _Font _LoadFont(BASFILE$, size, "memory, monospace")
End Sub



RE: Modified Qbasic game THEWOODS.BAS by Kurt Kuzba - James D Jarvis - 09-20-2023

Added to it with 2 more types of equipment to buy at the armory(with plenty of options), added their effects in game resolution and added a few more monster options. Save and Load game options as well.

Old simple games can still be fun.

Code: (Select All)
'=====================
'Further adventures in THEWOODS-MODIFIED.BAS
'=====================
'A modified version of THEWOODS.BAS by Kurt Kuzba that he
'placed in public domain and encouraged others to build on.
'It's a text adventure game in the classic BBS game style.
'Kurt posted it on the FibdoNet QUIK_BAS Echo back in 1997.
'You can find the original THEWOODS.BAS in the ABC packets.
'Kurt, thanks for the game - If you're still out there,
'Come back to the BASIC scene!  You'll love QB64!

'Modified by Dav for QB64-PE 3.8, SEP/2023
'further modifeid by James Jarvis SEP/2023  - added more equipment options and more monsters

Dim Shared q$: q$ = Chr$(34)
Dim Shared PlayerName$, PlayerHits&, PlayerMagic&, PlayerStrength&
Dim Shared PlayerGold&, PlayerWeapon%, PlayerExperience&, PlayerShield%, PlayerArmor%
Dim Shared EnemyName$, EnemyHits&, EnemyMagic&, EnemyStrength&
Dim Shared EnemyGold&, EnemyWeapon%, EnemyExperience&
Dim Shared sprice%(16), aprice%(16), wprice%(16)

Randomize Timer

dh = Int(_DesktopHeight * .80)
Screen _NewImage(dh * 1.25, dh, 32)
BIGFONT Int(_Height / 21)
Width 52, 21
For n = 1 To 12
    wprice%(n) = (n + (n - 2) / 2) * 60
    sprice%(n) = n * 50
    aprice%(n) = n * n * 50
    If n > 9 Then
        wprice%(n) = wprice%(n) * (n / 3)
        sprice%(n) = sprice%(n) * 2
        aprice%(n) = aprice%(n) * 3
    End If
Next n

'======
Restart:
'======

Cls , _RGB(32, 32, 128) 'background color

Color _RGB(255, 255, 255), _RGB(32, 32, 128) 'Standard Text color

Color _RGB(255, 255, 0)
Print
Print "            -= Welcome to THE WOODS =-"
Print
Color _RGB(255, 255, 255)

Print "  Terrible beasts are roaming the nearby woods."
Print "  People in town live in constant fear of what "
Print "  lurks beyond the town gate.  Those who decide"
Print "  to venture out seldom return.  Something must"
Print "  be done.  Someone must save the town."
Print
Print "  You have decided to be the brave hero and to"
Print "  eliminate the evil inhabiting the woods.  It"
Print "  will NOT be easy however.  You will face many"
Print "  malevolent forces, many dark and evil beasts."
Print
Print "  Go into the woods, hunt down the beasts until"
Print "  you reach 2,000 experience points to win."
Print
Color _RGB(255, 255, 0)
Print " Load a Saved quest? (YN)? ";
If WaitKey%(" YN") = 2 Then
    Print
    Input "  Your name? ", plyr$
    loadgame plyr$
Else
    Print
    Input "  Your name? ", plyr$

    If plyr$ > "" Then

        PlayerName$ = plyr$
        PlayerHits& = 30
        PlayerMagic& = 0
        PlayerStrength& = 0
        PlayerGold& = 100
        PlayerWeapon% = 0
        PlayerExperience& = 0
    End If
End If
menu% = 1 'show full menu

YourStats 'Show you stats at the beginning of the game

'the main game play loop

Do
    _Limit 60
    If PlayerHits& > 0 Then
        Print
        If menu% > 0 Then
            Color _RGB(255, 255, 255)
            Print " You're in the middle of town.  What now?"
            Print
            Print " (W)oods  - Enter the woods."
            Print " (H)ealer - Heal your wounds."
            Print " (A)rmory - Buy/Sell equipment."
            Print " (S)tats  - See your stats."
            Print " (Q)uit  - Quit game."
        End If
        Print
        Print " [W/H/A/S/Q/?]";

        Select Case WaitKey%(" WHASQ?")
            Case 2: Woods
            Case 3: Healer
            Case 4: Armory
            Case 5: YourStats
            Case 6: Print: Print
                Print " Quit this quest? (YN)? ";
                If WaitKey%(" YN") = 2 Then
                    Print
                    Print " Save The Game? (YN)? ";
                    If WaitKey%(" YN") = 2 Then
                        savegame
                    End If
                    Exit Do
                End If
            Case 7: Print: menu% = 1
        End Select
    Else
        Color _RGB(255, 200, 200)
        If PlayerExperience& < 2000 Then
            Print
            Print " Sorry... You have perished in battle."
            For t% = 200 To 150 Step -1: Sound t%, .1: Next
        Else
            Print
            Print " You have defeated all enemies! You WIN!!"
            For t% = 100 To 999 Step 10: Sound t%, .03: Next
            For t% = 1000 To 500 Step -10: Sound t%, .03: Next
        End If
        Print " You had"; PlayerExperience&; "points."
        Exit Do
    End If
Loop

Color _RGB(255, 255, 0)
Print: Print " Would you like to play again (YN)? ";

If WaitKey%(" YN") = 2 Then GoTo Restart


Print: Print " Goodbye, then..."
Sleep 2
System


Sub Armory
    Dim price(1 To 8) As Integer
    price(1) = 75
    price(2) = 200
    price(3) = 400
    price(4) = 600
    price(5) = 900
    price(6) = 1500
    price(7) = 2500
    price(8) = 4000
    Do
        Cls
        Print
        Print "---------------------------------------------------"
        Print "          -==**[ Jake's Weapon Shop ]**==-        "
        Print "---------------------------------------------------"
        Print
        Print " Welcome to Jake's.  We only sell the finest."
        Print " Jake looks you over suspiciously and asks..."
        Print " Interested in (W)eapons, (S)hields, or (A)rmor?"
        Print
        Print " [W/S/A or ENTER to leave] "
        Print
        Select Case WaitKey%(" WSA" + Chr$(13))
            Case 2 'weapons
                Print
                Print "Ah yes, Weapons..."
                Print "  "
                Print "  Do you want to (B)uy or (S)ell?"
                Print
                Print " [B/S or ENTER to leave] "
                Print
                Select Case WaitKey%(" SB" + Chr$(13))
                    Case 2 'selling weapons
                        money% = PlayerWeapon% * 30
                        If money% = 0 Then
                            Color _RGB(255, 255, 0)
                            Print
                            Print "---------------------------------------------------"
                            Print " Sell what? You're not carrying anything!"
                            Print " Come back when you have something valuable."
                            Print "---------------------------------------------------"
                            Color _RGB(255, 255, 255)
                            Exit Sub
                        Else
                            Color _RGB(255, 255, 0)
                            Print
                            Print "---------------------------------------------------"
                            Print " Hmm...I'll give you"; money%; "gold for ";
                            Print RTrim$(Weapon$(PlayerWeapon%)); "."
                            Print " Is it a deal (Y/N)? ";
                            Print "---------------------------------------------------"
                            Print
                            Color _RGB(255, 255, 255)

                            k% = WaitKey%(" YN")

                            Print
                            If k% = 2 Then
                                Color _RGB(255, 255, 0)
                                Print
                                Print "---------------------------------------------------"
                                Print " Great!  Here's your money.  Now go away."
                                Print "---------------------------------------------------"
                                Color _RGB(255, 255, 255)
                                PlayerGold& = PlayerGold& + money%
                                PlayerWeapon% = 0
                                Exit Sub
                            End If

                        End If

                    Case 3 'buying weapons
                        Print "--------------==**[  PRICES  ]**==-----------------"
                        Print
                        For t% = 1 To 12: Print Hex$(t%); "->";
                            Print " "; Left$(Str$(wprice%(t%)) + "    ", 6);
                            Print " "; Weapon$(t%)
                        Next
                        Print
                        Print " You have"; PlayerGold&; "gold.  Which one you want (1-C)?"
                        Print " (Hit ENTER to buy nothing)"

                        k% = WaitKey%(" 123456789AB" + Chr$(13))

                        k% = k% - 1
                        If k% < 13 Then
                            money% = wprice%(k%)
                            If money% > PlayerGold& Then
                                Color _RGB(255, 255, 0)
                                Print
                                Print "---------------------------------------------------"
                                Print " You can't afford "; RTrim$(Weapon$(k%)); "."
                                Print " Come back when you have more gold."
                                Print "---------------------------------------------------"
                                Color _RGB(255, 255, 255)

                                Exit Sub
                            Else
                                Color _RGB(255, 255, 0)
                                Print
                                Print "---------------------------------------------------"
                                Print " Sold! Good luck with "; RTrim$(Weapon$(k%)); "."
                                Print " Close the door on your way out."
                                Print "---------------------------------------------------"
                                Color _RGB(255, 255, 255)

                                PlayerGold& = PlayerGold& - money%
                                PlayerWeapon% = k%
                                Exit Sub
                            End If
                        End If

                    Case 4, 5:
                        Color _RGB(255, 255, 0)
                        Print
                        Print "---------------------------------------------------"
                        Print " Ok, maybe next time, says Jake with a grumble."
                        Print "---------------------------------------------------"
                        Color _RGB(255, 255, 255)
                        Exit Sub
                End Select
            Case 3 'shields
                Print
                Print "Ah yes, Shields..."
                Print "  "
                Print "  Do you want to (B)uy or (S)ell?"
                Print
                Print " [B/S or ENTER to leave] "
                Print
                Select Case WaitKey%(" SB" + Chr$(13))
                    Case 2 'selling shields
                        money% = PlayerShield% * 30
                        If money% = 0 Then
                            Color _RGB(255, 255, 0)
                            Print
                            Print "---------------------------------------------------"
                            Print " Sell what? You're not carrying anything!"
                            Print " Come back when you have something valuable."
                            Print "---------------------------------------------------"
                            Color _RGB(255, 255, 255)
                            Exit Sub
                        Else
                            Color _RGB(255, 255, 0)
                            Print
                            Print "---------------------------------------------------"
                            Print " Hmm...I'll give you"; money%; "gold for ";
                            Print RTrim$(Shield$(PlayerShield%)); "."
                            Print " Is it a deal (Y/N)? ";
                            Print "---------------------------------------------------"
                            Print
                            Color _RGB(255, 255, 255)

                            k% = WaitKey%(" YN")

                            Print
                            If k% = 2 Then
                                Color _RGB(255, 255, 0)
                                Print
                                Print "---------------------------------------------------"
                                Print " Great!  Here's your money."
                                Print "---------------------------------------------------"
                                Color _RGB(255, 255, 255)
                                PlayerGold& = PlayerGold& + money%
                                PlayerShield% = 0
                                Exit Sub
                            End If

                        End If

                    Case 3 'buying shield
                        Print "--------------==**[  PRICES  ]**==-----------------"
                        Print
                        For t% = 1 To 12: Print Hex$(t%); "->";
                            Print " "; Left$(Str$(sprice%(t%)) + "    ", 6);
                            Print " "; Shield$(t%)
                        Next
                        Print
                        Print " You have"; PlayerGold&; "gold.  Which one you want (1-C)?"
                        Print " (Hit ENTER to buy nothing)"

                        k% = WaitKey%(" 123456789ABC" + Chr$(13))

                        k% = k% - 1
                        If k% < 13 Then
                            money% = sprice%(k%)
                            If money% > PlayerGold& Then
                                Color _RGB(255, 255, 0)
                                Print
                                Print "---------------------------------------------------"
                                Print " You can't afford "; RTrim$(Shield$(k%)); "."
                                Print " Come back when you have more gold."
                                Print "---------------------------------------------------"
                                Color _RGB(255, 255, 255)

                                Exit Sub
                            Else
                                Color _RGB(255, 255, 0)
                                Print
                                Print "---------------------------------------------------"
                                Print " Sold! Bear that "; RTrim$(Shield$(k%)); " well."
                                Print " Close the door on your way out."
                                Print "---------------------------------------------------"
                                Color _RGB(255, 255, 255)

                                PlayerGold& = PlayerGold& - money%
                                PlayerShield% = k%
                                Exit Sub
                            End If
                        End If

                    Case 4, 5:
                        Color _RGB(255, 255, 0)
                        Print
                        Print "---------------------------------------------------"
                        Print " Ok, maybe next time, says Jake with a grumble."
                        Print "---------------------------------------------------"
                        Color _RGB(255, 255, 255)
                        Exit Sub
                End Select
            Case 4 'armor
                Print
                Print "Ah yes, Armor..."
                Print "  "
                Print "  Do you want to (B)uy or (S)ell?"
                Print
                Print " [B/S or ENTER to leave] "
                Print
                Select Case WaitKey%(" SB" + Chr$(13))
                    Case 2 'selling armor
                        money% = PlayerArmor% * 30
                        If money% = 0 Then
                            Color _RGB(255, 255, 0)
                            Print
                            Print "---------------------------------------------------"
                            Print " Sell what? You're not carrying anything!"
                            Print " Come back when you have something valuable."
                            Print "---------------------------------------------------"
                            Color _RGB(255, 255, 255)
                            Exit Sub
                        Else
                            Color _RGB(255, 255, 0)
                            Print
                            Print "---------------------------------------------------"
                            Print " Hmm...I'll give you"; money%; "gold for ";
                            Print RTrim$(Armor$(PlayerArmor%)); "."
                            Print " Is it a deal (Y/N)? ";
                            Print "---------------------------------------------------"
                            Print
                            Color _RGB(255, 255, 255)

                            k% = WaitKey%(" YN")

                            Print
                            If k% = 2 Then
                                Color _RGB(255, 255, 0)
                                Print
                                Print "---------------------------------------------------"
                                Print " Great!  Here's your money."
                                Print "---------------------------------------------------"
                                Color _RGB(255, 255, 255)
                                PlayerGold& = PlayerGold& + money%
                                PlayerArmor% = 0
                                Exit Sub
                            End If

                        End If

                    Case 3 'buying armor
                        Print "--------------==**[  PRICES  ]**==-----------------"
                        Print
                        For t% = 1 To 12: Print Hex$(t%); "->";
                            Print " "; Left$(Str$(aprice%(t%)) + "    ", 6);
                            Print " "; Armor$(t%)
                        Next
                        Print
                        Print " You have"; PlayerGold&; "gold.  Which one you want (1-C)?"
                        Print " (Hit ENTER to buy nothing)"

                        k% = WaitKey%(" 123456789ABC" + Chr$(13))

                        k% = k% - 1
                        If k% < 13 Then
                            money% = aprice%(k%)
                            If money% > PlayerGold& Then
                                Color _RGB(255, 255, 0)
                                Print
                                Print "---------------------------------------------------"
                                Print " You can't afford "; RTrim$(Armor$(k%)); "."
                                Print " Come back when you have more gold."
                                Print "---------------------------------------------------"
                                Color _RGB(255, 255, 255)

                                Exit Sub
                            Else
                                Color _RGB(255, 255, 0)
                                Print
                                Print "---------------------------------------------------"
                                Print " Sold! Wear that "; RTrim$(Armor$(k%)); " well."
                                Print " Close the door on your way out."
                                Print "---------------------------------------------------"
                                Color _RGB(255, 255, 255)

                                PlayerGold& = PlayerGold& - money%
                                PlayerArmor% = k%
                                Exit Sub
                            End If
                        End If
                    Case 4, 5:
                        Color _RGB(255, 255, 0)
                        Print
                        Print "---------------------------------------------------"
                        Print " Ok, maybe next time, says Jake with a grumble."
                        Print "---------------------------------------------------"
                        Color _RGB(255, 255, 255)
                        Exit Sub
                End Select
            Case Else
                Exit Sub
        End Select
Loop: End Sub

Sub FightMonster
    level% = GetLevel%(PlayerExperience&)
    MakeEnemy level%
    EnemyName$ = RTrim$(EnemyName$)
    Color _RGB(255, 255, 0), _RGB32(200, 0, 0)
    Print
    Print "---------------------------------------------------"
    Print " You came upon a "; RTrim$(EnemyName$); "!"
    Print "---------------------------------------------------"

    menu% = 1
    While (PlayerHits& > 0) And (EnemyHits& > 0)
        If menu% > 0 Then
            Print
            Print " (F)ight!            (D)efend!    "
            Print " (R)un Away          (Y)our Stats "
            Print " (S)urrender        (V)iew Enemy "
        End If
        Print
        Color _RGB(255, 200, 200)
        Print PlayerHits&;
        Print PlayerName$
        Print EnemyHits&;
        Print EnemyName$
        Print
        Color _RGB(255, 255, 255)
        Print " [F/D/R/S/Y/V/?] "

        level% = GetLevel%(PlayerExperience&)

        k% = WaitKey%(" FRSYV?D")

        Select Case k%
            Case 2, 8
                PlayerAtt! = 1 + PlayerWeapon%
                PlayerAtt! = PlayerAtt! * (1 + (PlayerStrength& / 10))
                PlayerAtt! = 5 + (Rnd * PlayerAtt! * 5 * level%)
                PlayerDef! = 1 + (PlayerStrength& / 100) + Int(Rnd * (PlayerShield% / 2)) + PlayerArmor%
                If k% = 8 And PlayerShield% > 0 Then
                    If PlayerStrength& > PlayerShield% Then
                        PlayerDef! = PlayerDef! + 2 * Int(Rnd * PlayerShield%)
                    Else
                        PlayerDef! = PlayerDef! + Int(Rnd * (PlayerShield% / 2))
                    End If
                    PlayerAtt! = PlayerAtt! \ 2
                End If
                EnemyAtt! = EnemyWeapon% * (1 + Rnd * (EnemyStrength& / 5))
                EnemyDef! = 1 + (EnemyStrength& / 100)

                If (Rnd * 30) - 6 > PlayerArmor% + PlayerShield% Then
                    Color _RGB(255, 255, 0)
                    Print
                    Print "---------------------------------------------------"
                    Print " You move fast and hit first."
                    hits% = PlayerAtt! / EnemyDef!
                    If hits% > EnemyHits& Then hits% = EnemyHits&
                    EnemyHits& = EnemyHits& - hits%
                    Print " You hit for"; hits%; "points."
                    PlayerExperience& = PlayerExperience& + hits%
                    If EnemyHits& > 0 Then
                        hits% = EnemyAtt! / PlayerDef!
                        If hits% > PlayerHits& Then hits% = PlayerHits&
                        PlayerHits& = PlayerHits& - hits%
                        Print " You are hit for"; hits%; "points."
                    End If
                    Print "---------------------------------------------------"
                Else
                    Color _RGB(255, 255, 0)
                    Print
                    Print "---------------------------------------------------"
                    Print " You move slow and get hit first."
                    hits% = EnemyAtt! / PlayerDef!
                    If hits% > PlayerHits& Then hits% = PlayerHits&
                    PlayerHits& = PlayerHits& - hits%
                    Print " You are hit for"; hits%; "points."
                    If PlayerHits& > 0 Then
                        hits% = PlayerAtt! / EnemyDef!
                        If hits% > EnemyHits& Then hits% = EnemyHits&
                        EnemyHits& = EnemyHits& - hits%
                        PlayerExperience& = PlayerExperience& + hits%
                        Print " You hit for"; hits%; "points."
                    End If
                    Print "---------------------------------------------------"

                    If InStr(EnemyName$, "Witch") > 0 And Rnd * 10 < 2 Then
                        Print " The Witch has used Her Evil Eye!"
                        Print " Your Magic is Weakened!"
                        Print "---------------------------------------------------"
                        PlayerMagic& = Int(PlayerMagic& / 2)
                    End If
                    If InStr(EnemyName$, "Wizard") > 0 And Rnd * 10 < 2 Then
                        Print " The Wizard has used Hexed you!"
                        Print " Your Strength is Weakened!"
                        Print "---------------------------------------------------"
                        PlayerStrength& = Int(PlayerStrength& / 2)
                    End If
                    If InStr(EnemyName$, "Druid") > 0 And Rnd * 10 < 2 Then
                        Print " The Druid has Cursed you!"
                        Print " Your Magic and Strength is Weakened!"
                        Print "---------------------------------------------------"
                        PlayerStrength& = Int(PlayerStrength& * .75)
                        PlayerMagic& = Int(PlayerMagic& * .75)
                    End If



                End If
                If k% = 8 And PlayerShield% > 0 And Rnd * 20 < 2 Then 'check for broken shield
                    If Int(Rnd * 27) > PlayerShield% Then
                        Print
                        Print ">>>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<"
                        Print " Your "; Shield$(PlayerShield%); " has BROKEN !!"
                        Print ">>>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<"
                        PlayerShield% = 0
                    End If
                End If
                If EnemyHits& = 0 Then
                    Color _RGB(255, 255, 0)
                    Print
                    Print "---------------------------------------------------"
                    Print " You have defeated the "; RTrim$(EnemyName$)
                    Print "---------------------------------------------------"
                    PlayerMagic& = PlayerMagic& + EnemyMagic& \ 10
                    PlayerGold& = PlayerGold& + EnemyGold&
                    menu% = 1
                End If

                If PlayerHits& = 0 Then
                    Color _RGB(255, 255, 0)
                    Print
                    Print "---------------------------------------------------"
                    Print " You were defeated by "; RTrim$(EnemyName$)
                    Print "---------------------------------------------------"
                End If

            Case 3
                Color _RGB(255, 255, 0)
                If Int(Rnd * 12) > PlayerArmor% Then 'yup less armor imporves chance to escape
                    Print
                    Print "---------------------------------------------------"
                    Print " You manage to escape, but it has tired you"
                    Print " and magic is weakened, and some experience points."
                    Print "---------------------------------------------------"
                    'modified the dedcution for running away to be variable with armor and shield weighing player down
                    PlayerMagic& = Int(PlayerMagic& / Int(2 + Rnd * 8))
                    PlayerStrength& = PlayerStrength& - Int((2 + Rnd * PlayerArmor%) + Int(Rnd * PlayerShield%))
                    If PlayerStrength& < 0 Then PlayerStrength& = 0
                    PlayerExperience& = PlayerExperience& * .9
                    menu% = 1
                    Exit Sub
                Else
                    Print
                    Print "!!! ------------------------------------------- !!!"
                    Print "          You have FAILED TO ESCAPE !"
                    Print "!!! ------------------------------------------- !!!"
                    PlayerMagic& = Int(PlayerMagic& / Int(2 + Rnd * 8))
                    PlayerStrength& = PlayerStrength& - (PlayerArmor% + PlayerShield%)
                    If PlayerStrength& < 0 Then PlayerStrength& = 0
                End If


                Color _RGB(255, 255, 255)
            Case 4
                Color _RGB(255, 255, 0)
                Print
                Print "---------------------------------------------------"
                Print " You give all your gold to "; RTrim$(EnemyName$);
                Print " Being broke is better than dying I suppose..."
                Print "---------------------------------------------------"
                Color _RGB(255, 255, 255)
                menu% = 1
                PlayerGold& = 0: Exit Sub
            Case 5: YourStats
            Case 6: EnemyStats
            Case 7: menu% = 1
        End Select
    Wend
End Sub


Function GetLevel% (e&)
    Select Case e&
        Case Is < 100: level% = 1
        Case 101 To 500: level% = 2
        Case Else: level% = 3
    End Select
    GetLevel% = level%
End Function

Sub Healer
    Totalhits% = PlayerExperience& \ 10 + 30
    ToHeal% = Totalhits% - PlayerHits&
    Cls
    Color _RGB(255, 200, 200)
    Print
    Print "---------==**[  HARRY THE HEALER  ]**==------------"
    Print
    Print " Welcome friend.  Let me heal your wounds and soul."
    If ToHeal% <= 0 Then
        Print
        Print " Harry looks you over completely and says,"
        Print " You don't require healing, friend.  Goodbye..."
    Else
        Print
        Print " Each hit point costs 3 gold to heal."
        Print " You can afford to heal"; PlayerGold& \ 3; "hit points."
        Print " To max out, You need to heal"; RTrim$(Str$(ToHeal%)); "."
        Print
        Input " How many would you heal? (ENTER for max) ", heal%
        If heal% = 0 Then heal% = ToHeal%
        If heal% > ToHeal% Then heal% = ToHeal%
        If heal% > (PlayerGold& \ 3) Then heal% = PlayerGold& \ 3
        PlayerHits& = PlayerHits& + heal%
        PlayerGold& = PlayerGold& - (heal% * 3)
        Print
        Print " I have healed you for"; heal%; "hit points."
        Print " Go in peace my son..."
        Print
    End If
    Print "---------------------------------------------------"
    Color _RGB(200, 200, 255)

End Sub

Sub MakeEnemy (l%)

    ReDim EN(1 To 5) As String
    ReDim EP(1 To 5) As String

    EP(1) = "Angry "
    EP(2) = "Ferocious "
    EP(3) = "Snarling "
    EP(4) = "Hostile "
    EP(5) = "Wicked "


    Select Case l%
        Case 1
            EN(1) = "Squirrel"
            EN(2) = "Bunny"
            EN(3) = "Hedgehog"
            EN(4) = "Gremkin"
            EN(5) = "Spider"
        Case 2
            EN(1) = "Bear"
            EN(2) = "Boar"
            EN(3) = "Boggart"
            EN(4) = "Troll"
            EN(5) = "GreenMan"
        Case 3
            EN(1) = "Demon"
            EN(2) = "Dragon"
            EN(3) = "Witch"
            EN(4) = "Druid"
            EN(5) = "Wizard"
    End Select
    ecl% = Int(1 + Rnd * (l% + 2))
    EnemyName$ = EP(Int(1 + Rnd * ecl%)) + EN(Int(1 + Rnd * 5))
    EnemyHits& = ((l% * 3 + Rnd * 12) * (1 + Rnd * ecl%))
    EnemyMagic& = ((Rnd * 10 + 10) * l%)
    EnemyStrength& = ((Rnd * 10 + 10) * l%)
    EnemyGold& = ((Rnd * 100 + 100) * (.5 + Rnd * ecl%))
    EnemyWeapon% = (Rnd * 2 + Rnd * (ecl% * 2))
    EnemyExperience& = ((Rnd * 10 + 10) * ecl%)

End Sub

Sub YourStats ()
    Cls
    Color _RGB(255, 255, 0)
    Print "------------==**[  YOUR STATS  ]**==---------------"
    Print " Name      : "; PlayerName$
    Print " Hits      :"; PlayerHits&
    Print " Magic      :"; PlayerMagic&
    Print " Strength  :"; PlayerStrength&
    Print " Gold      :"; PlayerGold&
    Print " Weapon    : "; Weapon$(PlayerWeapon%)
    Print " Shield    : "; Shield$(PlayerShield%)
    Print " Armor      : "; Armor$(PlayerArmor%)
    Print " Experience :"; PlayerExperience&
    Print "---------------------------------------------------"
    Color _RGB(255, 255, 255)
End Sub

Sub EnemyStats ()
    Cls
    Color _RGB(255, 255, 0)
    Print "------------==**[  ENEMY STATS  ]**==--------------"
    Print " Name      : "; EnemyName$
    Print " Hits      :"; EnemyHits&
    Print " Magic      :"; EnemyMagic&
    Print " Strength  :"; EnemyStrength&
    Print " Gold      :"; EnemyGold&
    Print " Weapon    : "; Weapon$(EnemyWeapon%)
    Print " Experience :"; EnemyExperience&
    Print "---------------------------------------------------"
    Color _RGB(255, 255, 255)
End Sub

Sub UseMagic
    Print
    Print
    Do
        Color _RGB(255, 255, 100)
        Print
        Print "------------==**[  CAST A SPELL  ]**==-------------"
        Print
        Print " (H)ealing Spell  (requires 4 magic points)"
        Print " (S)trength Spell  (requires 9 magic points)"
        Print " (Q)uit this menu"
        Print
        Print " You have"; PlayerMagic&; "magic points."
        Print "---------------------------------------------------"
        Print
        Print " [H/S/Q]"

        k% = WaitKey%(" HSQ" + Chr$(13))

        Print
        Select Case k%
            Case 2
                If PlayerMagic& < 4 Then
                    Print "---------------------------------------------------"
                    Print " You don't have enough magic points for that!"
                    Print "---------------------------------------------------"
                Else
                    m% = 1 + Rnd * 9
                    PlayerMagic& = PlayerMagic& - 4
                    PlayerHits& = PlayerHits& + m%
                    Print "---------------------------------------------------"
                    Print " Your spell yields"; m%; "hits."
                    Print "---------------------------------------------------"
                End If
            Case 3
                If PlayerMagic& < 9 Then
                    Print "---------------------------------------------------"
                    Print " You don't have enough magic points for that!"
                    Print "---------------------------------------------------"
                Else
                    m% = 1 + Rnd * 9
                    PlayerMagic& = PlayerMagic& - 9
                    PlayerStrength& = PlayerStrength& + m%
                    Print "---------------------------------------------------"
                    Print " Your spell yields"; m%; "strength."
                    Print "---------------------------------------------------"
                End If
            Case 4, 5: Color _RGB(255, 255, 255): Exit Sub
        End Select
    Loop
End Sub

Sub WalkInWoods
    Color _RGB(255, 255, 255), _RGB(0, 200, 200)
    Select Case (Rnd * 99)
        Case 0 To 9
            rndgold = Int(Rnd * 15) + 2
            PlayerGold& = PlayerGold& + rndgold
            Color _RGB(255, 255, 0), _RGB(0, 200, 200)
            Print: Print " Lucky you! You found"; rndgold; "pieces of gold!"
            Color _RGB(255, 255, 255), _RGB(0, 200, 200)
        Case 10 To 19
            PlayerMagic& = PlayerMagic& + 1
            Color _RGB(100, 255, 100), _RGB(0, 200, 200)
            Print: Print " A nice faerie gives you one magic point!"
            Color _RGB(255, 255, 255), _RGB(0, 200, 200)
        Case 20 To 29: m% = 1 + Rnd * 9
            PlayerHits& = PlayerHits& + m%
            Color _RGB(100, 200, 255), _RGB(0, 200, 200)
            Print: Print " A friendly Elf heals you"; m%; "hit point";
            If m% = 1 Then Print "!": Else Print "s!"
            Color _RGB(255, 255, 255), _RGB(0, 200, 200)
        Case 30 To 89
            Print: Print " The path continues before you. Now what?"
        Case Else: FightMonster
    End Select
End Sub

Function Weapon$ (w%)
    Select Case w%
        Case 0: Weapon$ = "Your Bare Hands"
        Case 1: Weapon$ = "A Cudgel"
        Case 2: Weapon$ = "A Quarterstaff"
        Case 3: Weapon$ = "A Small Knife"
        Case 4: Weapon$ = "A Big Knife"
        Case 5: Weapon$ = "A Machete"
        Case 6: Weapon$ = "A Shortsword"
        Case 7: Weapon$ = "A Rapier"
        Case 8: Weapon$ = "A Messer"
        Case 8: Weapon$ = "A Longsword"
        Case 9: Weapon$ = "A Flammard"
        Case 10: Weapon$ = "A Grand-Messer"
        Case 11: Weapon$ = "A SwordAxe"
        Case 12: Weapon$ = "A GreatSword"
    End Select
End Function
Function Shield$ (w%)
    Select Case w%
        Case 0: Shield$ = "Dumb Luck"
        Case 1: Shield$ = "Wicker Buckler"
        Case 2: Shield$ = "Wooden Buckler"
        Case 3: Shield$ = "Wicker Tower Shield"
        Case 4: Shield$ = "Brass Buckler"
        Case 5: Shield$ = "Wooden Heater"
        Case 6: Shield$ = "Wooden Round Shield"
        Case 7: Shield$ = "Brass Heater"
        Case 8: Shield$ = "Wooden Round Shield"
        Case 9: Shield$ = "Wooden Tower Shield"
        Case 10: Shield$ = "Brass Round Shield"
        Case 11: Shield$ = "Wooden Kite Shield"
        Case 12: Shield$ = "Brass Kite Shield"
    End Select
End Function
Function Armor$ (w%)
    Select Case w%
        Case 0: Armor$ = "Your Bare Skin"
        Case 1: Armor$ = "Leather Jerkin"
        Case 2: Armor$ = "Padded Aketon"
        Case 3: Armor$ = "Studded Leather Cotte"
        Case 4: Armor$ = "Brass Scale Hauberk"
        Case 5: Armor$ = "Iron Chain Mail"
        Case 6: Armor$ = "Double Mail"
        Case 7: Armor$ = "Plate & Mail"
        Case 8: Armor$ = "Full Plate"
        Case 9: Armor$ = "Elfin Mail"
        Case 10: Armor$ = "Rune-Scrawled Plate"
        Case 11: Armor$ = "Dwarven War Harness"
        Case 12: Armor$ = "Golem Plate"
    End Select
End Function




Sub Woods
    menu% = 1
    Do
        level% = GetLevel%(PlayerExperience&)
        If PlayerExperience& > 2000 Then PlayerHits& = 0

        Print
        If PlayerHits& = 0 Then Exit Sub
        If menu% <> 0 Then
            Color _RGB(255, 255, 255), _RGB(0, 200, 200)
            Print
            Print " You're in the woods, alone.  Now what?"
            Print
            Print " (C)ontinue .....Walk the path."
            Print " (T)own .........Go Back to town."
            Print " (S)pell.........Cast a Spell."
            Print " (Y)our Stats....Show your stats."
            Print
        End If
        menu% = 0
        Print " [C/S/T/Y/?] "

        k% = WaitKey%(" CTSY?")

        Select Case k%

            Case 2 'Pressed Continue walking...

                Select Case (Rnd * 99)
                    Case 0 To 9 'found gold
                        rndgold = Int(Rnd * 15) + 2
                        PlayerGold& = PlayerGold& + rndgold
                        Color _RGB(255, 255, 0), _RGB(200, 200, 100)
                        Print: Print " Lucky you! You found"; rndgold; "pieces of gold!"
                        Color _RGB(255, 255, 255), _RGB(200, 200, 100)
                    Case 10 To 19 'faerie magic
                        PlayerMagic& = PlayerMagic& + 1
                        Color _RGB(100, 255, 100), _RGB(200, 200, 100)
                        Print: Print " A nice faerie gives you one magic point!"
                        Color _RGB(255, 255, 255), _RGB(200, 200, 100)
                    Case 20 To 29 'elf heals you
                        m% = 1 + Rnd * 9
                        PlayerHits& = PlayerHits& + m%
                        Color _RGB(100, 200, 255), _RGB(200, 200, 100)
                        Print: Print " A friendly Elf heals you"; m%; "hit point";
                        If m% = 1 Then Print "!": Else Print "s!"
                        Color _RGB(255, 255, 255), _RGB(200, 200, 100)
                    Case 30 To 89 'nothing, you just continue
                        Print: Print " The path continues before you. Now what?"
                    Case Else 'Monster fight!
                        FightMonster: menu% = 1
                End Select

            Case 3: Exit Sub 'back to town

            Case 4: UseMagic: menu% = 1 'you use your magic
            Case 5: YourStats 'show your stats
            Case 6: menu% = 1 'Pressed ? for help

        End Select

    Loop
End Sub

Function WaitKey% (keys$)
    Do
        _Limit 60
        k% = InStr(keys$, UCase$(InKey$))
    Loop While k% < 2
    WaitKey% = k%
End Function

Sub BIGFONT (size)
    'loads a custom size CP437 font (like QB64's built-in one)'
    'You can make/use any size now.
    A$ = ""
    A$ = A$ + "haIgm]0MLEMMXkS^ST\\T]lHiaboe<Nl8c71HYa3f0VPiWa9H07n5a_0bn:K"
    A$ = A$ + ";#FB8;c773hBD8T42E_#C:=QBC39PSQB=DB2UhdhVBB^9=_D2EQ#Ala?JFmi"
    A$ = A$ + "ejeGKNiYTV4\UNkOWcmL791Y0Iefg<NdmNWiLfWmIoO_?WkeP10H6`NP0HS["
    A$ = A$ + "KMGj5l9Nf7lH0HC;3of5MAGb9ef>>V6V60Vfa[_^=_m>j[Y]NOC7PDY`?kKc"
    A$ = A$ + "gd0IQB1o20VfnaO?eFkH7m=nh8TP=]8ljY]e^_e]DhRj<;0CoG1`5>lfj\S`"
    A$ = A$ + "IOn5Z6o]G6oLbK3oRZONcW6QoL`[Gfffn0gBQ5]P_=NmC3#5__^kMcMlg=[o"
    A$ = A$ + "a=RPjY`[?W]ga]dWICVEPonZafW]W>fNWObWOGk3P[h7POg7[_Nga07oM<8f"
    A$ = A$ + "f[2agZnF0=g`?kjkmmOT[]nel;PVZJ]hg0?OKcLadaGiKoLOB06[_P\Y8lOJ"
    A$ = A$ + "#5Pl2kCZm?FO04TU^4o[1Bn:5m=VLhOH8jj9mj4UF4Te<4D9R7[U6eP\fS#H"
    A$ = A$ + "5]c]X6G?2l1mUORGl9Rl3CcgPP3Yf?27leNXQi017VViP9PXlI5<D`Bg[8lC"
    A$ = A$ + "8OFXkk2MW7jMNL?lKIT21l_VF:3>F2D;LOV8TRaP9n:<aIA^f=aF7iJaK2<#"
    A$ = A$ + "L8<Ak3Q9<_mJcKe[TDPTc\936fA:ngRlXaf?Q:5<^GQ:NaoU>Jo437Vj6iV1"
    A$ = A$ + "CjiCm;DJYL^oDO^mEPnIARTN`G4_b`GW:h^aS?8:nE5\4h>P72nB`S0?6lT`"
    A$ = A$ + "G3n6`g4n^`g3nA`;PJd_>l_2S2oK`APa=OZPk;hn3NXP7>h;7l41OUP36l\1"
    A$ = A$ + "OW\;=kJbN7IOTLOjLkMY;HY=]dSMY[OYM\d>cGAnIU?G1X#55Z[`\:<W2c[`"
    A$ = A$ + "R:\\2]DHU5FCQ^;\W23Fh^;L?5^_2On2?FQW\`cDh05Nf2o]5n7JN==_fV?["
    A$ = A$ + "V_^VgLcKYiK0]l#_nl<n]?Ho`G1N64oNF7nmJ`?5no0oBhG?1lkY#lk_a3o6"
    A$ = A$ + "2a_i_dUXhG8SOIW2lKS>lKXb`_G\iCeQOMfleChgho?6o#SoJSo:SoBSoRSo"
    A$ = A$ + "2SoS7o7=nc=ngKl_mh7LloZao6SOPaojSo<SodSglAKnX;mXckXcmXciXchX"
    A$ = A$ + "eNDcA6o8SMX7j#Ol3]n3Uke>UGKi_jGkEOZGmAOe?i[^cGM7_b?iEnn_bGOT"
    A$ = A$ + "GITGNTonAN^An_?bgOT_k87LTobANbANdA^oAn8SLWSL7S\kA^eAfn8KJT[I"
    A$ = A$ + "T;OT;KT;LTe?bJNYGnUn7NYGlUnj_dOi;md_dG1if?hKUTeoQnbPBTY#kYE1"
    A$ = A$ + "ESFZ[1V>D;D7jiJVX]gjQI1YQI3=0c1b0c5J4V7<OH1`2Aig5SB]=QF<c1;5"
    A$ = A$ + "b3;3:0=3;7>6hHQS3>NX5h4#keW4\2XEX=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[jhfZ>oJE7o"
    A$ = A$ + "FeaOEjacDaScZ]:?_>fnfkXb;MKM>#7EN9M]e]gA`6gFGl_Fl<?U:kXknfF7"
    A$ = A$ + "E6fIg3dAeMfg>jZkNkYbM`]JP>fI#OK[[JjlFfLgM\m`=e=eWf`AXZnjL78`"
    A$ = A$ + "ZYSnk_gK^k>gb0EcW]cnV>O\o^fjf6#na`N_iNTcfD_3\]JdV5fCM^cfd>jT"
    A$ = A$ + "1KK]N:C_gn7HKm^eNkYS^[[[N60]XdiV70=ZDKWgh>kjVjXk>kIcMFifjMWk"
    A$ = A$ + "XcIdOWgDgm^e^fL7MgC_3<MZaK]o>jNPnLW^Y1VfU\^F9aQE#WdZNb:LWDdN"
    A$ = A$ + "BKfCFYmTEK?iD\WLbfCFUmTBj9[d2Wf\M_TM8:IQLA;LJcn=]IKCKFhDbRZ["
    A$ = A$ + "dfhRFdX=g9fA_=;nDdMRmWFYM8Je=XF8gV5EGY[aF8_B;n\Bglb2iEJkN9g4"
    A$ = A$ + "d1WE:ZKm]Y^kMcg#e8_T>FYLEgKA>fo0je3\S]eAHWEbo]j`KP?FcFjZk^k<"
    A$ = A$ + "LCmN;CG>[OTSGm0mgE7KMWm97kG_>\7iHgKYZ=gEoK^k>[Y[N^Y=]C\C3#WY"
    A$ = A$ + "Og>fNGXlH7K^CD0jVLG4\SMfCEKYc]SR#YXoDi>j37lDK^kM^Y:gFWMP3AHG"
    A$ = A$ + "M\mNk9\f]_cMX2EM>C_cAIOa=ehScNbHoGSl3nVg6Mdooo4noEAM%%h1"
    btemp$ = ""
    For i& = 1 To Len(A$) Step 4: B$ = Mid$(A$, i&, 4)
        If InStr(1, B$, "%") Then
            For C% = 1 To Len(B$): F$ = Mid$(B$, C%, 1)
                If F$ <> "%" Then C$ = C$ + F$
            Next: B$ = C$: End If: For j = 1 To Len(B$)
            If Mid$(B$, j, 1) = "#" Then
        Mid$(B$, j) = "@": End If: Next
        For t% = Len(B$) To 1 Step -1
            B& = B& * 64 + Asc(Mid$(B$, t%)) - 48
            Next: X$ = "": For t% = 1 To Len(B$) - 1
            X$ = X$ + Chr$(B& And 255): B& = B& \ 256
    Next: btemp$ = btemp$ + X$: Next
    BASFILE$ = _Inflate$(btemp$, 25152): btemp$ = ""
    _Font _LoadFont(BASFILE$, size, "memory, monospace")
End Sub
Sub savegame
    Open PlayerName$ + ".wpl" For Output As #1
    Write #1, PlayerName$
    Write #1, PlayerHits&
    Write #1, PlayerMagic&
    Write #1, PlayerStrength&
    Write #1, PlayerGold&
    Write #1, PlayerWeapon%
    Write #1, PlayerExperience&
    Write #1, PlayerShield%
    Write #1, PlayerArmor%
    Close #1
    Print
    Print "Game Saved"
    Print

End Sub
Sub loadgame (PN$)
    Print "Loading "; PN$;
    Open PN$ + ".wpl" For Input As #1
    Input #1, PlayerName$
    _Delay .1: Print ".";
    Input #1, PlayerHits&
    _Delay .1: Print ".";
    Input #1, PlayerMagic&
    _Delay .1: Print ".";
    Input #1, PlayerStrength&
    _Delay .1: Print ".";
    Input #1, PlayerGold&
    _Delay .1: Print ".";
    Input #1, PlayerWeapon%
    _Delay .1: Print ".";
    Input #1, PlayerExperience&
    _Delay .1: Print ".";
    Input #1, PlayerShield%
    _Delay .1: Print ".";
    Input #1, PlayerArmor%
    _Delay .1: Print ".";
    Close #1
    _Delay .1: Print "LOADED";
    _Delay .5
End Sub



RE: Modified Qbasic game THEWOODS.BAS by Kurt Kuzba - Dav - 09-20-2023

Nice additions, James!   Your posted code won't run as is, the forum messes up the encoded file data in the BIGFONT SUB unless you post the scource in the old CODE tag. I replaced the SUB with a fresh version and it ran OK.

I tweaked yours a little bit to fix a menu issue.  The armory menu choices were not all being polled so I raised the k% value to catch those extra items.  I also compacted the Player Stats display so it won't scroll off the screen.  I commented out the teal color when enetering the woods, my laptop display isn't the best and I couldn't read the screen as well in that color here.

- Dav

Code: (Select All)
'=====================
'Further adventures in THEWOODS-MODIFIED.BAS
'=====================
'A modified version of THEWOODS.BAS by Kurt Kuzba that he
'placed in public domain and encouraged others to build on.
'It's a text adventure game in the classic BBS game style.
'Kurt posted it on the FibdoNet QUIK_BAS Echo back in 1997.
'You can find the original THEWOODS.BAS in the ABC packets.
'Kurt, thanks for the game - If you're still out there,
'Come back to the BASIC scene!  You'll love QB64!

'Modified by Dav for QB64-PE 3.8, SEP/2023
'further modifeid by James Jarvis SEP/2023  - added more equipment options and more monsters
'Dav modified James version above to select all menu choices in armory (IF k%...), and...
'  re-organized player STATS a little so they show without scrolling off screen. 9/20/2023

DIM SHARED q$: q$ = CHR$(34)
DIM SHARED PlayerName$, PlayerHits&, PlayerMagic&, PlayerStrength&
DIM SHARED PlayerGold&, PlayerWeapon%, PlayerExperience&, PlayerShield%, PlayerArmor%
DIM SHARED EnemyName$, EnemyHits&, EnemyMagic&, EnemyStrength&
DIM SHARED EnemyGold&, EnemyWeapon%, EnemyExperience&
DIM SHARED sprice%(16), aprice%(16), wprice%(16)

RANDOMIZE TIMER

dh = INT(_DESKTOPHEIGHT * .80)
SCREEN _NEWIMAGE(dh * 1.25, dh, 32)
BIGFONT INT(_HEIGHT / 21)
WIDTH 52, 21
FOR n = 1 TO 12
    wprice%(n) = (n + (n - 2) / 2) * 60
    sprice%(n) = n * 50
    aprice%(n) = n * n * 50
    IF n > 9 THEN
        wprice%(n) = wprice%(n) * (n / 3)
        sprice%(n) = sprice%(n) * 2
        aprice%(n) = aprice%(n) * 3
    END IF
NEXT n

'======
Restart:
'======

CLS , _RGB(32, 32, 128) 'background color

COLOR _RGB(255, 255, 255), _RGB(32, 32, 128) 'Standard Text color

COLOR _RGB(255, 255, 0)
PRINT
PRINT "            -= Welcome to THE WOODS =-"
PRINT
COLOR _RGB(255, 255, 255)

PRINT "  Terrible beasts are roaming the nearby woods."
PRINT "  People in town live in constant fear of what "
PRINT "  lurks beyond the town gate.  Those who decide"
PRINT "  to venture out seldom return.  Something must"
PRINT "  be done.  Someone must save the town."
PRINT
PRINT "  You have decided to be the brave hero and to"
PRINT "  eliminate the evil inhabiting the woods.  It"
PRINT "  will NOT be easy however.  You will face many"
PRINT "  malevolent forces, many dark and evil beasts."
PRINT
PRINT "  Go into the woods, hunt down the beasts until"
PRINT "  you reach 2,000 experience points to win."
PRINT
COLOR _RGB(255, 255, 0)
PRINT " Load a Saved quest? (YN)? ";
IF WaitKey%(" YN") = 2 THEN
    PRINT
    INPUT "  Your name? ", plyr$
    loadgame plyr$
ELSE
    PRINT
    INPUT "  Your name? ", plyr$

    IF plyr$ > "" THEN

        PlayerName$ = plyr$
        PlayerHits& = 30
        PlayerMagic& = 0
        PlayerStrength& = 0
        PlayerGold& = 100
        PlayerWeapon% = 0
        PlayerExperience& = 0
    END IF
END IF
menu% = 1 'show full menu

YourStats 'Show you stats at the beginning of the game

'the main game play loop

DO
    _LIMIT 60
    IF PlayerHits& > 0 THEN
        PRINT
        IF menu% > 0 THEN
            COLOR _RGB(255, 255, 255)
            PRINT " You're in the middle of town.  What now?"
            PRINT
            PRINT " (W)oods  - Enter the woods."
            PRINT " (H)ealer - Heal your wounds."
            PRINT " (A)rmory - Buy/Sell equipment."
            PRINT " (S)tats  - See your stats."
            PRINT " (Q)uit  - Quit game."
        END IF
        PRINT
        PRINT " [W/H/A/S/Q/?]";

        SELECT CASE WaitKey%(" WHASQ?")
            CASE 2: Woods
            CASE 3: Healer
            CASE 4: Armory
            CASE 5: YourStats
            CASE 6: PRINT: PRINT
                PRINT " Quit this quest? (YN)? ";
                IF WaitKey%(" YN") = 2 THEN
                    PRINT
                    PRINT " Save The Game? (YN)? ";
                    IF WaitKey%(" YN") = 2 THEN
                        savegame
                    END IF
                    EXIT DO
                END IF
            CASE 7: PRINT: menu% = 1
        END SELECT
    ELSE
        COLOR _RGB(255, 200, 200)
        IF PlayerExperience& < 2000 THEN
            PRINT
            PRINT " Sorry... You have perished in battle."
            FOR t% = 200 TO 150 STEP -1: SOUND t%, .1: NEXT
        ELSE
            PRINT
            PRINT " You have defeated all enemies! You WIN!!"
            FOR t% = 100 TO 999 STEP 10: SOUND t%, .03: NEXT
            FOR t% = 1000 TO 500 STEP -10: SOUND t%, .03: NEXT
        END IF
        PRINT " You had"; PlayerExperience&; "points."
        EXIT DO
    END IF
LOOP

COLOR _RGB(255, 255, 0)
PRINT: PRINT " Would you like to play again (YN)? ";

IF WaitKey%(" YN") = 2 THEN GOTO Restart


PRINT: PRINT " Goodbye, then..."
SLEEP 2
SYSTEM


SUB Armory
    DIM price(1 TO 8) AS INTEGER
    price(1) = 75
    price(2) = 200
    price(3) = 400
    price(4) = 600
    price(5) = 900
    price(6) = 1500
    price(7) = 2500
    price(8) = 4000
    DO
        CLS
        PRINT
        PRINT "---------------------------------------------------"
        PRINT "          -==**[ Jake's Weapon Shop ]**==-        "
        PRINT "---------------------------------------------------"
        PRINT
        PRINT " Welcome to Jake's.  We only sell the finest."
        PRINT " Jake looks you over suspiciously and asks..."
        PRINT " Interested in (W)eapons, (S)hields, or (A)rmor?"
        PRINT
        PRINT " [W/S/A or ENTER to leave] "
        PRINT
        SELECT CASE WaitKey%(" WSA" + CHR$(13))
            CASE 2 'weapons
                PRINT
                PRINT "Ah yes, Weapons..."
                PRINT "  "
                PRINT "  Do you want to (B)uy or (S)ell?"
                PRINT
                PRINT " [B/S or ENTER to leave] "
                PRINT
                SELECT CASE WaitKey%(" SB" + CHR$(13))
                    CASE 2 'selling weapons
                        money% = PlayerWeapon% * 30
                        IF money% = 0 THEN
                            COLOR _RGB(255, 255, 0)
                            PRINT
                            PRINT "---------------------------------------------------"
                            PRINT " Sell what? You're not carrying anything!"
                            PRINT " Come back when you have something valuable."
                            PRINT "---------------------------------------------------"
                            COLOR _RGB(255, 255, 255)
                            EXIT SUB
                        ELSE
                            COLOR _RGB(255, 255, 0)
                            PRINT
                            PRINT "---------------------------------------------------"
                            PRINT " Hmm...I'll give you"; money%; "gold for ";
                            PRINT RTRIM$(Weapon$(PlayerWeapon%)); "."
                            PRINT " Is it a deal (Y/N)? ";
                            PRINT "---------------------------------------------------"
                            PRINT
                            COLOR _RGB(255, 255, 255)

                            k% = WaitKey%(" YN")

                            PRINT
                            IF k% = 2 THEN
                                COLOR _RGB(255, 255, 0)
                                PRINT
                                PRINT "---------------------------------------------------"
                                PRINT " Great!  Here's your money.  Now go away."
                                PRINT "---------------------------------------------------"
                                COLOR _RGB(255, 255, 255)
                                PlayerGold& = PlayerGold& + money%
                                PlayerWeapon% = 0
                                EXIT SUB
                            END IF

                        END IF

                    CASE 3 'buying weapons
                        PRINT "--------------==**[  PRICES  ]**==-----------------"
                        PRINT
                        FOR t% = 1 TO 12: PRINT HEX$(t%); "->";
                            PRINT " "; LEFT$(STR$(wprice%(t%)) + "    ", 6);
                            PRINT " "; Weapon$(t%)
                        NEXT
                        PRINT
                        PRINT " You have"; PlayerGold&; "gold.  Which one you want (1-C)?"
                        PRINT " (Hit ENTER to buy nothing)"

                        k% = WaitKey%(" 123456789AB" + CHR$(13))

                        k% = k% - 1
                        IF k% < 14 THEN
                            money% = wprice%(k%)
                            IF money% > PlayerGold& THEN
                                COLOR _RGB(255, 255, 0)
                                PRINT
                                PRINT "---------------------------------------------------"
                                PRINT " You can't afford "; RTRIM$(Weapon$(k%)); "."
                                PRINT " Come back when you have more gold."
                                PRINT "---------------------------------------------------"
                                COLOR _RGB(255, 255, 255)

                                EXIT SUB
                            ELSE
                                COLOR _RGB(255, 255, 0)
                                PRINT
                                PRINT "---------------------------------------------------"
                                PRINT " Sold! Good luck with "; RTRIM$(Weapon$(k%)); "."
                                PRINT " Close the door on your way out."
                                PRINT "---------------------------------------------------"
                                COLOR _RGB(255, 255, 255)

                                PlayerGold& = PlayerGold& - money%
                                PlayerWeapon% = k%
                                EXIT SUB
                            END IF
                        END IF

                    CASE 4, 5:
                        COLOR _RGB(255, 255, 0)
                        PRINT
                        PRINT "---------------------------------------------------"
                        PRINT " Ok, maybe next time, says Jake with a grumble."
                        PRINT "---------------------------------------------------"
                        COLOR _RGB(255, 255, 255)
                        EXIT SUB
                END SELECT
            CASE 3 'shields
                PRINT
                PRINT "Ah yes, Shields..."
                PRINT "  "
                PRINT "  Do you want to (B)uy or (S)ell?"
                PRINT
                PRINT " [B/S or ENTER to leave] "
                PRINT
                SELECT CASE WaitKey%(" SB" + CHR$(13))
                    CASE 2 'selling shields
                        money% = PlayerShield% * 30
                        IF money% = 0 THEN
                            COLOR _RGB(255, 255, 0)
                            PRINT
                            PRINT "---------------------------------------------------"
                            PRINT " Sell what? You're not carrying anything!"
                            PRINT " Come back when you have something valuable."
                            PRINT "---------------------------------------------------"
                            COLOR _RGB(255, 255, 255)
                            EXIT SUB
                        ELSE
                            COLOR _RGB(255, 255, 0)
                            PRINT
                            PRINT "---------------------------------------------------"
                            PRINT " Hmm...I'll give you"; money%; "gold for ";
                            PRINT RTRIM$(Shield$(PlayerShield%)); "."
                            PRINT " Is it a deal (Y/N)? ";
                            PRINT "---------------------------------------------------"
                            PRINT
                            COLOR _RGB(255, 255, 255)

                            k% = WaitKey%(" YN")

                            PRINT
                            IF k% = 2 THEN
                                COLOR _RGB(255, 255, 0)
                                PRINT
                                PRINT "---------------------------------------------------"
                                PRINT " Great!  Here's your money."
                                PRINT "---------------------------------------------------"
                                COLOR _RGB(255, 255, 255)
                                PlayerGold& = PlayerGold& + money%
                                PlayerShield% = 0
                                EXIT SUB
                            END IF

                        END IF

                    CASE 3 'buying shield
                        PRINT "--------------==**[  PRICES  ]**==-----------------"
                        PRINT
                        FOR t% = 1 TO 12: PRINT HEX$(t%); "->";
                            PRINT " "; LEFT$(STR$(sprice%(t%)) + "    ", 6);
                            PRINT " "; Shield$(t%)
                        NEXT
                        PRINT
                        PRINT " You have"; PlayerGold&; "gold.  Which one you want (1-C)?"
                        PRINT " (Hit ENTER to buy nothing)"

                        k% = WaitKey%(" 123456789ABC" + CHR$(13))

                        k% = k% - 1
                        IF k% < 13 THEN
                            money% = sprice%(k%)
                            IF money% > PlayerGold& THEN
                                COLOR _RGB(255, 255, 0)
                                PRINT
                                PRINT "---------------------------------------------------"
                                PRINT " You can't afford "; RTRIM$(Shield$(k%)); "."
                                PRINT " Come back when you have more gold."
                                PRINT "---------------------------------------------------"
                                COLOR _RGB(255, 255, 255)

                                EXIT SUB
                            ELSE
                                COLOR _RGB(255, 255, 0)
                                PRINT
                                PRINT "---------------------------------------------------"
                                PRINT " Sold! Bear that "; RTRIM$(Shield$(k%)); " well."
                                PRINT " Close the door on your way out."
                                PRINT "---------------------------------------------------"
                                COLOR _RGB(255, 255, 255)

                                PlayerGold& = PlayerGold& - money%
                                PlayerShield% = k%
                                EXIT SUB
                            END IF
                        END IF

                    CASE 4, 5:
                        COLOR _RGB(255, 255, 0)
                        PRINT
                        PRINT "---------------------------------------------------"
                        PRINT " Ok, maybe next time, says Jake with a grumble."
                        PRINT "---------------------------------------------------"
                        COLOR _RGB(255, 255, 255)
                        EXIT SUB
                END SELECT
            CASE 4 'armor
                PRINT
                PRINT "Ah yes, Armor..."
                PRINT "  "
                PRINT "  Do you want to (B)uy or (S)ell?"
                PRINT
                PRINT " [B/S or ENTER to leave] "
                PRINT
                SELECT CASE WaitKey%(" SB" + CHR$(13))
                    CASE 2 'selling armor
                        money% = PlayerArmor% * 30
                        IF money% = 0 THEN
                            COLOR _RGB(255, 255, 0)
                            PRINT
                            PRINT "---------------------------------------------------"
                            PRINT " Sell what? You're not carrying anything!"
                            PRINT " Come back when you have something valuable."
                            PRINT "---------------------------------------------------"
                            COLOR _RGB(255, 255, 255)
                            EXIT SUB
                        ELSE
                            COLOR _RGB(255, 255, 0)
                            PRINT
                            PRINT "---------------------------------------------------"
                            PRINT " Hmm...I'll give you"; money%; "gold for ";
                            PRINT RTRIM$(Armor$(PlayerArmor%)); "."
                            PRINT " Is it a deal (Y/N)? ";
                            PRINT "---------------------------------------------------"
                            PRINT
                            COLOR _RGB(255, 255, 255)

                            k% = WaitKey%(" YN")

                            PRINT
                            IF k% = 2 THEN
                                COLOR _RGB(255, 255, 0)
                                PRINT
                                PRINT "---------------------------------------------------"
                                PRINT " Great!  Here's your money."
                                PRINT "---------------------------------------------------"
                                COLOR _RGB(255, 255, 255)
                                PlayerGold& = PlayerGold& + money%
                                PlayerArmor% = 0
                                EXIT SUB
                            END IF

                        END IF

                    CASE 3 'buying armor
                        PRINT "--------------==**[  PRICES  ]**==-----------------"
                        PRINT
                        FOR t% = 1 TO 12: PRINT HEX$(t%); "->";
                            PRINT " "; LEFT$(STR$(aprice%(t%)) + "    ", 6);
                            PRINT " "; Armor$(t%)
                        NEXT
                        PRINT
                        PRINT " You have"; PlayerGold&; "gold.  Which one you want (1-C)?"
                        PRINT " (Hit ENTER to buy nothing)"

                        k% = WaitKey%(" 123456789ABC" + CHR$(13))

                        k% = k% - 1
                        IF k% < 15 THEN
                            money% = aprice%(k%)
                            IF money% > PlayerGold& THEN
                                COLOR _RGB(255, 255, 0)
                                PRINT
                                PRINT "---------------------------------------------------"
                                PRINT " You can't afford "; RTRIM$(Armor$(k%)); "."
                                PRINT " Come back when you have more gold."
                                PRINT "---------------------------------------------------"
                                COLOR _RGB(255, 255, 255)

                                EXIT SUB
                            ELSE
                                COLOR _RGB(255, 255, 0)
                                PRINT
                                PRINT "---------------------------------------------------"
                                PRINT " Sold! Wear that "; RTRIM$(Armor$(k%)); " well."
                                PRINT " Close the door on your way out."
                                PRINT "---------------------------------------------------"
                                COLOR _RGB(255, 255, 255)

                                PlayerGold& = PlayerGold& - money%
                                PlayerArmor% = k%
                                EXIT SUB
                            END IF
                        END IF
                    CASE 4, 5:
                        COLOR _RGB(255, 255, 0)
                        PRINT
                        PRINT "---------------------------------------------------"
                        PRINT " Ok, maybe next time, says Jake with a grumble."
                        PRINT "---------------------------------------------------"
                        COLOR _RGB(255, 255, 255)
                        EXIT SUB
                END SELECT
            CASE ELSE
                EXIT SUB
        END SELECT
LOOP: END SUB

SUB FightMonster
    level% = GetLevel%(PlayerExperience&)
    MakeEnemy level%
    EnemyName$ = RTRIM$(EnemyName$)
    COLOR _RGB(255, 255, 0), _RGB32(200, 0, 0)
    PRINT
    PRINT "---------------------------------------------------"
    PRINT " You came upon a "; RTRIM$(EnemyName$); "!"
    PRINT "---------------------------------------------------"

    menu% = 1
    WHILE (PlayerHits& > 0) AND (EnemyHits& > 0)
        IF menu% > 0 THEN
            PRINT
            PRINT " (F)ight!            (D)efend!    "
            PRINT " (R)un Away          (Y)our Stats "
            PRINT " (S)urrender        (V)iew Enemy "
        END IF
        PRINT
        COLOR _RGB(255, 200, 200)
        PRINT PlayerHits&;
        PRINT PlayerName$
        PRINT EnemyHits&;
        PRINT EnemyName$
        PRINT
        COLOR _RGB(255, 255, 255)
        PRINT " [F/D/R/S/Y/V/?] "

        level% = GetLevel%(PlayerExperience&)

        k% = WaitKey%(" FRSYV?D")

        SELECT CASE k%
            CASE 2, 8
                PlayerAtt! = 1 + PlayerWeapon%
                PlayerAtt! = PlayerAtt! * (1 + (PlayerStrength& / 10))
                PlayerAtt! = 5 + (RND * PlayerAtt! * 5 * level%)
                PlayerDef! = 1 + (PlayerStrength& / 100) + INT(RND * (PlayerShield% / 2)) + PlayerArmor%
                IF k% = 8 AND PlayerShield% > 0 THEN
                    IF PlayerStrength& > PlayerShield% THEN
                        PlayerDef! = PlayerDef! + 2 * INT(RND * PlayerShield%)
                    ELSE
                        PlayerDef! = PlayerDef! + INT(RND * (PlayerShield% / 2))
                    END IF
                    PlayerAtt! = PlayerAtt! \ 2
                END IF
                EnemyAtt! = EnemyWeapon% * (1 + RND * (EnemyStrength& / 5))
                EnemyDef! = 1 + (EnemyStrength& / 100)

                IF (RND * 30) - 6 > PlayerArmor% + PlayerShield% THEN
                    COLOR _RGB(255, 255, 0)
                    PRINT
                    PRINT "---------------------------------------------------"
                    PRINT " You move fast and hit first."
                    hits% = PlayerAtt! / EnemyDef!
                    IF hits% > EnemyHits& THEN hits% = EnemyHits&
                    EnemyHits& = EnemyHits& - hits%
                    PRINT " You hit for"; hits%; "points."
                    PlayerExperience& = PlayerExperience& + hits%
                    IF EnemyHits& > 0 THEN
                        hits% = EnemyAtt! / PlayerDef!
                        IF hits% > PlayerHits& THEN hits% = PlayerHits&
                        PlayerHits& = PlayerHits& - hits%
                        PRINT " You are hit for"; hits%; "points."
                    END IF
                    PRINT "---------------------------------------------------"
                ELSE
                    COLOR _RGB(255, 255, 0)
                    PRINT
                    PRINT "---------------------------------------------------"
                    PRINT " You move slow and get hit first."
                    hits% = EnemyAtt! / PlayerDef!
                    IF hits% > PlayerHits& THEN hits% = PlayerHits&
                    PlayerHits& = PlayerHits& - hits%
                    PRINT " You are hit for"; hits%; "points."
                    IF PlayerHits& > 0 THEN
                        hits% = PlayerAtt! / EnemyDef!
                        IF hits% > EnemyHits& THEN hits% = EnemyHits&
                        EnemyHits& = EnemyHits& - hits%
                        PlayerExperience& = PlayerExperience& + hits%
                        PRINT " You hit for"; hits%; "points."
                    END IF
                    PRINT "---------------------------------------------------"

                    IF INSTR(EnemyName$, "Witch") > 0 AND RND * 10 < 2 THEN
                        PRINT " The Witch has used Her Evil Eye!"
                        PRINT " Your Magic is Weakened!"
                        PRINT "---------------------------------------------------"
                        PlayerMagic& = INT(PlayerMagic& / 2)
                    END IF
                    IF INSTR(EnemyName$, "Wizard") > 0 AND RND * 10 < 2 THEN
                        PRINT " The Wizard has used Hexed you!"
                        PRINT " Your Strength is Weakened!"
                        PRINT "---------------------------------------------------"
                        PlayerStrength& = INT(PlayerStrength& / 2)
                    END IF
                    IF INSTR(EnemyName$, "Druid") > 0 AND RND * 10 < 2 THEN
                        PRINT " The Druid has Cursed you!"
                        PRINT " Your Magic and Strength is Weakened!"
                        PRINT "---------------------------------------------------"
                        PlayerStrength& = INT(PlayerStrength& * .75)
                        PlayerMagic& = INT(PlayerMagic& * .75)
                    END IF



                END IF
                IF k% = 8 AND PlayerShield% > 0 AND RND * 20 < 2 THEN 'check for broken shield
                    IF INT(RND * 27) > PlayerShield% THEN
                        PRINT
                        PRINT ">>>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<"
                        PRINT " Your "; Shield$(PlayerShield%); " has BROKEN !!"
                        PRINT ">>>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<"
                        PlayerShield% = 0
                    END IF
                END IF
                IF EnemyHits& = 0 THEN
                    COLOR _RGB(255, 255, 0)
                    PRINT
                    PRINT "---------------------------------------------------"
                    PRINT " You have defeated the "; RTRIM$(EnemyName$)
                    PRINT "---------------------------------------------------"
                    PlayerMagic& = PlayerMagic& + EnemyMagic& \ 10
                    PlayerGold& = PlayerGold& + EnemyGold&
                    menu% = 1
                END IF

                IF PlayerHits& = 0 THEN
                    COLOR _RGB(255, 255, 0)
                    PRINT
                    PRINT "---------------------------------------------------"
                    PRINT " You were defeated by "; RTRIM$(EnemyName$)
                    PRINT "---------------------------------------------------"
                END IF

            CASE 3
                COLOR _RGB(255, 255, 0)
                IF INT(RND * 12) > PlayerArmor% THEN 'yup less armor imporves chance to escape
                    PRINT
                    PRINT "---------------------------------------------------"
                    PRINT " You manage to escape, but it has tired you"
                    PRINT " and magic is weakened, and some experience points."
                    PRINT "---------------------------------------------------"
                    'modified the dedcution for running away to be variable with armor and shield weighing player down
                    PlayerMagic& = INT(PlayerMagic& / INT(2 + RND * 8))
                    PlayerStrength& = PlayerStrength& - INT((2 + RND * PlayerArmor%) + INT(RND * PlayerShield%))
                    IF PlayerStrength& < 0 THEN PlayerStrength& = 0
                    PlayerExperience& = PlayerExperience& * .9
                    menu% = 1
                    EXIT SUB
                ELSE
                    PRINT
                    PRINT "!!! ------------------------------------------- !!!"
                    PRINT "          You have FAILED TO ESCAPE !"
                    PRINT "!!! ------------------------------------------- !!!"
                    PlayerMagic& = INT(PlayerMagic& / INT(2 + RND * 8))
                    PlayerStrength& = PlayerStrength& - (PlayerArmor% + PlayerShield%)
                    IF PlayerStrength& < 0 THEN PlayerStrength& = 0
                END IF


                COLOR _RGB(255, 255, 255)
            CASE 4
                COLOR _RGB(255, 255, 0)
                PRINT
                PRINT "---------------------------------------------------"
                PRINT " You give all your gold to "; RTRIM$(EnemyName$);
                PRINT " Being broke is better than dying I suppose..."
                PRINT "---------------------------------------------------"
                COLOR _RGB(255, 255, 255)
                menu% = 1
                PlayerGold& = 0: EXIT SUB
            CASE 5: YourStats
            CASE 6: EnemyStats
            CASE 7: menu% = 1
        END SELECT
    WEND
END SUB


FUNCTION GetLevel% (e&)
    SELECT CASE e&
        CASE IS < 100: level% = 1
        CASE 101 TO 500: level% = 2
        CASE ELSE: level% = 3
    END SELECT
    GetLevel% = level%
END FUNCTION

SUB Healer
    Totalhits% = PlayerExperience& \ 10 + 30
    ToHeal% = Totalhits% - PlayerHits&
    CLS
    COLOR _RGB(255, 200, 200)
    PRINT
    PRINT "---------==**[  HARRY THE HEALER  ]**==------------"
    PRINT
    PRINT " Welcome friend.  Let me heal your wounds and soul."
    IF ToHeal% <= 0 THEN
        PRINT
        PRINT " Harry looks you over completely and says,"
        PRINT " You don't require healing, friend.  Goodbye..."
    ELSE
        PRINT
        PRINT " Each hit point costs 3 gold to heal."
        PRINT " You can afford to heal"; PlayerGold& \ 3; "hit points."
        PRINT " To max out, You need to heal"; RTRIM$(STR$(ToHeal%)); "."
        PRINT
        INPUT " How many would you heal? (ENTER for max) ", heal%
        IF heal% = 0 THEN heal% = ToHeal%
        IF heal% > ToHeal% THEN heal% = ToHeal%
        IF heal% > (PlayerGold& \ 3) THEN heal% = PlayerGold& \ 3
        PlayerHits& = PlayerHits& + heal%
        PlayerGold& = PlayerGold& - (heal% * 3)
        PRINT
        PRINT " I have healed you for"; heal%; "hit points."
        PRINT " Go in peace my son..."
        PRINT
    END IF
    PRINT "---------------------------------------------------"
    COLOR _RGB(200, 200, 255)

END SUB

SUB MakeEnemy (l%)

    REDIM EN(1 TO 5) AS STRING
    REDIM EP(1 TO 5) AS STRING

    EP(1) = "Angry "
    EP(2) = "Ferocious "
    EP(3) = "Snarling "
    EP(4) = "Hostile "
    EP(5) = "Wicked "


    SELECT CASE l%
        CASE 1
            EN(1) = "Squirrel"
            EN(2) = "Bunny"
            EN(3) = "Hedgehog"
            EN(4) = "Gremkin"
            EN(5) = "Spider"
        CASE 2
            EN(1) = "Bear"
            EN(2) = "Boar"
            EN(3) = "Boggart"
            EN(4) = "Troll"
            EN(5) = "GreenMan"
        CASE 3
            EN(1) = "Demon"
            EN(2) = "Dragon"
            EN(3) = "Witch"
            EN(4) = "Druid"
            EN(5) = "Wizard"
    END SELECT
    ecl% = INT(1 + RND * (l% + 2))
    EnemyName$ = EP(INT(1 + RND * ecl%)) + EN(INT(1 + RND * 5))
    EnemyHits& = ((l% * 3 + RND * 12) * (1 + RND * ecl%))
    EnemyMagic& = ((RND * 10 + 10) * l%)
    EnemyStrength& = ((RND * 10 + 10) * l%)
    EnemyGold& = ((RND * 100 + 100) * (.5 + RND * ecl%))
    EnemyWeapon% = (RND * 2 + RND * (ecl% * 2))
    EnemyExperience& = ((RND * 10 + 10) * ecl%)

END SUB

SUB YourStats ()
    CLS ', _RGB(32, 32, 128) 'background color
    COLOR _RGB(255, 255, 0)
    PRINT "------------==**[  YOUR STATS  ]**==---------------"
    PRINT " Name      : "; PlayerName$
    PRINT " Hits      :"; PlayerHits&;
    LOCATE , 33: PRINT " Magic      :"; PlayerMagic&
    PRINT " Strength  :"; PlayerStrength&;
    LOCATE , 33: PRINT " Gold       :"; PlayerGold&
    PRINT " Weapon    : "; Weapon$(PlayerWeapon%)
    PRINT " Shield    : "; Shield$(PlayerShield%)
    PRINT " Armor      : "; Armor$(PlayerArmor%)
    PRINT " Experience :"; PlayerExperience&
    PRINT "---------------------------------------------------"
    COLOR _RGB(255, 255, 255)
END SUB

SUB EnemyStats ()
    CLS ', _RGB(32, 32, 128) 'background color
    COLOR _RGB(255, 255, 0)
    PRINT "------------==**[  ENEMY STATS  ]**==--------------"
    PRINT " Name      : "; EnemyName$
    PRINT " Hits      :"; EnemyHits&
    PRINT " Magic      :"; EnemyMagic&
    PRINT " Strength  :"; EnemyStrength&
    PRINT " Gold      :"; EnemyGold&
    PRINT " Weapon    : "; Weapon$(EnemyWeapon%)
    PRINT " Experience :"; EnemyExperience&
    PRINT "---------------------------------------------------"
    COLOR _RGB(255, 255, 255)
END SUB

SUB UseMagic
    PRINT
    PRINT
    DO
        COLOR _RGB(255, 255, 100)
        PRINT
        PRINT "------------==**[  CAST A SPELL  ]**==-------------"
        PRINT
        PRINT " (H)ealing Spell  (requires 4 magic points)"
        PRINT " (S)trength Spell  (requires 9 magic points)"
        PRINT " (Q)uit this menu"
        PRINT
        PRINT " You have"; PlayerMagic&; "magic points."
        PRINT "---------------------------------------------------"
        PRINT
        PRINT " [H/S/Q]"

        k% = WaitKey%(" HSQ" + CHR$(13))

        PRINT
        SELECT CASE k%
            CASE 2
                IF PlayerMagic& < 4 THEN
                    PRINT "---------------------------------------------------"
                    PRINT " You don't have enough magic points for that!"
                    PRINT "---------------------------------------------------"
                ELSE
                    m% = 1 + RND * 9
                    PlayerMagic& = PlayerMagic& - 4
                    PlayerHits& = PlayerHits& + m%
                    PRINT "---------------------------------------------------"
                    PRINT " Your spell yields"; m%; "hits."
                    PRINT "---------------------------------------------------"
                END IF
            CASE 3
                IF PlayerMagic& < 9 THEN
                    PRINT "---------------------------------------------------"
                    PRINT " You don't have enough magic points for that!"
                    PRINT "---------------------------------------------------"
                ELSE
                    m% = 1 + RND * 9
                    PlayerMagic& = PlayerMagic& - 9
                    PlayerStrength& = PlayerStrength& + m%
                    PRINT "---------------------------------------------------"
                    PRINT " Your spell yields"; m%; "strength."
                    PRINT "---------------------------------------------------"
                END IF
            CASE 4, 5: COLOR _RGB(255, 255, 255): EXIT SUB
        END SELECT
    LOOP
END SUB

SUB WalkInWoods
    COLOR _RGB(255, 255, 255) ', _RGB(0, 200, 200)
    SELECT CASE (RND * 99)
        CASE 0 TO 9
            rndgold = INT(RND * 15) + 2
            PlayerGold& = PlayerGold& + rndgold
            COLOR _RGB(255, 255, 0), _RGB(0, 200, 200)
            PRINT: PRINT " Lucky you! You found"; rndgold; "pieces of gold!"
            COLOR _RGB(255, 255, 255), _RGB(0, 200, 200)
        CASE 10 TO 19
            PlayerMagic& = PlayerMagic& + 1
            COLOR _RGB(100, 255, 100), _RGB(0, 200, 200)
            PRINT: PRINT " A nice faerie gives you one magic point!"
            COLOR _RGB(255, 255, 255), _RGB(0, 200, 200)
        CASE 20 TO 29: m% = 1 + RND * 9
            PlayerHits& = PlayerHits& + m%
            COLOR _RGB(100, 200, 255), _RGB(0, 200, 200)
            PRINT: PRINT " A friendly Elf heals you"; m%; "hit point";
            IF m% = 1 THEN PRINT "!": ELSE PRINT "s!"
            COLOR _RGB(255, 255, 255), _RGB(0, 200, 200)
        CASE 30 TO 89
            PRINT: PRINT " The path continues before you. Now what?"
        CASE ELSE: FightMonster
    END SELECT
END SUB

FUNCTION Weapon$ (w%)
    SELECT CASE w%
        CASE 0: Weapon$ = "Your Bare Hands"
        CASE 1: Weapon$ = "A Cudgel"
        CASE 2: Weapon$ = "A Quarterstaff"
        CASE 3: Weapon$ = "A Small Knife"
        CASE 4: Weapon$ = "A Big Knife"
        CASE 5: Weapon$ = "A Machete"
        CASE 6: Weapon$ = "A Shortsword"
        CASE 7: Weapon$ = "A Rapier"
        CASE 8: Weapon$ = "A Messer"
        CASE 8: Weapon$ = "A Longsword"
        CASE 9: Weapon$ = "A Flammard"
        CASE 10: Weapon$ = "A Grand-Messer"
        CASE 11: Weapon$ = "A SwordAxe"
        CASE 12: Weapon$ = "A GreatSword"
    END SELECT
END FUNCTION
FUNCTION Shield$ (w%)
    SELECT CASE w%
        CASE 0: Shield$ = "Dumb Luck"
        CASE 1: Shield$ = "Wicker Buckler"
        CASE 2: Shield$ = "Wooden Buckler"
        CASE 3: Shield$ = "Wicker Tower Shield"
        CASE 4: Shield$ = "Brass Buckler"
        CASE 5: Shield$ = "Wooden Heater"
        CASE 6: Shield$ = "Wooden Round Shield"
        CASE 7: Shield$ = "Brass Heater"
        CASE 8: Shield$ = "Wooden Round Shield"
        CASE 9: Shield$ = "Wooden Tower Shield"
        CASE 10: Shield$ = "Brass Round Shield"
        CASE 11: Shield$ = "Wooden Kite Shield"
        CASE 12: Shield$ = "Brass Kite Shield"
    END SELECT
END FUNCTION
FUNCTION Armor$ (w%)
    SELECT CASE w%
        CASE 0: Armor$ = "Your Bare Skin"
        CASE 1: Armor$ = "Leather Jerkin"
        CASE 2: Armor$ = "Padded Aketon"
        CASE 3: Armor$ = "Studded Leather Cotte"
        CASE 4: Armor$ = "Brass Scale Hauberk"
        CASE 5: Armor$ = "Iron Chain Mail"
        CASE 6: Armor$ = "Double Mail"
        CASE 7: Armor$ = "Plate & Mail"
        CASE 8: Armor$ = "Full Plate"
        CASE 9: Armor$ = "Elfin Mail"
        CASE 10: Armor$ = "Rune-Scrawled Plate"
        CASE 11: Armor$ = "Dwarven War Harness"
        CASE 12: Armor$ = "Golem Plate"
    END SELECT
END FUNCTION




SUB Woods
    menu% = 1
    DO
        level% = GetLevel%(PlayerExperience&)
        IF PlayerExperience& > 2000 THEN PlayerHits& = 0

        PRINT
        IF PlayerHits& = 0 THEN EXIT SUB
        IF menu% <> 0 THEN
            COLOR _RGB(255, 255, 255) ', _RGB(0, 200, 200)
            PRINT
            PRINT " You're in the woods, alone.  Now what?"
            PRINT
            PRINT " (C)ontinue .....Walk the path."
            PRINT " (T)own .........Go Back to town."
            PRINT " (S)pell.........Cast a Spell."
            PRINT " (Y)our Stats....Show your stats."
            PRINT
        END IF
        menu% = 0
        PRINT " [C/S/T/Y/?] "

        k% = WaitKey%(" CTSY?")

        SELECT CASE k%

            CASE 2 'Pressed Continue walking...

                SELECT CASE (RND * 99)
                    CASE 0 TO 9 'found gold
                        rndgold = INT(RND * 15) + 2
                        PlayerGold& = PlayerGold& + rndgold
                        COLOR _RGB(255, 255, 0), _RGB(200, 200, 100)
                        PRINT: PRINT " Lucky you! You found"; rndgold; "pieces of gold!"
                        COLOR _RGB(255, 255, 255), _RGB(200, 200, 100)
                    CASE 10 TO 19 'faerie magic
                        PlayerMagic& = PlayerMagic& + 1
                        COLOR _RGB(100, 255, 100), _RGB(200, 200, 100)
                        PRINT: PRINT " A nice faerie gives you one magic point!"
                        COLOR _RGB(255, 255, 255), _RGB(200, 200, 100)
                    CASE 20 TO 29 'elf heals you
                        m% = 1 + RND * 9
                        PlayerHits& = PlayerHits& + m%
                        COLOR _RGB(100, 200, 255), _RGB(200, 200, 100)
                        PRINT: PRINT " A friendly Elf heals you"; m%; "hit point";
                        IF m% = 1 THEN PRINT "!": ELSE PRINT "s!"
                        COLOR _RGB(255, 255, 255), _RGB(200, 200, 100)
                    CASE 30 TO 89 'nothing, you just continue
                        PRINT: PRINT " The path continues before you. Now what?"
                    CASE ELSE 'Monster fight!
                        FightMonster: menu% = 1
                END SELECT

            CASE 3: EXIT SUB 'back to town

            CASE 4: UseMagic: menu% = 1 'you use your magic
            CASE 5: YourStats 'show your stats
            CASE 6: menu% = 1 'Pressed ? for help

        END SELECT

    LOOP
END SUB

FUNCTION WaitKey% (keys$)
    DO
        _LIMIT 60
        k% = INSTR(keys$, UCASE$(INKEY$))
    LOOP WHILE k% < 2
    WaitKey% = k%
END FUNCTION

SUB BIGFONT (size)
    'loads a custom size CP437 font (like QB64's built-in one)'
    'You can make/use any size now.
    A$ = ""
    A$ = A$ + "haIgm]0MLEMMXkS^ST\\T]lHiaboe<Nl8c71HYa3f0VPiWa9H07n5a_0bn:K"
    A$ = A$ + ";#FB8;c773hBD8T42E_#C:=QBC39PSQB=DB2UhdhVBB^9=_D2EQ#Ala?JFmi"
    A$ = A$ + "ejeGKNiYTV4\UNkOWcmL791Y0Iefg<NdmNWiLfWmIoO_?WkeP10H6`NP0HS["
    A$ = A$ + "KMGj5l9Nf7lH0HC;3of5MAGb9ef>>V6V60Vfa[_^=_m>j[Y]NOC7PDY`?kKc"
    A$ = A$ + "gd0IQB1o20VfnaO?eFkH7m=nh8TP=]8ljY]e^_e]DhRj<;0CoG1`5>lfj\S`"
    A$ = A$ + "IOn5Z6o]G6oLbK3oRZONcW6QoL`[Gfffn0gBQ5]P_=NmC3#5__^kMcMlg=[o"
    A$ = A$ + "a=RPjY`[?W]ga]dWICVEPonZafW]W>fNWObWOGk3P[h7POg7[_Nga07oM<8f"
    A$ = A$ + "f[2agZnF0=g`?kjkmmOT[]nel;PVZJ]hg0?OKcLadaGiKoLOB06[_P\Y8lOJ"
    A$ = A$ + "#5Pl2kCZm?FO04TU^4o[1Bn:5m=VLhOH8jj9mj4UF4Te<4D9R7[U6eP\fS#H"
    A$ = A$ + "5]c]X6G?2l1mUORGl9Rl3CcgPP3Yf?27leNXQi017VViP9PXlI5<D`Bg[8lC"
    A$ = A$ + "8OFXkk2MW7jMNL?lKIT21l_VF:3>F2D;LOV8TRaP9n:<aIA^f=aF7iJaK2<#"
    A$ = A$ + "L8<Ak3Q9<_mJcKe[TDPTc\936fA:ngRlXaf?Q:5<^GQ:NaoU>Jo437Vj6iV1"
    A$ = A$ + "CjiCm;DJYL^oDO^mEPnIARTN`G4_b`GW:h^aS?8:nE5\4h>P72nB`S0?6lT`"
    A$ = A$ + "G3n6`g4n^`g3nA`;PJd_>l_2S2oK`APa=OZPk;hn3NXP7>h;7l41OUP36l\1"
    A$ = A$ + "OW\;=kJbN7IOTLOjLkMY;HY=]dSMY[OYM\d>cGAnIU?G1X#55Z[`\:<W2c[`"
    A$ = A$ + "R:\\2]DHU5FCQ^;\W23Fh^;L?5^_2On2?FQW\`cDh05Nf2o]5n7JN==_fV?["
    A$ = A$ + "V_^VgLcKYiK0]l#_nl<n]?Ho`G1N64oNF7nmJ`?5no0oBhG?1lkY#lk_a3o6"
    A$ = A$ + "2a_i_dUXhG8SOIW2lKS>lKXb`_G\iCeQOMfleChgho?6o#SoJSo:SoBSoRSo"
    A$ = A$ + "2SoS7o7=nc=ngKl_mh7LloZao6SOPaojSo<SodSglAKnX;mXckXcmXciXchX"
    A$ = A$ + "eNDcA6o8SMX7j#Ol3]n3Uke>UGKi_jGkEOZGmAOe?i[^cGM7_b?iEnn_bGOT"
    A$ = A$ + "GITGNTonAN^An_?bg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OR i& = 1 TO LEN(A$) STEP 4: B$ = MID$(A$, i&, 4)
        IF INSTR(1, B$, "%") THEN
            FOR C% = 1 TO LEN(B$): F$ = MID$(B$, C%, 1)
                IF F$ <> "%" THEN C$ = C$ + F$
            NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$)
            IF MID$(B$, j, 1) = "#" THEN
        MID$(B$, j) = "@": END IF: NEXT
        FOR t% = LEN(B$) TO 1 STEP -1
            B& = B& * 64 + ASC(MID$(B$, t%)) - 48
            NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1
            X$ = X$ + CHR$(B& AND 255): B& = B& \ 256
    NEXT: btemp$ = btemp$ + X$: NEXT
    BASFILE$ = _INFLATE$(btemp$, 25152): btemp$ = ""
    _FONT _LOADFONT(BASFILE$, size, "memory, monospace")
END SUB
SUB savegame
    OPEN PlayerName$ + ".wpl" FOR OUTPUT AS #1
    WRITE #1, PlayerName$
    WRITE #1, PlayerHits&
    WRITE #1, PlayerMagic&
    WRITE #1, PlayerStrength&
    WRITE #1, PlayerGold&
    WRITE #1, PlayerWeapon%
    WRITE #1, PlayerExperience&
    WRITE #1, PlayerShield%
    WRITE #1, PlayerArmor%
    CLOSE #1
    PRINT
    PRINT "Game Saved"
    PRINT

END SUB
SUB loadgame (PN$)
    PRINT "Loading "; PN$;
    OPEN PN$ + ".wpl" FOR INPUT AS #1
    INPUT #1, PlayerName$
    _DELAY .1: PRINT ".";
    INPUT #1, PlayerHits&
    _DELAY .1: PRINT ".";
    INPUT #1, PlayerMagic&
    _DELAY .1: PRINT ".";
    INPUT #1, PlayerStrength&
    _DELAY .1: PRINT ".";
    INPUT #1, PlayerGold&
    _DELAY .1: PRINT ".";
    INPUT #1, PlayerWeapon%
    _DELAY .1: PRINT ".";
    INPUT #1, PlayerExperience&
    _DELAY .1: PRINT ".";
    INPUT #1, PlayerShield%
    _DELAY .1: PRINT ".";
    INPUT #1, PlayerArmor%
    _DELAY .1: PRINT ".";
    CLOSE #1
    _DELAY .1: PRINT "LOADED";
    _DELAY .5
END SUB



RE: Modified Qbasic game THEWOODS.BAS by Kurt Kuzba - James D Jarvis - 09-20-2023

(09-20-2023, 12:13 PM)Dav Wrote: Nice additions, James!   Your posted code won't run as is, the forum messes up the encoded file data in the BIGFONT SUB unless you post the source in the old CODE tag. I replaced the SUB with a fresh version and it ran OK.

I tweaked yours a little bit to fix a menu issue.  The armory menu choices were not all being polled so I raised the k% value to catch those extra items.  I also compacted the Player Stats display so it won't scroll off the screen.  I commented out the teal color when entering the woods, my laptop display isn't the best and I couldn't read the screen as well in that color here.

- Dav

Thanks. I hadn't noticed that was an issue in regards to the code block.  Oh yeah the colors needed work even on my end "work in progress" after-all. Oops, was the armor still not loading right? Sorry.