ID:146771
 
Hello, I'm making a "Yu-Gi-Oh!" game and I have ran into a lil equipment card snag. Basicly what the code below is supose to do is supose to make it were only 5 cards can be Equipped, but how I have it by accident, it does this but only one problem, when I try to unequip andy of the 5 equipped cards, it comes up with the message that you can't Unequip them. Can ne1 help me fix this code.

Here is the Code in question.
obj/var/equip = 0
mob/var/maxequip = 0
obj/Equipment
SwordofDarkDestruction
icon='Equipment.dmi';icon_state="1";name="Sword of Dark Destruction"
suffix="Att +400 / Def -200 "
DblClick()
if(usr.maxequip==5)
usr<<"You can't have over 5 equipment cards equipped."
usr.maxequip=5
else
if(src.equip==0)
suffix="Att +400 / Def -200 (Equipped)"
src.equip=1
usr.maxequip+=1
else
suffix="Att +400 / Def -200"
src.equip=0
usr.maxequip-=1

mob/verb
MaxEquip_Edit(N as num)
usr.maxequip=N
Maybe it would be better to add all of the cards you equip to a list, and then check the length of the list.
In response to N1ghtW1ng
Thx for your suggestion, but i'm wanting it in the style like I have it posted in the first post. I'm just wanting some help fixing the previously posted code to where it will do what i'm wanting it to do.
In response to ElderKain
[bump] for Post [link]

note: it has been over a day so thats why i'm bumping the message.
In response to ElderKain
Sorry to tell you, bumping is not permitted anymore I think.
In response to N1ghtW1ng
why, i haven't ready anywhere in the forum rules about the restriction of bumping, if u are sure about that, please message with a link to the section of the forum rules which states that.

In the mean time i could use a lil help on Post [link]
"Note:Instead of changing the subject of the post."
In response to ElderKain
ElderKain wrote:
why, i haven't ready anywhere in the forum rules about the restriction of bumping, if u are sure about that, please message with a link to the section of the forum rules which states that.

In the mean time i could use a lil help on Post [link]
"Note:Instead of changing the subject of the post."


[bump]
Its been 2 days and still no usefull responce.