Whirlwind offensive action/feat isnt working
When i took the feat Whirlwind and used it for the first time on a test character i found it quite good so I took it for my main solo and when i tired to use it my PC just skips his turn, tried it with a spiked chain, dagger and a longsword.
A save file would be helpful for this one ([email protected]).
A save file would be helpful for this one ([email protected]).
I sent the e-mail can i get a conformation or do i need to send it again?
Thanks for the save. The game thinks the gnolls are your allies, because you're a member of the Earth Temple, so it doesn't add them as targets. @doug1234 the immediate culprit is GetEnemyListInRange, which is only used there for now, but I guess it needs to be reworked. Gotta be careful though, that kind of thing tends to have unintended consequences further down the line...
Took a quick look at the logic today @DudeMcDude. Looks like GetEnemyListInRange() is indeed only used there but it seems like similar logic is used elsewhere (InterruptNonCounterspell). The trouble seems to be using NpcAllegianceShared() as a criteria for not attacking. Should there only be a not friendly check?
Took a quick look at the logic today @DudeMcDude. Looks like GetEnemyListInRange() is indeed only used there but it seems like similar logic is used elsewhere (InterruptNonCounterspell). The trouble seems to be using NpcAllegianceShared() as a criteria for not attacking. Should there only be a not friendly check?
I don't really recall the reasoning. "Friendliness" is a bit hairy in this game, where several things might be considered:
- Do you want bystander NPCs to count?
- Do you want faction mates to count? I guess, that depends if are fighting alongside you or against you
- What about charm/domination status?
I don't have easy answers unfortunately, this may require a more thorough overhaul...
Good thoughts. After looking at it a bit more, I think the code as is does a pretty good job of the things you mention. I just think it needs to override faction if you have ticked someone off and they are attacking you. It seems that only the ai knows that. Is that what I should query? I could add a $#!&ListCheck(obj1, obj2) function?
Sounds sound :)