- Joined
- Jan 7, 2019
- Messages
- 90
- Reaction score
- 115
- First Language
- Japanese
- Primarily Uses
- RMXP
Hi there,
I wonder why, since actors' equips is an array only?
Why can't i remove for example, actor 1 weapon just like this:
$game_actors[1].equips[0] = 0 or
$game_actors[1].equips[0] = nil
i see in game_player script, they discard weapon like this:
@equips[slot_id].object = nil if slot_id
Now why when i try to run this code:
$game_actors[1].equips[0].object = nil
it got error of undefined "object" method??? I just copied it from game_player script, why it's error?
I wonder why, since actors' equips is an array only?
Why can't i remove for example, actor 1 weapon just like this:
$game_actors[1].equips[0] = 0 or
$game_actors[1].equips[0] = nil
i see in game_player script, they discard weapon like this:
@equips[slot_id].object = nil if slot_id
Now why when i try to run this code:
$game_actors[1].equips[0].object = nil
it got error of undefined "object" method??? I just copied it from game_player script, why it's error?

