mob
var/Health
Login()
if(fexists("User"))
player
var Health = 10
Problem description:
It may not seem like much, but what it's giving me is hassle because it won't overwrite it, anyone know what the issue is?
ID:140116
![]() May 3 2010, 1:07 pm
|
|
Code:
mob Problem description: It may not seem like much, but what it's giving me is hassle because it won't overwrite it, anyone know what the issue is? |
![]() May 3 2010, 1:12 pm
|
|
You need to define the variable once. It is inherited to all the children of that parent. Y'know, typical objective-oriented programming.
|
Code:
mob loading Zombie Survival.dme main.dm:37:error: X: undefined var main.dm:37:error: =: expected a constant expression main.dm:39:error: Y: undefined var Zombie Survival.dme:16:error: Z: undefined var main.dm:40:error: =: expected a constant expression Zombie Survival.dmb - 5 errors, 0 warnings (double-click on an error to jump to it) Those were the exact errors I got usng your precise code. You were saying? |
This forum isn't for copy/pasting code, he gave you a general example, you weren't meant to use that exact snippet.
|
CodeWeasel22 wrote:
Code: > mob loading Zombie Survival.dme X, Y, and Z were examples. They might be 1, 2, and 3. Or 100, 50, 20. Or maybe "cake", "pie", and "cheese". Although having a string to represent hitpoints would be kind of odd and unfunctional. |