ID:156221
 
i've look througe the baseic tutoral but the closest i could fine to stats where the Mathematicsc page by any chance could u give me the coding for basic stat like str def vit and magic power and hp and mp so i can edit them it my own way or tell where i can fine out how ? thx in advance
Simple.

mob
var // the variables of a mob
Health = 10 // basically this is how you would do it, for each variable
MaxHealth = 10
MP = 10
MaxMP = 10
Strength = 1
Defense = 1
Vitality = 1
MagicPower = 1


http://www.byond.com/members/?command=reference&path=atom/ proc/Stat#comment_1
In response to Neimo
i had a look at the link and it did help so now i can see that states and this is what i came up with but i can't grasp it engouht to get how to increse and the state in game what i mean is if u attack an enermy ur str goes up how would i do that this is how i have layed out the stats

mob
var
Health = 100
var
Chrakra = 50
var
Str = 10
var
Def = 10
var
Con = 10
var
Nin = 10
var
CC = 10
mob
Stat()
stat("Health",Health)
stat("Chrakra",Chrakra)
stat("Str",Str)
stat("Def",Def)
stat("Con",Con)
stat("Nin",Nin)
stat("CC",CC)
statpanel("Inventory",contents)

lol also how do i put it in a coding bar?
In response to Jamesy577
Um, read the tutorials. Check the reference.

http://www.byond.com/developer/Dantom/YourFirstWorld
In response to Neimo
thx i ooked througe it but it didn't help the coding all work but when i play it was all black when i use all the coding files and i already knew every thing in it and it didn't have what i was looking for sadly
In response to Jamesy577
do u know like any tutorals on states in game like get 10 state and u will lvl up to get str up u must fight to get int up u need to read books to get magic power up u must meditate kinda of thing ?
In response to Jamesy577
I think you're speeding to far away here.

MY GUIDE TO LEARNING BYOND PROGRAMMING:

STEP 1: Read chapter 1 in the byond guide.

STEP 2: Use what you've learned/ or are trying to learn in chapter 1, play around with it untill you feel you have control or at least understand most of it.

STEP 3: Continue to the next chapter and repeat STEP 2.

Programming, as in any subject really, is something that takes time to learn, there are few shortcuts you can take if you really want to learn it. Be patient, as in most things in life, you do not go on to the next difficulty level without completing and understanding the one your currently on. If you do, you most likely will fail or at least do worse.