ID:150211
 
Hello everyone yes its me kalzimere its been a while sense i've written on the boards for help but now i need some help lol. Im creating a fantasy game thats all i say for now and i need it so at a certain level a new verb is added to there spell list. I have this code here....

greenmagiccheck()
if(usr.level >=2)
usr/verb/ +=new/mob/proc/darktest()
darktest()
set category="Magic-Transformations"
icon_state="darktest"

The code compiles fine but when i actualy do it in the game and reach level to there is a bunch of errors whcih happen these errors look like this....

Kalzimere (/mob): greenmagiccheck()
Kalzimere (/mob): Stat()
runtime error: type mismatch
proc name: greenmagiccheck (/mob/proc/greenmagiccheck)
usr: Kalzimere (/mob)
src: Kalzimere (/mob)
call stack:

Well theres all the info i think i can give that will hlp with the problem. I thank you all for always helping me in the past and those who attempt and just plainly take the time to look my problem over. Thanks again

-kalzimere


Kalzimere wrote:
Hello everyone yes its me kalzimere its been a while sense i've written on the boards for help but now i need some help lol. Im creating a fantasy game thats all i say for now and i need it so at a certain level a new verb is added to there spell list. I have this code here....

greenmagiccheck()
if(usr.level >=2)
usr/verb/ +=new/mob/proc/darktest()
darktest()
set category="Magic-Transformations"
icon_state="darktest"

The code compiles fine but when i actualy do it in the game and reach level to there is a bunch of errors whcih happen these errors look like this....

Kalzimere (/mob): greenmagiccheck()
Kalzimere (/mob): Stat()
runtime error: type mismatch
proc name: greenmagiccheck (/mob/proc/greenmagiccheck)
usr: Kalzimere (/mob)
src: Kalzimere (/mob)
call stack:

Well theres all the info i think i can give that will hlp with the problem. I thank you all for always helping me in the past and those who attempt and just plainly take the time to look my problem over. Thanks again

-kalzimere



All i can see wrong with it is that you need to do usr.verbs+=new/proc/whatever()
In response to Air _King
No you don't need the () when adding it can be


usr.verbs+=/mob/proc/Whatever
In response to Nadrew
wow thanks for all your help Air and Nadrew it works good now. Maybe youll check out my game one day when i open iot up public for a testing thansk again

-kalzimere