ID:179692
 
Ok, the question is, lets say I have a spell/move whatever you want to call it. But I only want a particular char to be able to learn it, while if another char trys to learn it, it will say something like, you are not able to learn that move. Can anyone please help me?

Thanks
~KnightRen
ignore this
In response to Flask
So you mean all I have to do is just put the char into the move coding?
mob/me
icon = 'me.dmi'
usr.s=1
mob/you
icon = 'you.dmi'
usr.s=0
mob
LearnDude
icon = 'learndude.dmi'
Click()
if(usr.s==1)
switch(input("Would you like to leanr this move")in list("Yes",No"))
if("Yes")
usr.verbs+=new/mob/proc/Name of attack
usr<<"you have learnd name of attack"
if("no")
usr<<"Well why bother coming here"
else
usr<<"Sorry But you need to be a different race to learn this
Hmm, I had a question like that along time ago, I`m glad i figured i out before asking on the forum
anywho
In response to KnightRen
You could look up istype() in the reference.
In response to Flask
this code has so many mistakes, it will never work.

first mistake, you have usr.s, you need var/s = 0

second mistake, you have it all tabbed wrong and its not correctly coded

third mistake, in the list you have "No", but in the if statment, you have if(.... "no")

it is case sensitive

FIREking
In response to FIREking
Well i am sorry man but it was a ruff code that i was doing and i didnt want to debug any thing in it and i figured he would know to make a var s