scenarios for adventure game

This is a discussion on scenarios for adventure game within the Game Programming forums, part of the General Programming Boards category; Hey, for those of you that don't know, I'm working on a text adventure/rpg game. Well, i'm implementing different areas ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    178

    scenarios for adventure game

    Hey, for those of you that don't know, I'm working on a text adventure/rpg game. Well, i'm implementing different areas that you can go through as you progress through the game ex: woods, marsh, cave 1 etc etc. Instead of moving your character around, I have it so that random events happen. Well for the woods I have about 18 random events, now i am on the marsh and my imagination is gone for the night. If anyone has any ideas for scenarios for the woods or the marsh, please let me know and I will probably include them. I will also give you credit in the version notes. Thanks in advance.

  2. #2
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    Just the standard ones:
    -You come across a treasure chess. Open,Check,Disarm,Leave
    -Random battles with monsters(undead, bats, for marsh; elves,
    boars, for woods)
    -You find a Shaman, pay X gold to be healed
    -find an item

    BTW, I'm also making a text RPG. How are you doing the character movement? Do you have a function for each area? I'm trying to do this but it seems rather tedious...there must be a better way(I was thinking a 2 dimensional array for worldmap coords).

    napKIN

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    106
    there have been various topics on this before (not inferring anything). it would most likely, as you stated, be best to use a two-dim array as a map. thats if you want free character movement. the only confusing part with a two-dim array, is when you are dealing with coordinates, you have to remember that the first subscript is y (not x, as it logically should be), and the second subscript is x (not y). not trying to be self-promoting or anything here...i find it rather annoying myself, and my coding isn't exactly the best example...check out the games in my sig. the source is free, so you can attempt to find something in there, if you like. hope this helps.

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    2

    Cool hmmm

    you should fight a bear

  5. #5
    Registered User
    Join Date
    May 2002
    Posts
    178
    haha already got a bear. btw napkin, i don't really have any character movement, i'm trying to go with something that i don't see many people do. basically what i set up was, you hit a certain option to explore the area, it then chooses a random scenario, ex: You came across a tree with a big hole in it: reach in, run away bla bla. and you have to do certain things to be able to access the next area. i'll post it up after i get a little further in it.

  6. #6
    Unregistered
    Guest
    Make things that are on fire.

    Fire is fun.

  7. #7
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    i'm making rpg too its not realy text based but its pretty cool at its test stage!
    check it out

    keys (since help file is not made yet):
    arrows =move
    r (not battle) =rest
    esc =exit
    r (in battle) =run
    a (in battle) =attack
    s (in battle) =spell (can do all right now later will be restricted)
    tab =change window(useless at this point since items
    not made yet
    enter =choose spell (after you press s in battle)


    thats basically it. plz let me know what you think (i only initialized 6 out of 32 monsters because i haven't made the cave of moria yet) oh yes i forgot to say that i am making a game of lord of the rings, cave of moria to be exact.
    Attached Files Attached Files
    ¿Red Baron?

    "Imagination is more important than knowledge"
    -Albert Einstein (1879-1955)

    Check out my games!

    [code] /* dont forget code tags! */ [/code]

  8. #8
    Registered User sean345's Avatar
    Join Date
    Mar 2002
    Posts
    346
    red baron, how do you make a game like that. How do you do the graphics and get the screen to look that way? Do you know of any good tutorials? Thanks

    - Sean
    If cities were built like software is built, the first woodpecker to come along would level civilization.
    Black Frog Studios

  9. #9
    Unregistered
    Guest
    I like that red, that is really neat. Do you mind if i ask for the source, I promise I won't alter it or anything, i'm just sort of a newb and would like to study it. A lot of tutorials and books even lack good examples and it really helps to actually have a full program to study. If you don't want to I completely understand. And if you don't want to post it , i'd gladly give you my email address. Thanks either way, it will kill some time at work (:

  10. #10
    Registered User
    Join Date
    May 2002
    Posts
    178
    sorry the last post was me, i forgot to login. anyways i've been playing it for a while now and have 2 suggestions. First, the bad guys always attack you first. My personal opinion would be to set some type of random integer to control who attacks first so that sometimes you can have the first attack. Also, when you die, it does not let you know, it just exits. Great game though. It's fun to mess around with.

  11. #11
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    thanx guys i' m working on the items, play again, etc, save, etc, etc,etc,

    never gonna finish hehe.

    k the code is an extreme mess (in my opionion) and its hard to understand in some places, but i'll attach it (there are a couple of files to it:
    mori.c
    level.h
    msg.h
    structures.h
    keys.h

    oh yes the graphics aren't graphics (kind of) they are all the characters the comp already knows (thats why its called character graphics rather than pixel graphics) read level.h to see which char is which and its not too hard.
    I dont know of any tutorials but its all very basic things i just applied to the game, like before i noticed (like everyoen else) clearing screen doesn't make a good game, so i just cleared previous block and reprinted the new block and previous block to make the game much faster. the keys are all just getch which is rather simple (keys.h has all the codes for it) and the monsters magic and stuff are structure arrays.
    i'm sorry the code is such a mess i dont document until i'm done hehe .
    lastly this is for my exam/project for school so plz dont use the ideas until after may 31, because my teacher will be checking the web to see if people stole other peoples programs, thats all.
    later guys and enjoy!

    edit:
    sry guys but after thinking about it i didn't think it was such a good idea to post it on the web, so the couple of people who asked for it on the board i'll give u a copy (just e-mail me: mori_bmg@hotmail.com) but the rest of the people wait till may 31
    sry guys can't trust everyone in the world
    Last edited by red_baron; 05-12-2002 at 12:52 PM.
    ¿Red Baron?

    "Imagination is more important than knowledge"
    -Albert Einstein (1879-1955)

    Check out my games!

    [code] /* dont forget code tags! */ [/code]

  12. #12
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    Thats an interesting idea hostensteffa. Have you ever played Dragon Court at ffiends ? Just go to games then Dragon Court. Your setup sounds similar to the one at Dragon Court.

    napKIN

  13. #13
    Registered User
    Join Date
    May 2002
    Posts
    178
    Yup actually i'm a member of the portal so I can play dragon court 2 (:

  14. #14
    Registered User Spleeneraclingy's Avatar
    Join Date
    May 2002
    Posts
    16

    Pretty cool

    Hey red_baron, props to ya for your cool text game!
    "Life's short and hard, like a bodybuilding elf."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 03:46 PM
  2. 2D RPG Online Game Project. 30% Complete. To be released and marketed.
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 10-28-2006, 01:48 AM
  3. C++ Game of Life Program
    By rayrayj52 in forum C++ Programming
    Replies: 16
    Last Post: 09-26-2004, 04:58 PM
  4. Game Design Topic #1 - AI Behavior
    By TechWins in forum Game Programming
    Replies: 13
    Last Post: 10-11-2002, 11:35 AM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-25-2002, 12:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21