ID:139628
 
Code:
mob/var
Weapon
Shield
Armor
Ring
Necklace
Gloves
Legs
Boots
Waist
Arms
Back
Bstr = 5
Bdex = 5
Bcha = 5
Bdef = 5
Barmor = 5
Batk = 5
Bacc = 75

mob/var/list
equipment = list("Weapon","Shield","Armor","Ring","Necklace","Gloves","Legs","Boots","Waist","Arms","Back")

obj/equipment
var
equip_slot = "NULL"
isequipped = 0
isepic = 0
str_up
def_up
cha_up
armor_up
atk_up
verb
equip()
for(var/E in usr.equipment)
if(usr.equipment[E] == equip_slot)
if(usr.equipment[E] == /mob/var/[E])
Bstr += str_up
Bdef += def_up
Bcha += cha_up
Barmor += armor_up
Batk += atk_up
weapon
sword
equip_slot = "Weapon"


Problem description:I am getting a number of erroes... 53 of them, but i know some errors are just by products of the first error, so i will explain the situaution, and put the notes, and the complete list of errors at the bottom of this thread.

Okay,the main error is:
GameStarter.dm:20:error: var: bad constant

Which when double clicked to find the line in question, goes to 'mob/var' at the top of the code example, and i only got this code after redo'ing my equip verb, and changing the var's name under 'mob/var' it could be because of the var's name, but i don't think that is it, because it shouldn't conflict with anything else, because all the other var like it, are different var's. (Right know "Weapon" is 2 different var's for a mob, a var in a list, and a seperate var.

EDIT: I only gave the 'weapon/sword' as an example, there is more like that, for different gear pieces, with different values for 'equip_slot'

Complete list of errors:
GameStarter.dm:73:error: I: undefined var
GameStarter.dm:74:error: I.isequipped: undefined var
GameStarter.dm:75:error: I.equip_slot: undefined var
GameStarter.dm:76:error: I: undefined var
GameStarter.dm:77:error: I.equip_slot: undefined var
GameStarter.dm:78:error: I: undefined var
GameStarter.dm:79:error: I.equip_slot: undefined var
GameStarter.dm:80:error: I: undefined var
GameStarter.dm:81:error: I.equip_slot: undefined var
GameStarter.dm:82:error: I: undefined var
GameStarter.dm:83:error: I.equip_slot: undefined var
GameStarter.dm:84:error: I: undefined var
GameStarter.dm:85:error: I.equip_slot: undefined var
GameStarter.dm:86:error: I: undefined var
GameStarter.dm:87:error: I.equip_slot: undefined var
GameStarter.dm:88:error: I: undefined var
GameStarter.dm:89:error: I.equip_slot: undefined var
GameStarter.dm:90:error: I: undefined var
GameStarter.dm:91:error: I.equip_slot: undefined var
GameStarter.dm:92:error: I: undefined var
GameStarter.dm:93:error: I.equip_slot: undefined var
GameStarter.dm:94:error: I: undefined var
GameStarter.dm:95:error: I.equip_slot: undefined var
GameStarter.dm:96:error: I: undefined var
GameStarter.dm:20:error: var: bad constant
GameStarter.dm:372:error: E: expected assignment
GameStarter.dm:373:error: Bstr: undefined var
GameStarter.dm:374:error: Bdef: undefined var
GameStarter.dm:375:error: Bcha: undefined var
GameStarter.dm:376:error: Barmor: undefined var
GameStarter.dm:377:error: Batk: undefined var
GameStarter.dm:101:error: usr.weapon_slot: undefined var
GameStarter.dm:102:error: usr.weapon_slot: undefined var
GameStarter.dm:103:error: usr.shield_slot: undefined var
GameStarter.dm:104:error: usr.shield_slot: undefined var
GameStarter.dm:105:error: usr.armor_slot: undefined var
GameStarter.dm:106:error: usr.armor_slot: undefined var
GameStarter.dm:107:error: usr.ring_slot: undefined var
GameStarter.dm:108:error: usr.ring_slot: undefined var
GameStarter.dm:109:error: usr.necklace_slot: undefined var
GameStarter.dm:110:error: usr.necklace_slot: undefined var
GameStarter.dm:111:error: usr.gloves_slot: undefined var
GameStarter.dm:112:error: usr.gloves_slot: undefined var
GameStarter.dm:113:error: usr.legs_slot: undefined var
GameStarter.dm:114:error: usr.legs_slot: undefined var
GameStarter.dm:115:error: usr.boots_slot: undefined var
GameStarter.dm:116:error: usr.boots_slot: undefined var
GameStarter.dm:117:error: usr.waist_slot: undefined var
GameStarter.dm:118:error: usr.waist_slot: undefined var
GameStarter.dm:119:error: usr.arms_slot: undefined var
GameStarter.dm:120:error: usr.arms_slot: undefined var
GameStarter.dm:121:error: usr.back_slot: undefined var
GameStarter.dm:122:error: usr.back_slot: undefined var


Show us a couple of the lines above mob/var. If it's at the top of the code file, show the last lines in the previous file.

Chances are, the problem is actually above the line it reports in the error.
You do not need all the variables when you have the list.

mob/var/equipment = list("Head","Chest") //etc

obj/equipment
var/equip_slot
verb/equip()
if(!usr.equipment[src.equip_slot])
usr.equipment[src.equip_slot] = src
else usr<<"There is another item already equipped to this slot"
helmet
equip_slot = "Head"

This would be a good start
In response to Spunky_Girl
Sorry about this thread, i have fixed the main issue for it (I am down to only 25 errors, so i am kinda happy that was solved, i only know that the error was something in the equip verb, but i just deleted it, and redone it in a different way, and most of the errors whent bye bye, then i troubleshot some more, and turns out i forgot to change 24 var names :/ which led to 24 errors, so i fixed them, and those erroes went byebye.
In response to DarkCampainger
See my reply to spunkygirl please.