Almost over

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
if (Parser.Said("look rol"))
{
int lookID = Parser.FindWordID("look"); // get the word ID for "look" and its synonyms
String rol = command;
int index = rol.IndexOf(" ");
while (index != -1)
{
String word = rol.Substring(0, index);
int wordID = Parser.FindWordID(word);
if ((!wordID) || (wordID == lookID))
{
// word was an ignored word or "look" synonym
// strip out the remaining word(s), and update the index
rol = rol.Substring(index + 1, rol.Length - (index + 1));
index = rol.IndexOf(" ");
}
else index = -1; // if the word wasn't an ignored word or "look" synonym, simply break the loop (we found the rol!)
}
if (rol != "")
{
int i = 1;
Parser.ParseText(rol); // parse the rol to check for character names
while (i < Max_Mobs) // fixed this! <= will crash
{
if (String.IsNullOrEmpty(mob[i].name)) return;
String buffer = mob[i].name;
String name = "";
index = buffer.IndexOf(" ");
while (index != -1)
{
String word = buffer.Substring(0, index);
if (index < buffer.Length) buffer = buffer.Substring(index + 1, buffer.Length - (index + 1));
else buffer = "";
index = buffer.IndexOf(" ");
if ((buffer != "") && (index == -1)) index = buffer.Length;
if (Parser.FindWordID(word) > 0) name = name.Append(word.AppendChar(' ' * (index != -1)));
}
if ((name != "") && (Parser.Said(name)) && (mob[i].loc == mob[0].loc)) Print(mob[i].desc);
i++;
}
}
}
if (Parser.Said("look monk")) Print(mob[5].desc);
if (Parser.Said("look mushroom")) Print(item[11].desc);
...
Quote from: Jared on Fri 25/05/2012 01:39:00
I got a pretty strong idea now (yes, that's the third one, I know) thanks to an incredible first-ever free-writing session in which I've drawn up the whole game pretty much. I'll try and get it made now, if for nothing else than the simple fact that MAGS not getting an entry makes me all
Quote from: Sane Co. on Sat 19/05/2012 23:12:38
Let's say Fire is "la" and water is "wa" and the word denoting a verb is "ke." "Lawa" would be fire water A.K.A. alchohol or petrol
Quote from: Insane-Icey on Tue 24/04/2012 18:08:43
Is it really against the rules for a person to have an idea for a game weeks or days before the comp?
Quote from: Insane-Icey on Mon 23/04/2012 12:47:02You got to show a least one picture from which proves that these sprites are already used.
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.144 seconds with 21 queries.