You can use these lines to check if someone has a certain weapon equipped:
$game_party.actors[id].weapon_id == number
id = the position of the character in the party. 0-3.
number = the id of the weapon in the database.
OR:
$game_actors[id].weapon_id == number
id = the id of the character in the database.
number = the id of the weapon in the database.
Now, lets say that you wanted to make something happen whenever someone attacks, and has a special weapon equipped you can go to "def attack_effect(attacker)" in Game_Battler and use this to check if the attacker has that certain weapon:
if attacker.weapon_id == number
#do what you want to happen
else
#do something else
end
But that's just an example. I don't know what you're planning on doing ^^
I hope that helps. :thumb:
Over and out - Gando