School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,136 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,878 people online right now. Registration is fast and FREE... Join Now!




My Cmd Game

 

My Cmd Game, Need Help Please Add More To It

Is The Game Good
Is It?
Yes [ 1 ] ** [16.67%]
No [ 2 ] ** [33.33%]
Needs Work [ 3 ] ** [50.00%]
Total Votes: 6
Guests cannot vote 
jmd992

23 Sep, 2009 - 01:26 AM
Post #1

New D.I.C Head
*

Joined: 23 Sep, 2009
Posts: 13


My Contributions
Heres The .exe File i will upload the .cmd Later im in college so i dont have it with me

My EXE File

My CMD File

My CMD Code!!

CODE
REM  QBFC Project Options Begin
REM  HasVersionInfo: Yes
REM  Companyname: Jmd Studios
REM  Productname: Jmd Kingdom
REM  Filedescription: A Text-Based RPG
REM  Copyrights: 2009 Copyright
REM  Trademarks: 3+
REM  Originalname: Jmd_Kingdom
REM  Comments: Cool Little RPG
REM  Productversion: 1 .2 .1 .  
REM  Fileversion: 1 .2 .1 .  
REM  Internalname:
REM  Appicon: C:\Users\Josh\Downloads\tajmahal.ico
REM  QBFC Project Options End

@echo off
:::::::::: SYSTEM GLOBALS ::::::::::
set systemProgrammer=Josh Devlin (Jmd992)
set systemTitle=Jmd Kingdom
set systemEditor=Jmd992
set systemVersion=1.2.1
set systemDate=22 September 2009
set loadcount=0
:::::::::: GAME GLOBALS ::::::::::
set level=1
set exp=0
set maxexp=80
set hp=10
set maxhp=10
set gold=0
set str=1
set def=0
:::::::::: GAME FLAGS ::::::::::
set flag0=0
:::::::::: ITEMS ::::::::::
set item0=No Item
set item1=Small Health Potion [+10 Hp]
set item2=Scroll of Town Portal [Kalamar]
:::::::::: ITEM SLOTS ::::::::::
set itemslot0=1
set itemslot1=0
set itemslot2=0
set itemslot3=0
set itemslot4=0
:::::::::: LOADING SCREEN ::::::::::
:Loading
if %loadcount% GEQ 3 (
cls
goto GameSetup
)
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [                       ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [[]                     ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [  []                   ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [    []                 ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [        []             ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [          []           ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [            []         ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [              []       ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [                []     ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [                  []   ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [                    [] ]
ping localhost -n 1 > nul
cls
echo.
echo   [Jmd Kingdom Is Loading.]
echo   [                      []
ping localhost -n 1 > nul
cls
set /a loadcount=loadcount+1
goto Loading
:::::::::: GAME SETUP ::::::::::
:GameSetup
echo.
echo                        * Welcome to %systemTitle% v%systemVersion% *
echo.
echo.
echo               Game originally programmed by %systemProgrammer%
echo                      Game last updated on %systemDate%
:::::::::: NAME SETUP ::::::::::
:NameSetup
echo.
set /p name=)) By what name do you wish to be known?
if not defined name goto NameSetup
echo.
set /p confirm=)) So you wish to be known as %name%? (Y/N)
if not defined confirm (
set name=
goto NameSetup
)
if /i %confirm%==y (
set confirm=
cls
goto ClassSetup
)
set confirm=
set name=
goto NameSetup
:::::::::: CLASS SETUP ::::::::::
:ClassSetup
echo.
echo   By which class do you wish to fortake?
echo   1: Knight
echo   2: Theif
echo   3: White Mage
echo   4: Black Mage
:ClassSetupCommand
echo.
set /p confirm=))
if not defined confirm goto ClassSetupCommand
if %confirm% EQU 1 (
set confirm=
set class=Knight
cls
goto StatSetup
)
if %confirm% EQU 2 (
set confirm=
set class=Thief
cls
goto StatSetup
)
if %confirm% EQU 3 (
set confirm=
set class=White Mage
cls
goto StatSetup
)
if %confirm% EQU 4 (
set confirm=
set class=Black mage
cls
goto StatSetup
)
set confirm=
goto ClassSetupCommand
:::::::::: STAT SETUP ::::::::::
:StatSetup
echo.
echo   Current stats:
echo   Strength: %str%
echo   Defence: %def%
echo.
echo   You have 1 stat point! What would you like to spend it on?
echo   1: Strength (+1)
echo   2: Defence (+1)
:StatSetupCommand
echo.
set /p confirm=))
if not defined confirm goto StatSetupCommand
if %confirm% EQU 1 (
set confirm=
set /a str=str+1
cls
goto StatConfirm
)
if %confirm% EQU 2 (
set confirm=
set /a def=def+1
cls
goto StatConfirm
)
set confirm=
goto StatSetupCommand
:::::::::: STAT CONFIRM ::::::::::
:StatConfirm
echo.
echo   Statistics:
echo.
echo   Name: %name%
echo   Class: %class%
echo.
echo   Level: %level%
echo   Experience: %exp%/%maxexp%
echo.
echo   Hp: %hp%/%maxhp%
echo   Gold: %gold%
echo.
echo   Strength: %str%
echo   Defence: %def%
:StatConfirmCommand
echo.
set /p confirm=)) Are you sure you wish to keep this character? (Y/N)
if not defined confirm goto StatConfirmCommand
if /i %confirm%==y (
set confirm=
cls
echo.
echo   The gods welcome you, %name%!
goto MapNewbieStart
)
set confirm=
set name=
set class=
set str=1
set def=0
cls
goto GameSetup
:::::::::: MAP NEWBIE START ::::::::::
:MapNewbieStart
echo.
echo   You stand in a rather large room filled with young warriors like yourself.
echo   Above you, you notice a stairway leading to the Kalamar Town Square outside.
echo   The %systemTitle% Trainer is standing here.
echo.
echo   What would you like to do?
echo   1: Talk to The %systemTitle% Trainer
echo   2: Climb Staircase
:::::::::: MAP NEWBIE START COMMAND ::::::::::
:MapNewbieStartCommand
echo.
set /p confirm=))
if not defined confirm goto MapNewbieStartCommand
if %confirm% EQU 1 (
set confirm=
echo.
echo   The %systemTitle% Trainer says, "Welcome to %systemTitle%!
echo   I am here to help you get started on your adventure. Your first
echo   task will be in the Tower of Kalamar. Enter Kalamar above and then
echo   travel north until you find the Tower of Kalamar. Good luck!"
goto MapNewbieStartCommand
)
if %confirm% EQU 2 (
set confirm=
cls
echo.
echo   As you exit the Newbie Cellar, the doors close behind you!
goto MapKalamarStart
)
set confirm=
goto MapNewbieStartCommand
:::::::::: MAP KALAMAR START ::::::::::
:MapKalamarStart
echo.
echo   You stand at the Fountain of Kalamar.
echo   The fountain's waters are flowing briskly on this calm day.
echo   Below you is a locked cellar door which leads into the Newbie Cellar.
echo   To the north you see the Tower of Kalamar.
echo   A sign is posted on the Tower of Kalamar's gates.
echo   To the east you see the Kalamar Town Inn.
echo   To the west you see the Kalamar Magic Shop.
echo.
echo   What would you like to do?
echo   1: Read Sign
echo   2: Enter Tower of Kalamar
echo   3: Enter Kalamar Town Inn
echo   4: Enter Kalamar Magic Shop
:::::::::: MAP KALAMAR START COMMAND ::::::::::
:MapKalamarStartCommand
echo.
set /p confirm=))
if not defined confirm goto MapKalamarStartCommand
if %confirm% EQU 1 (
set confirm=
echo.
echo   The sign reads, "Newbies, here you may start your first quest!"
goto MapKalamarStartCommand
)
if %confirm% EQU 2 (
set confirm=
cls
echo.
echo   You walk north into the Tower of Kalamar!
goto MapTowerKalamarStart
)
if %confirm% EQU 3 (
set confirm=
cls
echo.
echo   You walk east into the Kalamar Town Inn!
goto MapKalamarTownInnStart
)
if %confirm% EQU 4 (
set confirm=
cls
echo.
echo   You walk west into the Kalamar Magic Shop!
goto MapKalamarMagicShop
)
set confirm=
goto MapKalamarStartCommand
:::::::::: MAP KALAMAR MAGIC SHOP ::::::::::
:MapKalamarMagicShop
echo.
echo   You are standing in the Kalamar Magic Shop.
echo   Master Jake [NPC] is standing here offering his wares.
echo.
echo   What would you like to do?
echo   1: Buy %item1% [25 Gold]
echo   2: Buy %item2% [100 Gold]
echo   3: Leave Kalamar Magic Shop
:::::::::: MAP KALAMAR MAGIC SHOP COMMAND ::::::::::
:MapKalamarMagicShopCommand
echo.
set /p confirm=))
if not defined confirm goto MapKalamarMagicShopCommand
if %confirm% EQU 1 (
if %gold% GEQ 25 (
if %itemslot0% EQU 0 (
set confirm=
set itemslot0=1
set /a gold=gold-25
echo.
echo   Item Purchased!
goto MapKalamarMagicShopCommand
)
if %itemslot1% EQU 0 (
set confirm=
set itemslot1=1
set /a gold=gold-25
echo.
echo   Item Purchased!
goto MapKalamarMagicShopCommand
)
if %itemslot2% EQU 0 (
set confirm=
set itemslot2=1
set /a gold=gold-25
echo.
echo   Item Purchased!
goto MapKalamarMagicShopCommand
)
if %itemslot3% EQU 0 (
set confirm=
set itemslot3=1
set /a gold=gold-25
echo.
echo   Item Purchased!
goto MapKalamarMagicShopCommand
)
if %itemslot4% EQU 0 (
set confirm=
set itemslot4=1
set /a gold=gold-25
echo.
echo   Item Purchased!
goto MapKalamarMagicShopCommand
)
set confirm=
echo.
echo   All of your inventory slots are full!
goto MapKalamarMagicShopCommand
) else (
set confirm=
echo.
echo   You do not have enough gold to purchase this item!
goto MapKalamarMagicShopCommand
)
)
if %confirm% EQU 2 (
if %gold% GEQ 100 (
if %itemslot0% EQU 0 (
set confirm=
set itemslot0=2
set /a gold=gold-100
echo.
echo   Item Purchased!
goto MapKalamarMagicShopCommand
)
if %itemslot1% EQU 0 (
set confirm=
set itemslot1=2
set /a gold=gold-100
echo.
echo   Item Purchased!
goto MapKalamarMagicShopCommand
)
if %itemslot2% EQU 0 (
set confirm=
set itemslot2=2
set /a gold=gold-100
echo.
echo   Item Purchased!
goto MapKalamarMagicShopCommand
)
if %itemslot3% EQU 0 (
set confirm=
set itemslot3=2
set /a gold=gold-100
echo.
echo   Item Purchased!
goto MapKalamarMagicShopCommand
)
if %itemslot4% EQU 0 (
set confirm=
set itemslot4=2
set /a gold=gold-100
echo.
echo   Item Purchased!
goto MapKalamarMagicShopCommand
)
set confirm=
echo.
echo   All of your inventory slots are full!
goto MapKalamarMagicShopCommand
) else (
set confirm=
echo.
echo   You do not have enough gold to purchase this item!
goto MapKalamarMagicShopCommand
)
)
if %confirm% EQU 3 (
set confirm=
cls
echo.
echo   You leave the Kalamar Magic Shop!
goto MapKalamarStart
)
set confirm=
goto MapKalamarMagicShopCommand
:::::::::: MAP KALAMAR TOWN INN START ::::::::::
:MapKalamarTownInnStart
echo.
echo   You are standing in the Kalamar Town Inn.
echo   The Inn Keeper [NPC] is standing here waiting for your orders.
echo.
echo   What would you like to do?
echo   1: View Stats
echo   2: Exit Kalamar Town Inn
echo   3: Quit Game
:::::::::: MAP KALAMAR TOWN INN START COMMAND ::::::::::
:MapKalamarTownInnStartCommand
echo.
set /p confirm=))
if not defined confirm goto MapKalamarTownInnStartCommand
if %confirm% EQU 1 (
set confirm=
set lastlabel=MapKalamarTownInnStart
cls
goto ViewCharStats
)
if %confirm% EQU 2 (
set confirm=
cls
echo.
echo   You leave the Kalamar Town Inn!
goto MapKalamarStart
)
if %confirm% EQU 3 (
set confirm=
cls
goto QuitGameAni
)
set confirm=
goto MapKalamarTownInnStartCommand
:::::::::: MAP TOWER KALAMAR START ::::::::::
:MapTowerKalamarStart
echo.
echo   You are standing in the Tower of Kalamar.
echo   Beside you is a staircase leading to a room that you can only enter once.
echo   A Rat [Lvl:1/Monster] is scurrying about.
echo.
echo   What would you like to do?
echo   1: Attack Rat [Lvl:1/Monster]
echo   2: Climb Staircase [Up]
echo   3: Exit Tower of Kalamar
:::::::::: MAP TOWER KALAMAR START COMMAND ::::::::::
:MapTowerKalamarStartCommand
echo.
set /p confirm=))
if not defined confirm goto MapTowerKalamarStartCommand
if %confirm% EQU 1 (
set confirm=
set lastlabel=MapTowerKalamarStart
set monstername=Rat [Lvl:1/Monster]
set monsterhp=3
set monstermaxhp=3
set monsterstr=2
set monsterdef=0
set monstergold=5
set monsterexp=25
cls
goto BattlePhase
)
if %confirm% EQU 2 (
if %flag0% EQU 0 (
set confirm=
set flag0=1
cls
echo.
echo   You climb the staircase into the forgotten room!
goto MapTowerLvl2
) else (
echo.
echo   You have already entered this room!
goto MapTowerKalamarStartCommand
)
)
if %confirm% EQU 3 (
set confirm=
cls
echo.
echo   You exit the Tower of Kalamar and enter the town!
goto MapKalamarStart
)
set confirm=
goto MapTowerKalamarStartCommand
:::::::::: MAP TOWER LVL 2 ::::::::::
:MapTowerLvl2
echo.
echo   You stand in a room which can only be entered once.
echo   This room was built to simulate a quest that you can only do once.
echo   Beside you is a staircase leading back to the Tower of Kalamar Entrance.
echo.
echo   What would you like to do?
echo   1: Climb Staircase [Down]
:::::::::: MAP TOWER LVL 2 COMMAND ::::::::::
:MapTowerLvl2Command
echo.
set /p confirm=))
if not defined confirm goto MapTowerLvl2Command
if %confirm% EQU 1 (
set confirm=
cls
echo.
echo   You climb back down the staircase!
goto MapTowerKalamarStart
)
set confirm=
goto MapTowerLvl2Command
:::::::::: BATTLE PHASE ::::::::::
:BattlePhase
echo.
echo   A %monstername% is standing here.
echo   A %monstername% has %monsterhp%/%monstermaxhp% Hp remaining.
echo.
echo   What would you like to do?
echo   1: Attack %monstername%
echo   2: Use Item
echo   3: Flee
:::::::::: BATTLE PHASE COMMAND ::::::::::
:BattlePhaseCommand
echo.
set /p confirm=))
if not defined confirm goto BattlePhaseCommand
if %confirm% EQU 1 (
set confirm=
set /a damage=str-monsterdef
set /a monsterdamage=monsterstr-def
goto BattlePhaseAttack
)
if %confirm% EQU 2 (
set confirm=
cls
goto BattlePhaseUseItem
)
if %confirm% EQU 3 (
set confirm=
echo.
echo   You flee from the battle!
pause > nul
cls
goto %lastlabel%
)
set confirm=
goto BattlePhaseCommand
:::::::::: BATTLE PHASE ATTACK ::::::::::
:BattlePhaseAttack
if %damage% LSS 0 set damage=0
if %monsterdamage% LSS 0 set monsterdamage=0
set /a monsterhp=monsterhp-damage
echo.
echo   You attack the %monstername% for %damage% damage.
echo   The %monstername% has %monsterhp%/%monstermaxhp% Hp remaining.
if %monsterhp% LEQ 0 (
echo.
echo   You have slain the %monstername%.
echo   You gain %monstergold% gold and %monsterexp% experience.
set /a gold=gold+monstergold
set /a exp=exp+monsterexp
goto BattlePhaseExpCheck
:BattlePhaseExpCheck
if %exp% GEQ %maxexp% (
set /a level=level+1
set /a maxhp=maxhp+5
set /a hp=maxhp
set /a exp=0
set /a maxexp=maxexp*0.5
goto LevelUpStats
)
pause > nul
cls
goto %lastlabel%
)
set /a hp=hp-monsterdamage
echo.
echo   The %monstername% attacks you for %monsterdamage% damage.
echo   You have %hp%/%maxhp% Hp remaining.
if %hp% LEQ 0 (
echo.
echo   The %monstername% has slain you.
echo   Game Over!
pause > nul
exit
)
goto BattlePhase
:::::::::: BATTLE PHASE USE ITEM ::::::::::
:BattlePhaseUseItem
echo.
echo   Inventory:
call echo   1: %%item%itemslot0%%%
call echo   2: %%item%itemslot1%%%
call echo   3: %%item%itemslot2%%%
call echo   4: %%item%itemslot3%%%
call echo   5: %%item%itemslot4%%%
echo   6: Cancel
:::::::::: BATTLE PHASE USE ITEM COMMAND ::::::::::
:BattlePhaseUseItemCommand
echo.
1set /p confirm=))
if not defined confirm goto BattlePhaseUseItemCommand
if %confirm% EQU 1 (
set confirm=
if %itemslot0% NEQ 0 (
if %itemslot0% EQU 1 (
echo.
echo   Item Used! [+10 Hp]
pause > nul
set itemslot0=0
set /a hp=hp+10
goto BattlePhaseUseItemCommandHpCont
:BattlePhaseUseItemCommandHpCont
if %hp% GTR %maxhp% set /a hp=maxhp
cls
goto BattlePhase
)
if %itemslot0% EQU 2 (
set itemslot0=0
echo.
echo   As you read from the scroll you start to glow with a bright light!
pause > nul
cls
goto MapKalamarStart
)
) else (
echo.
echo   That inventory slot is empty!
pause > nul
cls
goto BattlePhase
)
)
if %confirm% EQU 2 (
set confirm=
if %itemslot1% NEQ 0 (
if %itemslot1% EQU 1 (
echo.
echo   Item Used! [+10 Hp]
pause > nul
set itemslot1=0
set /a hp=hp+10
goto BattlePhaseUseItemCommandHpCont
:BattlePhaseUseItemCommandHpCont
if %hp% GTR %maxhp% set /a hp=maxhp
cls
goto BattlePhase
)
if %itemslot1% EQU 2 (
set itemslot1=0
echo.
echo   As you read from the scroll you start to glow with a bright light!
pause > nul
cls
goto MapKalamarStart
)
) else (
echo.
echo   That inventory slot is empty!
pause > nul
cls
goto BattlePhase
)
)
if %confirm% EQU 3 (
set confirm=
if %itemslot2% NEQ 0 (
if %itemslot2% EQU 1 (
echo.
echo   Item Used! [+10 Hp]
pause > nul
set itemslot2=0
set /a hp=hp+10
goto BattlePhaseUseItemCommandHpCont
:BattlePhaseUseItemCommandHpCont
if %hp% GTR %maxhp% set /a hp=maxhp
cls
goto BattlePhase
)
if %itemslot2% EQU 2 (
set itemslot2=0
echo.
echo   As you read from the scroll you start to glow with a bright light!
pause > nul
cls
goto MapKalamarStart
)
) else (
echo.
echo   That inventory slot is empty!
pause > nul
cls
goto BattlePhase
)
)
if %confirm% EQU 4 (
set confirm=
if %itemslot3% NEQ 0 (
if %itemslot3% EQU 1 (
echo.
echo   Item Used! [+10 Hp]
pause > nul
set itemslot3=0
set /a hp=hp+10
goto BattlePhaseUseItemCommandHpCont
:BattlePhaseUseItemCommandHpCont
if %hp% GTR %maxhp% set /a hp=maxhp
cls
goto BattlePhase
)
if %itemslot3% EQU 2 (
set itemslot3=0
echo.
echo   As you read from the scroll you start to glow with a bright light!
pause > nul
cls
goto MapKalamarStart
)
) else (
echo.
echo   That inventory slot is empty!
pause > nul
cls
goto BattlePhase
)
)
if %confirm% EQU 5 (
set confirm=
if %itemslot4% NEQ 0 (
if %itemslot4% EQU 1 (
echo.
echo   Item Used! [+10 Hp]
pause > nul
set itemslot4=0
set /a hp=hp+10
goto BattlePhaseUseItemCommandHpCont
:BattlePhaseUseItemCommandHpCont
if %hp% GTR %maxhp% set /a hp=maxhp
cls
goto BattlePhase
)
if %itemslot4% EQU 2 (
set itemslot4=0
echo.
echo   As you read from the scroll you start to glow with a bright light!
pause > nul
cls
goto MapKalamarStart
)
) else (
echo.
echo   That inventory slot is empty!
pause > nul
cls
goto BattlePhase
)
)
if %confirm% EQU 6 (
set confirm=
cls
goto BattlePhase
)
set confirm=
goto BattlePhaseUseItemCommand
:::::::::: Level Up Stats ::::::::::
:LevelUpStats
echo   Congratulations on level %level%, %name%!
echo   You gain 5 extra max Hp.
echo.
echo   You have 1 stat point! What would you like to spend it on?
echo   1: Strength (+1)
echo   2: Defence (+1)
:::::::::: LEVEL UP STATS COMMAND ::::::::::
:LevelUpStatsCommand
echo.
set /p confirm=))
if not defined confirm goto LevelUpStatsCommand
if %confirm% EQU 1 (
set confirm=
set /a str=str+1
goto LevelUpStatsDisplay
)
if %confirm% EQU 2 (
set confirm=
set /a def=def+1
goto LevelUpStatsDisplay
)
set confirm=
goto LevelUpStatsCommand
:::::::::: LEVEL UP STATS DISPLAY ::::::::::
:LevelUpStatsDisplay
echo.
echo   You now have %str% strength and %def% defence!
pause > nul
cls
goto %lastlabel%
:::::::::: VIEW CHAR STATS ::::::::::
:ViewCharStats
echo.
echo   Statistics:
echo.
echo   Name: %name%
echo   Class: %class%
echo.
echo   Level: %level%
echo   Experience: %exp%/%maxexp%
echo.
echo   Hp: %hp%/%maxhp%
echo   Gold: %gold%
echo.
echo   Strength: %str%
echo   Defence: %def%
echo.
echo   Press any key to return . . .
pause > nul
cls
goto %lastlabel%
:::::::::: QUIT GAME ANI ::::::::::
:QuitGameANI
echo.
echo   You stroll into the local town inn . . .
ping localhost -n 3 > nul
echo.
echo   You start a fire in the fireplace . . .
ping localhost -n 3 > nul
echo.
echo   You crawl into your bed . . .
ping localhost -n 3 > nul
echo.
echo   Your eyes draw heavy as you drift into a deep sleep . . .
ping localhost -n 3 > nul
echo.
echo   Goodbye, %name%! May your dreams guide you!
ping localhost -n 5 > nul
exit


I need help making quests and new items everyone can copy it and edit it lets try make a big game up together wink2.gif


And also can anyone develope a save game code so you can save your character???

This post has been edited by jmd992: 23 Sep, 2009 - 05:09 AM

User is offlineProfile CardPM
+Quote Post


Christopher Elison

RE: My Cmd Game

23 Sep, 2009 - 01:47 AM
Post #2

D.I.C Head
**

Joined: 29 Dec, 2008
Posts: 226



Thanked: 37 times
My Contributions
No offence, but I'd be weary of downloading a mysterious .exe file linked to on a poster's first and only posting on a forum, or maybe I'm just paranoid smile.gif
User is offlineProfile CardPM
+Quote Post

janne_panne

RE: My Cmd Game

23 Sep, 2009 - 03:59 AM
Post #3

D.I.C Addict
****

Joined: 9 Jun, 2009
Posts: 531



Thanked: 107 times
My Contributions
QUOTE
No offence, but I'd be weary of downloading a mysterious .exe file linked to on a poster's first and only posting on a forum, or maybe I'm just paranoid


^this

If you want opinions, please post some code/project/screenshots. I don't want programs which executes "Format C:" on my computer.
User is offlineProfile CardPM
+Quote Post

DoubleFission

RE: My Cmd Game

23 Sep, 2009 - 04:46 AM
Post #4

D.I.C Head
Group Icon

Joined: 20 Sep, 2008
Posts: 189



Thanked: 6 times
My Contributions
Nawwww... But they're the most fun games tongue.gif
User is offlineProfile CardPM
+Quote Post

jmd992

RE: My Cmd Game

23 Sep, 2009 - 05:01 AM
Post #5

New D.I.C Head
*

Joined: 23 Sep, 2009
Posts: 13


My Contributions
Lol ok guys i no what you mean im home now so i have edited my main post hope thats better wink2.gif

This post has been edited by jmd992: 23 Sep, 2009 - 05:45 AM
User is offlineProfile CardPM
+Quote Post

kazein

RE: My Cmd Game

23 Sep, 2009 - 11:02 AM
Post #6

New D.I.C Head
*

Joined: 2 Sep, 2009
Posts: 21



Thanked: 1 times
My Contributions
I downloaded both versions onto my desktop and they've sat there saying "loading" the entire ten minutes I left it up.

Edit: Reading your code snippet, I guess it's supposed to have "[]" moving from far left to far right in the wider brackets. That didn't happen either.

Edit(2): I deleted the loading message, got the game to start. I went into town and attacked a rat. After killing it three time, I leveled. After leveling, now every time I kill the rat once, I level.

If the rat gives you 25 experience and you need 25 experience -more- to level, it looks like this:
level one max experience: 25
level two max experience: 50
level three max experience: 75

Which is wrong, you need to increment it more like this:
level one max experience: 25 (kill one rat and level)
level two max experience: 75 (kill two more rats and level)
level three max experience: 150 (kill three more rats and level)

Edit(3): I'm level 51 now and I have no more desire to slay rats, I decide to move on in the game and I can't. There are no options that move me past the fountain.

Edit(4): I tried using a health potion and the game went berserk with infinite repeating lines.

This post has been edited by kazein: 23 Sep, 2009 - 11:23 AM
User is offlineProfile CardPM
+Quote Post

NeoTifa

RE: My Cmd Game

23 Sep, 2009 - 11:49 AM
Post #7

Yay caek! ZOMG!!!
Group Icon

Joined: 24 Sep, 2008
Posts: 6,533



Thanked: 83 times
Dream Kudos: 150
My Contributions
OMG that is a lot of code.... @_________________@

What language is that?

This post has been edited by NeoTifa: 23 Sep, 2009 - 11:49 AM
User is offlineProfile CardPM
+Quote Post

kazein

RE: My Cmd Game

23 Sep, 2009 - 12:07 PM
Post #8

New D.I.C Head
*

Joined: 2 Sep, 2009
Posts: 21



Thanked: 1 times
My Contributions
I'm pretty sure that's windows' command-line "language".
User is offlineProfile CardPM
+Quote Post

jmd992

RE: My Cmd Game

23 Sep, 2009 - 12:11 PM
Post #9

New D.I.C Head
*

Joined: 23 Sep, 2009
Posts: 13


My Contributions
ok must ov been a problem thats why i need help lol just mess around with it see if you can make it work and upload your edited files
User is offlineProfile CardPM
+Quote Post

kazein

RE: My Cmd Game

23 Sep, 2009 - 12:39 PM
Post #10

New D.I.C Head
*

Joined: 2 Sep, 2009
Posts: 21



Thanked: 1 times
My Contributions
CODE
ping localhost -n 1 > nul

I'm betting you're using this as some sort of timer between the echos. I deleted those and the loading-echo went by so fast I didn't see it. Try using a different timer or figure out what you did wrong.

As with the rest of your code, it's too vast for me X_X and I'm working on my own RPG text-based game, only in c++.

This post has been edited by kazein: 23 Sep, 2009 - 12:46 PM
User is offlineProfile CardPM
+Quote Post

jmd992

RE: My Cmd Game

23 Sep, 2009 - 12:43 PM
Post #11

New D.I.C Head
*

Joined: 23 Sep, 2009
Posts: 13


My Contributions
ok ill download c++ and try to work on that may be easier to understand lol if you can help me start an rpg game on it i would be greatful
User is offlineProfile CardPM
+Quote Post

kazein

RE: My Cmd Game

23 Sep, 2009 - 12:49 PM
Post #12

New D.I.C Head
*

Joined: 2 Sep, 2009
Posts: 21



Thanked: 1 times
My Contributions
C++ is the only programming language I know. If you want to finish your project you need to re-learn your possibility barriers, if you can't finish within it, then you switch to a more suitable language.
User is offlineProfile CardPM
+Quote Post

jmd992

RE: My Cmd Game

23 Sep, 2009 - 12:54 PM
Post #13

New D.I.C Head
*

Joined: 23 Sep, 2009
Posts: 13


My Contributions
ok btw did you download the file or copy the text because when i copy and paste the load works fine

i am downloading c++ atm are you using the "Microsoft Visual C++ 2008 Express Edition with SP1"?

This post has been edited by jmd992: 23 Sep, 2009 - 12:56 PM
User is offlineProfile CardPM
+Quote Post

Gus.bat

RE: My Cmd Game

28 Sep, 2009 - 11:43 AM
Post #14

New D.I.C Head
*

Joined: 27 Sep, 2009
Posts: 2

Here is The Newest Version I Spent around 8 hours making. It Has A Save Feature, An Actual Quest And More!!!


I will upload it when i'm allowed to upload .exe files.
User is offlineProfile CardPM
+Quote Post

UrbanTwitch

RE: My Cmd Game

3 Oct, 2009 - 10:28 PM
Post #15

New D.I.C Head
*

Joined: 27 Sep, 2009
Posts: 47


My Contributions
Just use pastebin.com smile.gif
I'm eager to play...
and possibly help you add new things!

This post has been edited by UrbanTwitch: 3 Oct, 2009 - 10:30 PM
User is offlineProfile CardPM
+Quote Post

Gus.bat

RE: My Cmd Game

12 Oct, 2009 - 03:39 AM
Post #16

New D.I.C Head
*

Joined: 27 Sep, 2009
Posts: 2

QUOTE(UrbanTwitch @ 3 Oct, 2009 - 10:28 PM) *

Just use pastebin.com smile.gif
I'm eager to play...
and possibly help you add new things!

I don't know what pastebin is but anyone who wants to help me finish this game should let me know because i ALREADY MADE A NEW TOWN!!!!!!! AND CHEATS!!!!!!!!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 03:05PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month