So, I'm going to be working on a little side project over the summer, and am trying to gather some reference points. (Either I'm really bad at looking, or the reference to this is burried REAL DEEP in the forums)
Here is an example of a var list I currently have
mob/Stats/var
Health = 0
MHealth = 0
Reiatsu = 0
MReiatsu = 0
Kills = 0
Deaths = 0
Now, because I realized I've only coded "Anime-Styled" with DreamMaker so far, I noticed I have no clue how to call upon those vars now.
An example of a proc
mob
proc
Death(mob/M)
if(!src)
return
if(!M)
return
if(!src.client && src.Health <= 0)/* This uses a different var list, which I named Enemy for the time being) */
M << "</b>You gained some combat experience from defeating [src]"
if(src.client && src.Health <= 0) /*this is where I need to start calling upon the Stat vars */
M.kills ++
src.deaths ++
src.Health = src.MHealth
src.Reiatsu = src.MReiatsu
world<< "</b><font color=red>[src] has been slain by [M]!"
How would I go about "Resolving" this issue. Do I make seperate "Death" procs for each type of mob? And how do I call upon the list of vars to begin with? Any other information you can directly give me or refer me to regarding optimal use of the polymorphic language would be absolutely great, and greatly appreciated!