Code:
mob/verb/Evolution()
mob/proc/level()
if(src.level==10)
Can anyone tell me what im doing wrong, what im trying to do is make a hollow evolution system.
ID:959569
|
|
I get tons of errors when i try to add this to my code.
Code: mob/verb/Evolution() Can anyone tell me what im doing wrong, what im trying to do is make a hollow evolution system. |
Sep 2 2012, 5:05 am
|
|
Without knowing what the errors are, it's hard to say what's wrong. Could you tell us what errors you're receiving?
|
Coding\Main.dm:418:error: src.level: undefined var
sorry should have added this first thats the only one now i fix wat caused all the others. |
OK i have it defined like this
mob/verb/Evolution() and now it needs to be used what do i do to make it used [Edit] i need a proc right [End Edit] |
In response to Copycat111
|
|
You have the variable defined inside a verb, it can only be used inside that verb. You have to define it outside of a verb or proc to use it for anything more. And you would want to define it as a mob variable so only mobs hold levels. Once you do that, you can increase the level variable, which is just a num, and read the variable whenever you so choose.
|