obj
sword
icon = 'sword.dmi'
verb
Get()
set src in oview(1)
view() << "[usr] picks up \a [src]"
src.loc = usr
Drop()//I added it in now it wont work
if (usr.sword_equipped ==1)
usr << "Unequip it first."
return
view() << "[usr] drops \a [src]"
src.loc = usr.loc
Equip()
if(usr.sword_equipped == 0)
usr.Strength += 2
usr.sword_equipped = 1
view() << "[usr] equips a sword."
else
usr << "You are already wielding something."
Unequip()
if(usr.sword_equipped == 1)
usr.Strength -= 2
usr.sword_equipped = 0
view() << "[usr] unequips a sword."
else
usr << "You aren't wielding this."
Problem description: Objects.dm:22:error: inconsistent indentation
Objects.dm:24:error: inconsistent indentation
Objects.dm:25:error: inconsistent indentation
Objects.dm:28:error: inconsistent indentation
Objects.dm:29:error: inconsistent indentation
Objects.dm:30:error: inconsistent indentation
Objects.dm:31:error: inconsistent indentation
Objects.dm:32:error: inconsistent indentation
Objects.dm:33:error: inconsistent indentation
Objects.dm:34:error: inconsistent indentation
Objects.dm:33:warning: empty 'else' clause
Objects.dm:35:error: inconsistent indentation
Objects.dm:36:error: inconsistent indentation
Objects.dm:37:error: inconsistent indentation
Objects.dm:38:error: inconsistent indentation
Objects.dm:39:error: inconsistent indentation
Objects.dm:40:error: inconsistent indentation
Objects.dm:41:error: inconsistent indentation
Objects.dm:40:warning: empty 'else' clause
Objects.dm:46:error: proc definition not allowed inside another proc
Also you need to put your snippet inside of the dm tags.