Im in the middle of my game and i have it to when you equip a club it gives you a certain amount of strength and you can keep equiping it
thats the problem i have a copper sword and when you equip it you get a certain amount of strenght but you cant keep equiping it
they have the same things but the vars of course
so i am not sure whats wrong
i have been over it many time and i cant find whats wrong
so if you could help me i would apreaciate it very much
here is the code
obj/bamboo
icon='icons.dmi'
icon_state="bamboo"
verb/Get()
set src in oview(1)
usr.contents+=new/obj/bamboo
del(src)
verb/Drop()
set src in usr.contents
if(usr.M>=1)
usr<<"You Have Something Equiped"
else
src.Move(usr.loc)
verb/Equip()
set src in usr.contents
if(usr.M>=1)
usr<<"You already have something Equiped"
if(usr.MX>=1)
usr<<"You already have something Equiped"
if(usr.MXB>=1)
usr<<"You already have something Equiped"
else
suffix+="Equiped"
usr.M=1
usr.attack+=2
verb/Unequip()
set src in usr.contents
if(usr.M<=0)
usr<<"You have nothing Equiped"
else
suffix=null
usr.attack-=2
usr.M=0
obj/club
icon='icons.dmi'
icon_state="club"
verb/Get()
set src in oview(1)
usr.contents+=new/obj/club
del(src)
verb/Drop()
set src in usr.contents
if(usr.MX>=1)
usr<<"You have something equpied"
else
src.Move(usr.loc)
verb/Equip()
set src in usr.contents
if(usr.M>=1)
usr<<"You already have something Equiped"
if(usr.MX>=1)
usr<<"You already have something Equiped"
if(usr.MXB>=1)
usr<<"You already have something Equiped"
else
suffix+="Equiped"
usr.MX=1
usr.attack+=4
verb/Unequip()
set src in usr.contents
if(usr.MX<=0)
usr<<"You have nothing Equiped"
else
suffix=null
usr.attack-=4
usr.MX=0
obj/coppersword
icon='icons.dmi'
icon_state="coppersword"
verb/Get()
set src in oview(1)
usr.contents+=new/obj/coppersword
del(src)
verb/Drop()
set src in usr.contents
if(usr.MXB>=1)
usr<<"You already have something Equiped"
else
src.Move(usr.loc)
verb/Equip()
set src in usr.contents
if(usr.M>=1)
usr<<"You already have something Equiped"
if(usr.MX>=1)
usr<<"You already have something Equiped"
if(usr.MXB>=1)
usr<<"You already have something Equiped"
else
suffix+="Equiped"
usr.MXB=1
usr.attack+=8
verb/Unequip()
set src in usr.contents
if(usr.MXB<=0)
usr<<"You have nothing Equiped"
else
suffix=null
usr.attack-=8
usr.MXB=0
thank you if you help me
ID:149746
![]() Feb 24 2002, 10:25 am
|
|
![]() Feb 24 2002, 10:27 am
|
|
Take a look at this.
|