Okay, I''m making a battle system similar to a game called Fate Extra: http://www.youtube.com/watch?v=1eH5tPZ_lzs&feature=related
It's basically rock-paper-scissors taken up a notch. I've gotten the engine working to where it can select one of three options, but I can't get it to select and store up to 6 individual choices and then compare them with the computer's choices made via a random function in order.
Any help with that?
It sounds to me like your after an Array to store your data.
using System.Collections.Generic
public List<int> selectedItems = new List<int>();
public void AddItem(int Selection)
{
selectedItems.Add(Selection);
}
public void CheckItems()
{
foreach(int outInt in selectedItems)
{
//Your stored values will be looped over here.
print(outInt);
}
}
There may be some errors in that code, I wrote it directly in the text field.But arrays are the way to go!