tapahob / BG2RadarOverlay

An overlay program for Baldurs Gate EE (1, 2) showing nearest enemies, their resistances, buffs and its durations
MIT License
25 stars 3 forks source link

On-hit effects #14

Closed gatperdut closed 2 years ago

gatperdut commented 2 years ago

Would it be too far of a shot to display equipped gear?

tapahob commented 2 years ago

I feel its a little too far. We already know the proficiencies and THAC0, like the only thing thats interesting is if it vorpals or not but we kinda know it anyways. I'd rather add a current spell cast control

gatperdut commented 2 years ago

There are a few other things to worry about besides Vorpal. Take a look at this video from Mivsan's run for example, where at ~16:05 he describes Berena's weapon and its several effects.

I guess on-hit effects would be a better name for what I was aiming for here, since many non-humanoid enemies too have such powers, such as Illithids intelligence drain attack, or a Lich's paralyzing touch, which are provided through items.

tapahob commented 2 years ago

God I love Mivsan vids!

Well I think about it this way, I don't wanna do it like an inventory screen but I already have equipped effects parsed (but not displayed anywhere) so there is a good chance the on hit effects are there. Any idea where can I check these?

gatperdut commented 2 years ago

The videos are seriously cool. Encyclopedic knowledge.

Rummaging through EEEx I found GameEffects where I can see structures to represent effects like blindness, dispel, and many others.

However I'm not sure if the equipped effects you mentioned are valid here, since these rather take place when a creature is hit with a weapon or item. Possibly the effects would be listed in some structure inside the weapon/item itself, rather than the character? I think Bubb might have a good idea if that's indeed the case.

tapahob commented 2 years ago

The equipped item effects are reflected in equippedEffectList so Im pretty sure it should be there

gatperdut commented 2 years ago

I have been trying my hand with the showing of on-hit effects but for the life of me I can't figure it out lol. Think you might have a look sometime, or should we close the issue?

tapahob commented 2 years ago

I was already mentioning it in discord - the on-hit effects are stored in a special entity called "Item Ability" inside the item itself (ITM file). This Ability thing contains lots of effects and they are not guaranteed to match the spell effects.

image

The only difficulty is to interpret those effects into human-readable form. For me its just not worth the effort for the rare occasions it would actually be useful.

Lets keep the issue opened as a reminder for now.