mob
Stat()
..()
statpanel("Levels and experince!",contents)
stat("Star_Points",src starpoints)
stat("Flower_Points",scr flowerpoints)
stat("Health",scr Health)
stat("Badge_Points",scr BP)
var/starpoints
starpoints = 0
var/health
health = 10
var/flowerpoints
flowerpoints = 5
var/BP
BP = 3
Problem description:
Verbs.dm:11:error: starpoints: missing comma ',' or right-paren ')'
Verbs.dm:11:error: starpoints: expected end of statement
Verbs.dm:11:error: ): expected }
Verbs.dm:9:error: location of top-most unmatched {
What is wrong? Plz help!
thanks!
-JF
Other than your variable definition errors (which you also want to define to the mob, and not as a global variable), you are not using "src" correctly. When you want to access src's variables, you just use the '.' operator. Therefore src.x would return the value of src's x position.