class Commands
{
public void cmd()
{
string help = "!help";
string attack = "!attack";
string equipment = "!equipment";
string clothing = "!clothing";
string estates = "!estates";
string location = "!location";
string work = "!work";
string train = "!train";
string go = "!go";
string track = "!track";
string powers = "!powers";
string money = "!money";
string stats = "!stats";
string skills = "!skills";
string eat = "!eat";
string armor = "!armor";
string north = "!north";
string south = "!south";
string east = "!east";
string west = "!west";
string yes = "!yes";
string no = "!no";
for (; ; )
{
// statements
string holdValue = "";
if (Console.ReadLine() == "!help")
{
Console.WriteLine(help);
}
if (Console.ReadLine() == "!attack")
{
Console.WriteLine("You are Attacking!");
}
}
}
Then in my main I have this:
static void Main(string[] args)
{
Commands commands = new Commands();
commands.cmd();
}
the problem is sometimes when I type in !attack it will say you are attacking and sometimes it wont..not sure why I am getting this outcome. If anyone is curious..its just a lil Mini mud game.

New Topic/Question
Reply



MultiQuote





|