ID:150084
 
mob/Warrior/verb
FlameSword()
if(usr.EleSword == "FlameSword")
view(6) << "The flames of [usr]'s sword die down."
usr.overlays -= 'FlameSword.dmi'
usr.overlays += 'Sword.dmi'
usr.EleSword = "Sword"
usr.EleSword2 = 0
if(usr.EleSword2 == 1)
view(6) << "The flames of [usr]'s sword die down."
usr.overlays -= 'FlameSword.dmi'
usr.overlays += 'Sword.dmi'
usr.EleSword = "Sword"
usr.EleSword2 = 0
else
view(6) << "[usr]'s sword ignites in flames!"
usr.overlays -= 'Sword.dmi'
usr.overlays += 'FlameSword.dmi'
usr.EleSword = "FlameSword"
usr.EleSword2 = 1

Thats my code, I can't get it to work right, I'm trying to get it so if you use the skill it ignites your current sword, but it also dies down if your EleSword stat is the certain one as well as if your EleSword2 stat is 1 which is my occupied number. Thanks ahead of time to anyone who helps, and I hate you to anyone who insults me... =)
Start with this:

mob/Warrior/verb
FlameSword()
if(usr.EleSword == "FlameSword" || usr.EleSword2)
view(6) << "The flames of [usr]'s sword die down."
usr.overlays -= 'FlameSword.dmi'
usr.overlays += 'Sword.dmi'
usr.EleSword = "Sword"
usr.EleSword2 = 0
else
view(6) << "[usr]'s sword ignites in flames!"
usr.overlays -= 'Sword.dmi'
usr.overlays += 'FlameSword.dmi'
usr.EleSword = "FlameSword"
usr.EleSword2 = 1

In response to Skysaw
That doesn't work for some reason, I think its because at login I have it able to choose which you want...

var/choice1 = input("What is your element?") in list("Fire", "Water", "Earth", "Wind", "Dark", "Light")
if(choice1 == "Fire")
usr.overlays += "FlameSword.dmi'
usr.EleSword = "FlameSword"
usr.EleSword2 = 1

...and it continues on like the above choice for each element in the same format.

okay, I fixed the problem, the only thing is the command I now set up for the swords are ElementalSword, and I want the name = "Elemental Sword" and each command to do different, any help out there, thanks