dkfans / keeperfx

Open source remake and Fan Expansion of Dungeon Keeper.
https://keeperfx.net/
GNU General Public License v2.0
742 stars 76 forks source link

'Headless' Keepers cannot be targeted by certain spells. #3365

Closed PlebSupporter closed 1 month ago

PlebSupporter commented 1 month ago

Aqua Disease Bug.zip Test map.

'Headless' in this context means keeper-owned creatures which have not had a computer_player set within the script.

Try to cast chicken/disease on the Green Wizard.

I tested again on an older installation (FX ver 0.5.0.3552 Alpha) and it still happened, so this bug is quite old.

PlebSupporter commented 1 month ago

The value of having a headless creature has been replaced by new script potential like additional keepers, defend_room/location, and set_player_texture. Maybe we should just have them commit sudoku like scripted computer_players that do not have a dungeon heart?

AdamPlenty commented 1 month ago

Shouldn't creatures belonging to a "headless" Keeper simply die?

PlebSupporter commented 1 month ago

Shouldn't creatures belonging to a "headless" Keeper simply die?

That is the change I am proposing, yes.

If a computer_player is assigned in script, but that player doesn't have a dungeon heart, the creatures will die shortly after the map starts. If a computer player isn't assigned and doesn't have a dungeon heart, then you get 'headless' creatures that act similar to roaming, but still have food and happiness requirements.

AdamPlenty commented 1 month ago

I thought they did so already? Or was that only before the roaming Keepers? I remember creating creatures via cheating for non-existent Keepers, and they died immediately.

Loobinex commented 1 month ago

I thought they did so already? Or was that only before the roaming Keepers? I remember creating creatures via cheating for non-existent Keepers, and they died immediately.

No, when they are pre-placed they simply slowly starve.

Loobinex commented 1 month ago

Shouldn't creatures belonging to a "headless" Keeper simply die?

That is the change I am proposing, yes.

If a computer_player is assigned in script, but that player doesn't have a dungeon heart, the creatures will die shortly after the map starts. If a computer player isn't assigned and doesn't have a dungeon heart, then you get 'headless' creatures that act similar to roaming, but still have food and happiness requirements.

There are maps out there with creatures like this. Hell, I made a map with this too. It's a creature you can get to if you are fast enough.