- Joined
- Aug 22, 2015
- Messages
- 6
- Reaction score
- 0
- First Language
- Portuguese
- Primarily Uses
- N/A
In one condition I used a standard Script of Ace's own to make a message appear if the hero has 4 identical weapons. If the hero has 3, another message appears, being that when it has 3 and I put another different weapon, the condition does not happen and jump right into the else.
Weapon has 4 slots.
Example:
If Hero has 4 equal weapons equipped
Something happens
else
If Hero has 3 equal weapons equipped (I discovered the "Bug" in that part)
Something happens
else
"Message that appears"
end
end
Equip the hero with 3 identical weapons and 1 different one and the conditions are not being activated. They are jumping straight to the last else.
I use this script:
$game_player.actor.weapons.size === 3 && $game_player.actor.weapons.all? {|w| w.id === 3 }
1 - How can I solve this problem?
2 - In the case of an armor, what would this script look like?
Weapon has 4 slots.
Example:
If Hero has 4 equal weapons equipped
Something happens
else
If Hero has 3 equal weapons equipped (I discovered the "Bug" in that part)
Something happens
else
"Message that appears"
end
end
Equip the hero with 3 identical weapons and 1 different one and the conditions are not being activated. They are jumping straight to the last else.
I use this script:
$game_player.actor.weapons.size === 3 && $game_player.actor.weapons.all? {|w| w.id === 3 }
1 - How can I solve this problem?
2 - In the case of an armor, what would this script look like?

