ID:154953
 
mob
health=100
Strength=10
Defense=10
magic=0

hepl: i want to know if 1...this is the way to approach ging a mob health and stuff 2...how to create a system that as you train your attack strength would increase
First of all, you don't have your variables defined properly.
mob
var
Health = 100


As for training, whenever you train, simply have a probability of your strength increasing. At the simplest stage, a rand() proc would work.

mob
verb
Train()
var/X = rand(1,10)
if(X == 10)
src.Strength ++
In response to Lugia319
so for the mobs structure i need to use var?
In response to FreeVagabon
Whenever you define variables you need to use var.
In response to Lugia319
that makes sense...so if i wanted admins to be stronger than normal players? i would have to make a different var for the admins?
In response to FreeVagabon
I think you're confused on how variables work.

When you define variables under mob

mob
var
Health = 100


That means every mob in the game will have that variable by default. If you wanted admins to be stronger (for whatever retarded reason that may be) you would modify the admin's variable the same as you would a player. Perhaps at the login?

mob
Login()
..()
LoadCharacter()
if(src.Admin == 1)
src.Health = 500


The basic idea is no different from when you modify any variable.