08-03-2009, 05:20 PM
For the armors, I set up an array you can access. It is flexible so you can have different armor combinations for each actor:
Um, I didn't make weapons accessible outside the script itself. Just add a:
attr_accessor :weapons
to Game_Actor so you can access the weapons array the same as you can armor_id, though it only holds weapons[0] and weapons[1].
Code:
for i in 0..$game_party.actors[1].armor_id.size-1
p $game_party.actors[1].armor_id[i]
end
Um, I didn't make weapons accessible outside the script itself. Just add a:
attr_accessor :weapons
to Game_Actor so you can access the weapons array the same as you can armor_id, though it only holds weapons[0] and weapons[1].