143
Dragon Eye RPG

This is an RPG made for the AI competition. The game is intelligent by generating a story and determining enemy moves.

About

Dragon Eye is a terminal based RPG. It may not be a AAA game, but it does have one special thing about it. Since there is no story, the game is generated by an AI based on decisions you have made.

Enemies

You can fight a variety of enemy's in the game. Before combat the game generates your enemy to be close to your level and damage, that way every fight is fair, and a decent challenge.

class Enemy{
  public int Level;
  public int Health;
  public string Race;
  public int Damage;
  public int Defense;
}

Items

Items are essential to playing Dragon Eye, without them you would most likely be on a death loop.

class Item{
  public string ItemType;
  public string ItemName;
  public int ItemLevel;
  public int Damage;
  public int Value;
}

Strategy

The gameplay is based on strategically making decisions. You always have 3 options in combat, attack, defend, and use item. Using an item will heal you with an item, defend will use your defense to counter the enemies next attack, and attacking will use your attack and subtract that from the enemies health.

class Player{
  public string Name;
  public int Level;
  public int Health;
  public string Race;
  public int Damage;
  public int GP;
  public int Defense;
  public int xp;
  public List<Item> Inventory = new List<Item>();
}
You are viewing a single comment. View All
2

at the first battle how do i attack?

2

@skull_is_dull You have to type the number of the action, so in order to attack you type "1". Then it will ask what to attack with, type in "Stick" as it is the starting item in your inventory.

2

@PixelBitez Although there is the problem if you type Attack instead of 1 your turn is skipped. Also, typing stick instead of Stick is also invalid.

3

@EatTofuEveryDay @PixelBitez You can easily fix this by using the .lower() function on your inputted variable, and the code will no longer be cap sensitive.

if input("Attack with what? ").lower() in inventory:
1

@KiKUP yeh ik but then i'd have to add a lot more code because the way I made combat is complicated

2

@PixelBitez Sure thing! I'm anxious to see what more you can do with this! :)

1

@EatTofuEveryDay im actually working on a second version of this game so i heard your feedback and am using it in the next version