Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * File: main.cpp
- * Author: Logan Laframboise and Sean Bennell
- *
- * Created on February 1, 2016, 5:37 PM
- */
- #include <cstdlib>
- #include <ctime>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string>
- #include <iostream>
- #include <ctime>
- using namespace std;
- int cheats(string name){
- float self;//stat % for self
- float enemy;//stat % for enemy
- int hitRate;// | 0 = miss | 1 = hit |
- int extra;// | 0 = 0 |1 = bm | 2 = smile | 3 = silly text | 4 = no stat text | 5 = JOHNCENA |
- if(name == "Erikson"){
- self = 1;
- enemy = 0.5;
- hitRate = 1;
- extra = 0;
- }
- if(name == "LeGodOne"){
- self = 1.5;
- enemy = 0.5;
- hitRate = 1;
- extra = 1;
- }
- if(name == "TSM"){
- self = 2.0;
- enemy = 1.0;
- hitRate = 1;
- extra = 0;
- }
- if(name == "WildTurtle"){
- self = 1.0;
- enemy = 1.0;
- hitRate = 1;
- extra = 2;
- }
- if(name == "Doge"){
- self = 1.0;
- enemy = 1.0;
- hitRate = 1;
- extra = 3;
- }
- if(name == "NewGame"){
- self = 1.0;
- enemy = 2.0;
- hitRate = 1;
- extra = 0;
- }
- if(name == "Hunter2"){
- self = 1.0;
- enemy = 1.0;
- hitRate = 1;
- extra = 4;
- }
- if(name == "AndHisNameIS"){
- self = 1.0;
- enemy = 1.0;
- hitRate = 1;
- extra = 5;
- }
- else{
- self = 1.0;
- enemy = 1.0;
- hitRate = 1;
- extra = 0;
- }
- return (self,enemy,hitRate,extra);
- }
- int option(string choice){
- int number;
- number = 0;
- if(choice == "interact"){
- number += 1;
- }
- else if(choice == "items"){
- number += 2;
- }
- else if(choice == "investigate"){
- number += 3;
- }
- else if(choice == "flee"){
- number += 4;
- }
- return number;
- }
- int combat(){
- int eHP, uHP;
- int eEn, uEn;
- }
- int main(int argc, char** argv) {
- bool running = true;
- bool playing = true;
- string name;
- string close;
- string choice;
- int decision;
- while (running){
- cout << "What is your name? \n";
- cin >> name;
- while (playing){
- cout << "What would you like to do:\n";
- cout << "Interact\t" << "Items\t" << "Investigate\t" << "Flee\t\n";
- cin >> choice;
- decision = option(choice);
- /*
- * switch(x){
- * case 1:
- * stuff;
- * }
- */
- cout << endl << "Would you like to play again?\n";
- cin >> close;
- if(close == "no"){
- running = false;
- playing = false;
- }
- }
- }
- }
- i need to add a lot of stuff im in the process of working out how the combat system interacts so i can code the moves and stuff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement