fortysixand2
Member
Question from a confused beginner, because I can't find anything in the support or tutorials that quite seems to fix my problem.
Okay, in my project I have a character whose skills change depending on who else is in the party with him. Foolishly thinking "I can do this!", the way I've been trying to implement it is by checking $game_party.actors for actor IDs, like so:
if $game_party.actors.include?(1)
. . . and that's where it snags. I know I'm definitely doing something wrong with the syntax or setup, because that generates a no method error for that line (undefined method 'actors' for nil:NilClass).
I'm more hoping someone can clear up my confusion on this, I thought that the global variables and their related methods could be called from any script at any time? If not, what can I do differently; and if so, where am I farking up royally?
Ta.
Okay, in my project I have a character whose skills change depending on who else is in the party with him. Foolishly thinking "I can do this!", the way I've been trying to implement it is by checking $game_party.actors for actor IDs, like so:
if $game_party.actors.include?(1)
. . . and that's where it snags. I know I'm definitely doing something wrong with the syntax or setup, because that generates a no method error for that line (undefined method 'actors' for nil:NilClass).
I'm more hoping someone can clear up my confusion on this, I thought that the global variables and their related methods could be called from any script at any time? If not, what can I do differently; and if so, where am I farking up royally?
Ta.