let's assume i know for sure that the character with ID = 1 (actor = 1) is in the party
i would like to know if he is in the first, second, third or fourth position inside the party
i want to use the "index" function because the help file says:
index(val)
Returns the position of the first element equal to val (using ==). If no such element is found, returns nil.
i want to store it into a variable, so i do this:
$game_variables[16] = @actors.index(1)
and of course, it gives me an error message :-/
i would like to know if he is in the first, second, third or fourth position inside the party
i want to use the "index" function because the help file says:
index(val)
Returns the position of the first element equal to val (using ==). If no such element is found, returns nil.
i want to store it into a variable, so i do this:
$game_variables[16] = @actors.index(1)
and of course, it gives me an error message :-/