[C#]RPG game[C#]

Status
Not open for further replies.

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
Sup guys so I'm getting bored of doing nothing on Friday's,Saturday's,& Sunday's except for playing black ops :D.Anyways since I have been coding in C# for a year now I think I should do a cool game in C# where you can pick a monster to fight for example the current 3 monsters are Slime, Mage, & Barbarian.You may ask why I picked these names will I picked them because they came to my mind and you can edit the names if you would like.

When will this be release?
Whenever I'm done DUH!

Can I help with this project?
If you know C# but I don't think I would need any help with this but if I do I will ask you.

Why C#?
Well I picked C# because it's the coding languages that I like plus I like python so deal with it!

Pictures:
coming soon?

Snippets:
Code:
using System;
using System.Collections.Generic;
using System.Text;

namespace Rpg
{
    public class Hero : Character
    {
        public List<string> items;
        public Hero()
        {
            items = new List<string>();
        }
        public static void Initialize(Hero hero)
        {
            hero.CurrentHealth = 18;
            hero.MaxHealth = 18;
            hero.CurrentMagic = 8;
            hero.MaxMagic = 8;
            hero.Strength = 10;
            hero.Defense = 3;
            hero.Agility = 6;
            hero.Experience = 0;
            hero.Gold = 0;
            while (hero.Identifier == null || hero.Identifier == "" ||
                hero.Identifier == " ")
            {
                Console.WriteLine("Type in your hero name to fight!:");
                hero.Identifier = Console.ReadLine();
            }
            hero.isAlive = true;
            hero.AttackDamage = hero.Strength;
        }
        public bool CheckItems(string item)
        {
            if (items.Contains(item))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }

}

Credit(s):
Me - coding :D

I will post updates on this project
 

Benden

maging ang maganda mamatay
Jun 4, 2010
2,281
1,480
Do you need any graphics?
and can you give more info on the game. Like do you level up and the higher level you are the more monsters you unlock to fight?
If you need any ideas I'm free to shoot :)
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,903
Nice looks good, If you need a hand at all ask me, if you do get stuck which I doubt xD.
 

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
Thanks sledmore and other people :D and I if I get a stuck on a bug I will need help as I'm not to good with bug fixing lol but back to coding

UPDATE

--Just coded the monster slime and don't worry I added comments so you can guys can understand--
--Coded Hero aswell plus character file--

Gonna work on the other 2 monsters and coding the main game :)
 

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
Thanks CabLink at the moment I'm coding mage the monsters will have different strength, health, ect...

-----------------------------------------------Merged--------------------------------------------------------------

UPDATE

--Just coded Mage the monster he is a little bit stronger then Slim--

Here is a snippet of my progress so far

Code:
using System;
using System.Collections.Generic;
using System.Text;

namespace RPG
{
    class Mage : Character
    {
        public Mage()
        {
            base.AiAttack = 55;
            base.AiDefend = 65;
            base.AiSpell = 95;

            base.SpellOne = 35;
            base.SpellTwo = 75;

            base.CurrentHealth = 10;
            base.MaxHealth = 10;
            base.CurrentMagic = 17;
            base.MaxMagic = 17;
            base.Strength = 7;
            base.Defense = 3;
            base.Agilitly = 5;
            base.Experience = 20;
            base.Gold = 15;
            base.Indentifier = "Mage";
            base.isAlive = true;
            base.AttackDamage = Strength;
        }

        public override string AI()
        {
            string choice;
            int ainumberchoice;
            rand = new Random();
            ainumberchoice = rand.Next(1, 100);
            if (ainumberchoice < base.AiAttack)
            {
                choice = "A";
            }
            else if (ainumberchoice <= base.AiDefend && ainumberchoice >= base.AiAttack)
            {
                choice = "D";
            }
            else if (ainumberchoice <= base.AiSpell && ainumberchoice >= base.Defend)
            {
                choice = "S";
            }
            else
            {
                choice = "F";
            }
            return true;
        }

        public override string SpellAI()
        {
            if (base.CurrentHealth < (base.CurrentHealth / 2))
            {//Mage can heal himself if he wants to ;)
                spellOne /= 2;
                spellTwo /= 2;
            }
            string choice;
            int ainumberchoice;
            rand = new Random();
            ainumberchoice = rand.Next(1, 100);
            if (ainumberchoice < base.SpellOne)
            {
                choice = "F";
            }
            else if (ainumberchoice <= base.SpellTwo && ainumberchoice >= base.SpellOne)
            {
                choice = "I";
            }
            else
            {
                choice = "H";
            }
            return true;
        }
    }
}
NEW UPDATE

--Coded the other monster I suggest not to fight him lol--

NEW UPDATE

--Coded Battle and BattleHelper in order for you to cast spells ect....--
 

Kryptos

prjRev.com
Jul 21, 2010
2,205
1,252
Looks good, but I don't know about a text game, unless you can play with your friends with Internet.
Looks good coded, good luck with it!
 

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
Thank's kryptos and your right I can see what I can do so you can play with your friends but that will be hard to do as I'm not to good with sockets lol but I will try my best.
 

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
Ehhh same I guess :) I'm gonna go play some black ops then go to bed and 2morrow hopefully I can finish if not then Sunday so nights!!!!!!!!!!!
 

Kaz

BooYah
Staff member
Nov 16, 2010
3,064
1,025
Hope all goes well with this project and good luck with it.
Like Kryptos said, adding in a multiplayer function would be pretty awesome :)
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,903
Can we see a screen-shot or an example of this? I'm confused to be honest, what's it going to look like?
 

Eternal

New Member
Sep 21, 2011
1
0
I just wanted to rage real quick and take the time out to say that OP is a faggot. This code he's "programming" is just stolen source code from and that's made obvious by the names of the strings and classes. He literally is just copying pieces from this ALREADY DONE material and pretending to be a programmer. He added in a few variables in the declarations on the first class. Everything is straight up copied, from the "hero" class, to the "slime" monsters, all in this website.

To reiterate, Dayron is a lying faggot.
 

Dayron1234

Rapnameiszero,cuzIhavezero,toleranceforidiots
Jun 30, 2010
772
35
First off Eternal you are picking on the wrong person. I can be your worst nightmare. Second off I admit I did get help from my friend and I only coded some parts. He probably got some shit from that website? Anywayz I'm done with C#. I'm working on PHP & MYSQi to become a computer progammer and get loads of $$$$$.
 
Status
Not open for further replies.

Users who are viewing this thread

Top