ID:261161
 
When i use the istype command the other classes still get the choice of the spell tab.

Why wont it work?
Air _King wrote:
When i use the istype command the other classes still get the choice of the spell tab.

Why wont it work?

Since you don't give many details to your problem other than the fact that you used the istype command and have a spell tab I can't give any specific help. But if you think it is a problem with istype you should look it up in the reference and make sure that the problem isn't from you using it in the incorrect context.
Are you using istype inside of a verb to determine who gets the verb? That won't work. You can prevent others from using the verb... by making the verb return... but you can't stop them from having access to the verb with anything inside the verb code.
In response to LexyBitch
LexyBitch wrote:
Are you using istype inside of a verb to determine who gets the verb? That won't work. You can prevent others from using the verb... by making the verb return... but you can't stop them from having access to the verb with anything inside the verb code.

I stoped the return, but your saying there is NO way whatsoever that you know of to stop other classes from getting it?
In response to Air _King
Don't give other classes the verb. Either remove it, or make sure the verb isn't defined for their class.

-AbyssDragon
In response to Air _King
Air _King wrote:
LexyBitch wrote:
Are you using istype inside of a verb to determine who gets the verb? That won't work. You can prevent others from using the verb... by making the verb return... but you can't stop them from having access to the verb with anything inside the verb code.

I stoped the return, but your saying there is NO way whatsoever that you know of to stop other classes from getting it?

I tried this shouldnt it work?
mob/mage/proc/Acid()
if(Level>=20)verbs += /mob/verb/Acid
In response to Air _King

I tried this shouldnt it work?
mob/mage/proc/Acid()
if(Level>=20)verbs += /mob/verb/Acid

If you added a line feed, a carriage return, and 2 tabs it should compile fine so long as /mob/verb/Acid and mob/var/Level exists. This proc when called will check the src.Level and if it's 20+ then it will append /mob/verb/Acid to the src.verbs list. If this is what you want it should do just that.
In response to Theodis
Theodis wrote:
I tried this shouldnt it work?
mob/mage/proc/Acid()
if(Level>=20)verbs += /mob/verb/Acid

If you added a line feed, a carriage return, and 2 tabs it should compile...

What???A baby returnig?
In response to Air _King
Air _King wrote:
What???A baby returnig?

Your attempt to be humourous failed.

You see, anyone with logic knows what a carriage return is.

-looks at you-

And you, sir, obviously don't.
In response to Vortezz
Vortezz wrote:
Air _King wrote:
What???A baby returnig?

Your attempt to be humourous failed.

You see, anyone with logic knows what a carriage return is.

-looks at you-

And you, sir, obviously don't.

Ok i have heard of it and i do admit it wasnt funny.
Is this how you do it by ;?
In response to Air _King
I said nothing of the sort. The secret to making sure other classes don't have the verb: just don't give the verb to other mobs.