> First of all, if you have the time and you're by any chance a football/soccer fan, I would like that you give this game a try:
>
> (since I don't have 300 rep points, I cannot post an URL, so please google Soccer Cards PC, on manwithnomouth.com - latest version 1.42)
>
> It's a pretty fun game, mostly involving luck but sometimes even skill.
>
> Now my question is - can it be made with C2?
> At first sight, the game doesn't look that complex, the graphics are primitive and would be easily made with C2, but my main concern is generating the match outcome, and generating the schedule of the matches.
>
> Let's say that I have 4 teams to pick from, and I pick 2 that will play against each other. I've made 2 so far, and it works (both teams have inst. variables for matches played, wins, goals scored, points etc. which are at the end transferred to their respective cells in the array). But what if I want, let's say Team 2 vs. Team 4? How will I tell C2 that these teams are playing, and apply the post-match data to their variables? I'm thinking of a solution all day long, and just can't put my mind to anything. I was thinking of 2 slots, like ''opponent 1'' and ''opponent 2'', and then pick teams that will fill those slots, but how will the variables be handled still baffles me. I don't need any complex brainstorming, just a push in the right direction from someone who is more skilled with this tool.
>
> (Also, if you have already tested the game a bit, please take a look at some of the aspects of the game, most notably the Schedule, and possibly give me a slight hint or opinion how things should/could be made).
>
> Thanks in forward!
>
From what I read, it seems you are already in the right path
Your idea on 2 slots will work, handle the instance variables like you've done before, you should be ok!
Look at Array.IndexOf expression, you'll be using this quite a lot to update post-match data. I can relate this to my CCG project, the combo of Array.At(Array.IndexOf("variablesXXX"),variablesYYY) is pretty darn useful in cases like this.
Jeez, my brain is still useless I don't get it, and I don't know if the right path is the appropriate expression currently...
OK, I'll try to explain this as best as I can.
So far I've made 2 teams, both of them have instance variables for the matches played, wins, draws, goals scored etc. and are registered in the array, each team updates its stats when the match is simulated because it's set to run every tick. It's just Team 1 vs Team 2, and 2 global variables which represent the score. Based on that variable, the stats are applied to the teams in question.
So now (you've guessed it), I would like to take a step forward, and introduce a selection list of let's say 4 teams. Then I'd pick Team 2 and Team 3. But I just can't figure out clearly how will the game know who's playing, and to whom should it apply the post-match data at the end. What is the most less-painful way to code this? I mentioned the opponent 1 and 2 slots, but how would I apply the chosen teams (teams 2 and 3 in this case) to these slots, and how should I handle the score variables, so that at the end of the match, the data is applied to the teams that played?
I must mention that I'm very new at arrays, I just recently started working with them, so don't be too harsh on me I really like this game, and would like not just to remake it, but to improve it in many ways possible, but this is one of the major problems for me that needs to be solved.