mob
var
list/mob_values = new
verb
TestA()
set name = "SetValues"
usr.mob_values.Add("HP",50)
usr.mob_values.Add("Off",10)
usr.mob_values.Add("Dex",5)
usr << output ("Values have been set.","debug")
TestB()//Idk what to do here
set name = "ReadHP"
usr << output ("HP: [idk].","debug")
I would just like to output the HP.
Essentially, your list will look like
To make an associative list, you need to make use of [].