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.
Can't overwrite stats for NPCs with a base
Moderator: Moderator
Can't overwrite stats for NPCs with a base
ToME online profile: http://te4.org/users/zonk
Addons (most likely obsolete): Wights, Trolls, Starting prodigy, Alternate save/resistance system
Addons (most likely obsolete): Wights, Trolls, Starting prodigy, Alternate save/resistance system
Re: Can't overwrite stats for NPCs with a base
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
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...
Like Grey says, there IS a way to work through it, but it's a bit awkard so if it could be fixed...
ToME online profile: http://te4.org/users/zonk
Addons (most likely obsolete): Wights, Trolls, Starting prodigy, Alternate save/resistance system
Addons (most likely obsolete): Wights, Trolls, Starting prodigy, Alternate save/resistance system
Re: Can't overwrite stats for NPCs with a base
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...
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.

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 }
Re: Can't overwrite stats for NPCs with a base
fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
