turf
Scorpion
icon = 'scorpion.PNG'
Click()
usr.loc=locate(1,1,3)
sleep(85)
var/N
N=input("Is this the fighter that you would like to train and battle with?", "Mortal Kombat Armageddon")in list("Yes","No")
if("Yes")
src.loc=locate(1,1,1)
Problem description:
Its beign stupid and telling me i cant have things when they are where they are suppose to be. can somone help me. Here ar ethe errors
Fighter icons\Character icons.dm:9:error:"Yes":value not allowed here
Fighter icons\Character icons.dm:10:error::empty type name (indentation error?)
Fighter icons\Character icons.dm:10:error:src.loc:undefined var
Fighter icons\Character icons.dm:8:error::expected a constant expression
Another think, if("Yes") isn't accepted because it will always be true. No point in using an if() statement there, then. You need it under a switch() statement, or you need to check a value directly. if("Yes") doesn't check anything.
Use
if(N=="Yes") loc=(1,1,1)
or
switch(N)
if("Yes") loc=(1,1,1)
By the way, just while were on the subject, usr in Click() is the person doing the Click() procedure. src is the atom you click. Y'know, just incase you didn't know. This procedure is making no sense to me, but then, I have no idea how your game works.