Unless I'm missing something and you really do want external files for some reason, then it sounds like you want a struct. (Search that in the help file for more information).
Basically, declare a struct like this in the header:
Code: ags
Then, in the main script, you can define all the values:
Code: ags
And so on until you have reached the right number of characters.
Then where you are coding the attacks, if Scott is using an uppercut you can get the value simply by putting:
Code: ags
…in the relevant place.
Basically, declare a struct like this in the header:
Struct CharacterAttack {
int bite;
int uppercut;
int lowblow;
String name; // this is completely unnecessary but might help you remember who is who.
};
CharacterAttack CAttack[9]; // replace 9 with the number of characters you want less 1, as the first one will be character 0.
Then, in the main script, you can define all the values:
CAttack[0].bite = 10;
CAttack[0].uppercut = 15;
CAttack[0].lowblow = 15;
CAttack[0].name = “Scottâ€;
CAttack[1].bite = 12;
CAttack[1].uppercut = 13;
CAttack[1].lowblow = 17;
CAttack[1].name = “Philâ€;
And so on until you have reached the right number of characters.
Then where you are coding the attacks, if Scott is using an uppercut you can get the value simply by putting:
CAttack[0].uppercut
…in the relevant place.