sword
name = "Sword"
icon_state = "sword"
description = "+5 Power"
overlay_state = "sword"
overlay_layer = 2
map_state = "sword-map"
slot = MAIN_HAND
// make the sword actually give you +5 power
equipped(mob/m)
m.overlay(src)
m.power += 5
unequipped(mob/m)
m.remove(src)
m.power -= 5
Problem description:
Possible to make it so that items cant be equipped unless Said class or a certain level?
I.e :
say I am a Mage and I want to equip this bow, or chain-mail armour. It wouldn't let me because I am not the right class. Or if I wanted to equip a level 80 wand but I am only level 79, It wouldn't let me.
PS : Above is the code for a basic default sword code that is given with Action-Rpg-FrameWork