ID:148818
 
This may sound dumb but look at this...
mob
PC
Health = 10
Max_Health = 10
Armor_Level = 0

Ok now here are my vars...
var
Health
Max_Health
Armor_Level

And here are my errors...
mobs.dm:3:error:Health:re-initialization of global var
mobs.dm:4:error:Max_Health:re-initialization of global var
mobs.dm:5:error:Armor_Level:re-initialization of global var

Can someone help me?

Thanx,
Punkrock546
Punkrock546 wrote:
This may sound dumb but look at this...
mob
PC
Health = 10
Max_Health = 10
Armor_Level = 0

Ok now here are my vars...
var
Health
Max_Health
Armor_Level

And here are my errors...
mobs.dm:3:error:Health:re-initialization of global var
mobs.dm:4:error:Max_Health:re-initialization of global var
mobs.dm:5:error:Armor_Level:re-initialization of global var

Can someone help me?

Thanx,
Punkrock546


mob
PC
Health = 10
Max_Health = 10
Armor_Level = 0

mob
var
Health
Max_Health
Armor_Level

You need to make the vars Health only for mobs, mob/var/health not a global like var/health