Hi this is my first post not sure if this should be in the advanced forum or not but here goes
what i am trying to do is make an adventure game where i have a player character that every now and again will have to battle through stages, the way i was going to do this is have an external text file for each of the characters with the name of the attack and the power of that attack, iv looked through some posts on the forum and had i look through the help files then give it my best shot but cant get it to work, here is my code please can some1 show me my amature errors
;
Global Script
Code: ags
Text File
Code: ags
At the moment this seems like im biting more than i can chew but if any1 can help me script this right then my demo game will be near completion
what i am trying to do is make an adventure game where i have a player character that every now and again will have to battle through stages, the way i was going to do this is have an external text file for each of the characters with the name of the attack and the power of that attack, iv looked through some posts on the forum and had i look through the help files then give it my best shot but cant get it to work, here is my code please can some1 show me my amature errors

Global Script
function Attack_OnClick(GUIControl *control, MouseButton button)
{
int number;
File *input = File.Open("ScottAttack.txt", eFileRead);
number = input.ReadInt(2);
input.Close(0);
}
Text File
# Scott-Attack
Bite: 10
Uppercut: 15
Lowblow: 15
}
At the moment this seems like im biting more than i can chew but if any1 can help me script this right then my demo game will be near completion
