Page 1 of 1

Can't overwrite stats for NPCs with a base

Posted: Thu Mar 31, 2011 6:16 pm
by Zonk
If you have a base NPC with set stats - as in, stats = {...} - and it is inherited to create a more detailed NPC type(say gigantic sandworm tunnelers, using BASE_NPC_SANDWORM as a base), then the latter can't have its own stats.

The stats = {...} string in the non-base entry seems to be neither overwritten nor added, but simply ignored.

Re: Can't overwrite stats for NPCs with a base

Posted: Thu Mar 31, 2011 10:09 pm
by Grey
I had the same problem myself. Had to give every monster with variant stats its own base type, otherwise the stats would go to the basetype stats. If the basetype stats weren't defined then it would go to the default actor stats.

Re: Can't overwrite stats for NPCs with a base

Posted: Tue Sep 20, 2011 10:50 pm
by Zonk
While testing out some new monsters, noticed this still happens.
Like Grey says, there IS a way to work through it, but it's a bit awkard so if it could be fixed...

Re: Can't overwrite stats for NPCs with a base

Posted: Sun Apr 29, 2012 4:55 pm
by edge2054
Bumping :)

There's a better work around though if Darkgod can't get this fixed.

Just don't use stats and define everything in a combat table like...

Code: Select all

combat = { strength = 10 }
It's a bit more work, you'll have to build your own functions for calling stats and what not but it would probably work for most simple modules.

Re: Can't overwrite stats for NPCs with a base

Posted: Tue May 01, 2012 10:15 pm
by darkgod
fixed