Im having real trouble defining the stats of each mob.
i do 1 and its fine but when i do the next it just says error duplicate definition.
Pls help me
ID:176985
![]() Nov 23 2002, 9:00 am
|
|
Take out the duplicate definintion. It means you did something like this:
mob var/X var/Y mob var/X var/Y You want to create sub-mob, like this: mob Stupid var/X Smart var/X var/Y Of course, everything inherits, so... mob var/X Stupid Smart var/Y |
ShadowBlade6300 wrote:
im doin this That's good, but you need those vars to exist in the first place. So you should define the vars under /mob: mob I can actually save you a little typing here so you don't have to always set hp and maxhp the same. The solution: Set hp in mob/New(): mob Lummox JR |
Stat()
stat("HP",HP)
stat("GP",GP)
if not, thats how you do it.