ID:178561
 
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!!!!!!!!!!!!!!!!!!!!!!!!!!!
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.