Asha's (smol) battler's a text-based RPG combat game written in C++ featuring an interactive battle system with elements, status effects, and math-based blocking mechanics.
- Turn-based battles against various monsters
- Combo point system for special moves
- Interactive blocking system with math challenges
- Element-based damage system
- Status effects that influence combat
- Inventory system with usable items
- 5 Monster Types: Normal, Fire, Ice, Poison, Undead
- Element Interactions:
- Fire is super effective against Ice
- Ice is strong against Poison
- Fire deals bonus damage to Undead
- Poison is weak against Undead
- Burn: Reduces attack power
- Frozen: Reduces defense
- Poison: Reduces both attack and defense
- Curse: Severely reduces both stats
- Health Potion: Instant healing
- Healing Salve: Healing over time
- Warrior's Elixir: Temporary attack boost
- Stone Skin Potion: Temporary defense boost
- Battle Flask: Temporary attack and defense boost
- Basic Attack: Builds combo points
- Special Moves: Requires 3+ combo points
- Block Stance: Solve math problems to reduce incoming damage
- Item Usage: Use items from inventory
- Run: Attempt to escape battle
- Gain experience points from defeating monsters
- Level up to increase stats
- Bonus XP for defeating elemental monsters
- Random item drops from victories
- Clone the repository
- Compile the source code using a C++ compiler
- Run the executable
- Enter your hero's name when prompted
- Follow the tutorial to learn game mechanics
- Battle monsters and level up!
- C++ compiler with C++11 support or higher
- Standard Template Library (STL)
- System capable of running console applications
#include <iostream>
#include <vector>
#include <chrono>
#include <thread>
#include <limits>
#include <ctime>
#include <future>
#include <map>
#include <random>
#include <iomanip>Creature: Base class for all entitiesHero: Player character class (inherits from Creature)StatusEffect: Manages status effects and their durationsItem: Handles item properties and effects
MonsterTemplate: Template for monster creationvector<Item>: Inventory managementmap<string, StatusEffect>: Active effects tracking
This project is available for free use and modification. Please credit the original source if you redistribute or modify it.