mob
var
PlayerStats/stats = new
PlayerStats
Health
var
xp = 0
max_xp = 100
value = 100
max_value = 100
bonus = 0
mob
proc
test()
src.stats/Health.value = 0
var/t = src.stats/Health.value
src << t //Just to get rid of warning saying t is not used...src.stats/Health.value
The first line under test() works. The second line,
var/t...
does not work.Error:
...Health.value: undefined var
Just a little hint, if you changed the first line from src.stats/Health.value = 0 to src.stats/Health.values = 0 it will tell you that Health.values is an undefined var. Meaning that it is setting values to the variable, but it can't retrieve from it.
Do you think this is a bug?
If you want to access it in the method of 'src.stats.Health' you'll need to do something along the lines of