Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 26/12/2004 09:07:52

Title: Problem with a sequence of variables
Post by: on Sun 26/12/2004 09:07:52
I've called a sequence of variables num1, num2, num3, num4...
Then I have a function that return an int variable "count"
I'd want to use as a parameter the variable numx where x is the value of "count"
What have I to write in the code to do this?
Title: Re: Problem with a sequence of variables
Post by: Doctor Oakroot on Sun 26/12/2004 15:37:01
Much easier if you use arrays.

int num[10];

num[count]=1; // or whatever you want to do with it.