keeperfx icon indicating copy to clipboard operation
keeperfx copied to clipboard

Don't show 'Hand' cursor when player has no POWER_HAND

Open mefistotelis opened this issue 9 years ago • 2 comments

Originally reported on Google Code with ID 409

In r1440 it is no possible to disable picking up creatures and gold by disabling POWER_HAND:
(MAGIC_AVAILABLE(PLAYER),POWER_HAND,0,0)

However, when hovering over a creature you cannot pickup, the moving-hand cursus still
appears, indicating pickup is available.

It would be better to show the arrow cursor instead, when you cannot use pickup.



Reported by Loobinex on 2014-10-30 12:17:40

mefistotelis avatar Aug 18 '15 18:08 mefistotelis

The hand can be used to either pick or slap, and also to use specials.

What spell POWER_HAND gives is only the ability to pick up creatures, chickens and
gold. Lack of it shouldn't disable the cursor.

Reported by mefistotelis on 2014-10-31 18:24:39

mefistotelis avatar Aug 18 '15 18:08 mefistotelis

The new powerhands.toml configuration file can allow this.

Maybe we can add some defaut hand on this configuration file to solve the initial request?

[hand0]
Name = "Default"

HoldAnim  = 784
HoldSpeed = 256
HoldGoldAnim  = 781
HoldGoldSpeed = 256
HoverAnim  = 782
HoverSpeed = 256
PickupAnim  = 783
PickupSpeed = 256
SideHoverAnim  = 785
SideHoverSpeed = 256
SideSlapAnim  = 787
SideSlapSpeed = 256
SlapAnim  = 786
SlapSpeed = 256

You can for example have one hand with the slap animation but no pickup/hold/hover/side animation?

Then the mapmaker if they disable the hand they can use the script command to set a different hand.

walt253 avatar Dec 22 '23 21:12 walt253