ID:178565
 
okay My problem is at the bottom,I always get the last else statement.With my other statements.
obj/Materia/verb/UnEquipMateria()
set src in usr
for(var/obj/Weapons/Swords/C)
if(istype(C,usr.Sword))
if(src.E==1)
C.mslot=0
src.E=0
usr<<"[src] has been UnEquipped."
else
usr<<"No Materia is Equipped."
else
usr<<"No Weapon is Equipped."//Always get this
Indent the last part one over
okay My problem is at the bottom,I always get the last else statement.With my other statements.
obj/Materia/verb/UnEquipMateria()
set src in usr
for(var/obj/Weapons/Swords/C)
if(istype(C,usr.Sword))
if(src.E==1)
C.mslot=0
src.E=0
usr<<"[src] has been UnEquipped."
else
usr<<"No Materia is Equipped."
else
usr<<"No Weapon is Equipped."//Always get this
Came out wrong, I fixed it.
In response to Pzombie
Pzombie wrote:
okay My problem is at the bottom,I always get the last else statement.With my other statements.
obj/Materia/verb/UnEquipMateria()
set src in usr
for(var/obj/Weapons/Swords/C)
if(istype(C,usr.Sword))
if(src.E==1)
C.mslot=0
src.E=0
usr<<"[src] has been UnEquipped."
else
usr<<"No Materia is Equipped."
else
usr<<"No Weapon is Equipped."//Always get this
Came out wrong, I fixed it.

for(var/obj/Weapons/Swords/C in usr)
In response to Sariat
Thanks, I know I never would've figured that out haha