Hi!
I need help! I'm currently writing code for my game (Soon to be released for testing...)
Consider this piece of code...
mob/Student
... // Code Before It
var/ClevernessRating = 5 // Student Characteristics
var/GoodyGoodyRating = 5
var/BullyRating = 5
var/PopularRating = 5
var/HumourRating = 5
... // Code After It
obj/table
icon = 'table.dmi'
density = 1
verb/work()
set src in view(1)
world << "You did work!!!"
usr.ClevernessRating = usr.ClevernessRating + 1
Now, the mob Student can walk next to the table, and use the verb work() to increase their ClevernessRating...
However, when I try to compile it, there is an error about me not defining the usr.ClevernessRating...
HELP PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!
ID:178561
Apr 27 2002, 10:38 am
|
|
Apr 27 2002, 11:20 am
|
|
You have the vars defined under /mob/student you're telling the compiler to look under /mob for the var, either you should move the var definitions under /mob or use the : operator which is pure evil.
|