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
ID:154953
Oct 29 2011, 7:16 am
|
|
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 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 The basic idea is no different from when you modify any variable. |
As for training, whenever you train, simply have a probability of your strength increasing. At the simplest stage, a rand() proc would work.