Hi. I’ve been trying to connect some actions with haste effects from items. While usual spell/potion haste works perfectly with GetHasEffect, the effect from the item won’t work. There are ITEM_PROPERTY constants to play with but I couldn’t find any functions to hook it with
1 Like
Hi. Clarification requested: Are you trying to check whether the PC has an item equipped that has ITEM_PROPERTY_HASTE on it, or are you scanning through the effects on the PC to see whether any one of them is EFFECT_TYPE_HASTE?
You can post your code if you like. Then we can take a look together. Like this, to keep the formatting:
[code]
Put your code here.
[/code]
Try IPGetHasItemPropertyOnCharacter with ITEM_PROPERTY_HASTE.
If the bug reported in the Lexicon is still a problem, you can copy and correct the source code from the ##include file.
Others may know of a better function.
1 Like
Try IPGetHasItemPropertyOnCharacter with ITEM_PROPERTY_HASTE.
Perfect, worked like a charm, thank you
1 Like
Good, but see my comment about the bug, which I just added as an edit.
1 Like