ID:1064399
 
(See the best response by Jemai1.)
Code:
mob
var
Level = Strength + Stamina + Spirit
Strength = 1
Stamina = 1
Spirit = 1


It never Work how i do for make Level = Var1 + Var2 + Var3?? Can Someone help me i am newbie in codes.

Best response
You need a constant value to set an initial value of a variable. Strength, Stamina and Spirit are not constants. What you could do is to set Level on the mob's New() proc.

mob
var
Level
Strength = 1
Stamina = 1
Spirit = 1
New()
Level = Strength + Stamina + Spirit
..()
Code:
Codes\Procs.dm:3:error: inconsistent indentation
Codes\Procs.dm:34:error: inconsistent indentation
Codes\Procs.dm:35:error: inconsistent indentation
Codes\Procs.dm:36:error: inconsistent indentation

Game.dmb - 4 errors, 0 warnings (double-click on an error to jump to it)


I got 4 errors i tryed witch your code but it dont work
That is because the forum uses spaces instead of tabs.
YES !! IT WORKED VERY THANKS!!
You need to read the guide instead of posting simple questions like this on the forums.