ID:263065
 
Code:
mob/proc/Create()
var/A=input("What icon do you want?","?") in list ("Dark","Light")
if(A=="Dark")
src.icon='mobs.dmi'
src.icon_state="body"
src.overlays+=/obj/characterhead
if(A=="Light")
src.icon='mobs.dmi'
src.icon_state="body2"
src.overlays+=/obj/characterhead2


Problem description:
loading RPG.dme
index.dm:10:error:list:undefined proc
index.dm:11:error::invalid expression
index.dm:10:A :warning: variable defined but not used

RPG.dmb - 2 errors, 1 warning (double-click on an error to jump to it) i dont know what is happening this code should work fine but its not what is going wrong?


You indented wrong.

Also, input() defaults to usr.
Get rid of the space between list and the brackets.

Additionally, un-indent everything under the input, and put the mob you want to send it to as the first argument in input() - otherwise, you get Usr Abuse!