Author Topic: Guarding attacks after movement  (Read 93 times)

Offline StultusTemporis

  • Newbie
  • *
  • Posts: 36
Guarding attacks after movement
« on: September 03, 2017, 08:10:58 PM »
It is my understanding that if a combatant takes the "guard" action, and another combatant triggers the action, then the attack occurs after the target has finished moving.  Normally, the order that this happens in wouldn't matter.  However, there are a few instances where it does.  Consider, for example, the Giant Weasel.

The weasel applies the "IsHugged" SA to the target, which reduces the target's movement to 0.  If the weasel attacks as it normally does, this results in the target being hugged directly next to the weasel, which is how it's supposed to work.  If, however, the attack occurs due to the target moving while the weasel is guarding, then the attacker finishes the movement before having its movement reduced to 0 -- ending up being hugged with a square of space between it an the weasel.  The hapless character can only spin in place while the weasel sucks it safely dry from one square away. 

Would it be possible to resolve the guarding attack after the target is commanded to move, but before the computer moves the character?  That way, the character would still provoke the attack, but would not be put in a position where they could not reach the weasel that's hugging them.

Mini mod attached.

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2220
Re: Guarding attacks after movement
« Reply #1 on: September 03, 2017, 09:58:36 PM »
We will most assuredly wait for Manikus to
provide his expertise.  Hopefully the day after
tomorrow. 

Perhaps "IsHugged" should not be successful
during a 'free attack'.  Perhaps it should wear off
quickly.  We will wait for instruction.

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9763
Re: Guarding attacks after movement
« Reply #2 on: September 07, 2017, 01:48:29 PM »
Thanks for the mini-mod. I've downloaded and this bug is in the queue.

Offline Nol Drek

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2157
    • Nol Drek's Web Site
Re: Guarding attacks after movement
« Reply #3 on: September 07, 2017, 06:24:53 PM »
I agree with Stultus Temporus that the guarding attack should take place BEFORE the combatant moves one square away, not after.
"Into the Drachensgrab Mountains!"

http://www.noldrek.com

Offline steve_mcdee

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 1945
Re: Guarding attacks after movement
« Reply #4 on: September 07, 2017, 07:04:29 PM »
I'm a bit confused. Are we talking about a "guarding" attack - which should occur when a combatant moves into a square adjacent to an enemy who is set to "Guarding" status - or are we talking about an attack of opportunity, which should occur whenever a combatant goes to move from a square that is adjacent to an enemy into a square that is not adjacent to the enemy (and this should not depend on whether the enemy is set to "Guarding" status)?

In the former case, the attack should occur immediately after the enemy moves into the adjacent square. In the latter case, the attack should occur when the enemy attempts to move away but before the move actually occurs.

Offline StultusTemporis

  • Newbie
  • *
  • Posts: 36
Re: Guarding attacks after movement
« Reply #5 on: September 07, 2017, 07:18:44 PM »
My apologies.  It's the Attack of Opportunity that is taking place after the movement has already occurred.  Thank you for the clarification.

Offline Nol Drek

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2157
    • Nol Drek's Web Site
Re: Guarding attacks after movement
« Reply #6 on: September 08, 2017, 09:53:08 AM »
Sorry, I was referring to an attack of opportunity, regardless of whether or not the attacker is guarding.

In the former case (guarding attack), the attack should occur immediately after the enemy moves into the adjacent square. In the latter case (attack of opportunity), the attack should occur when the enemy attempts to move away but before the move actually occurs.
"Into the Drachensgrab Mountains!"

http://www.noldrek.com