Help!
Does anyone know how to show a verb if you have a specific item in your inventory e.g.:-
usr.contents = 'sabre'
add
verb
Frenzy Attack()
if anyone knows what I am doing wrong please tell me
ID:167373
![]() Mar 22 2006, 3:17 am
|
|
I tried it like that but I end up with a weird runtime error you i can use the FrenzyAttack without the sabre being in usr.contents
|
That would be the proper way to do it, let me show a more thorough example.
obj/sword |
Ah, Thanks for that but what I was getting at was Unlocking verbs that had hidden above them e.g:-
hidden |
I still don't quite get what you're after.
Verbs can be set hidden, so they cannot be seen but still be used, like this: mob/verb/Say(T as text) That would allow someone to use the say verb, regardless of the fact that they can't see it. Or, if you want verbs that exist but aren't accessable until you give them the verb, you could do something like this: mob/special/verb //make verbs under type mob/special The verb can also be taken in a fairly similar fashion, using -= instead of +=. Of course, you don't have to use a verb to assign the special attack, you can have it appear when they equip it, or something to that effect. I hope I've hit on something similar to what you're after, otherwise let me know, 'cause I'm lost. =P </DM> |
I think thats it, not too sure though