Solved the problems with my vars
I rewrote all the code
:P
Now I still have a question...
Where can I place the verbs that no one would be able to use them until he called one specific procedure?
Like a common verb like
verb
kick
that can only be accessed if, and only if, the char learned how to kick throught a specific proc like
proc
Learn(kick)
The problem is not to add or subtract the verb. The problem is to make it unacessible until the proc is called. If I don't place it under /mob, it won't find the vars needed. And if I place, the char will have it ever
May someone help me?
Regards
Leandro
ID:177364
Sep 17 2002, 10:57 am
|
|
In response to DBHavenMaster
|
|
That won't work because adding Kick() does nothing except cause an error, if you want to add something to the verbs list it has to be a type path:
mob |
In response to Nadrew
|
|
AHH! *smacks self* He He can't believe I made such a lame mistake. Damn...
::DBHavenMaster:: |
Obj
Learn_Kick()
verb
Kick()
usr << "You kick your opponent.
Or if you're looking for a proc:
mob
Teacher
icon='icon.dmi'
icon_state="icon_state"
verb
Learn()
usr << "You learn to kick!"
Kick_Learn()
proc/Kick_Learn()
usr.verbs += Kick()
mob
verb
Kick()
usr << "You kick your opponent!"
Untested but should work.
::DBHavenMaster::