Jump to content


Photo

Silencing attack feedback


  • Please log in to reply
4 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 13 April 2018 - 03:47 AM

I have a spell that simulates an attack by a shambling monster from off-screen. Actually the attack is by an invisible minion the target is made to spawn, and the monster is only the projectile of a ranged weapon this minion is equipped with. There seems to be no other way to make a ranged spell use an attack roll. So the monster comes in, but well before it reaches the target the system shows the attack's to-hit roll, if the roll information is enabled. It is the same way it would be with arrows, if they flew slower - the attack roll and whether it hits or misses would be shown before the BAM's arrival. This, of course, ruins the suspense completely, and there is no reason to wait with trepidation for the shambling one to reach the target. Does anybody know a way to either hide a particular attack's message or get this roll to be made or shown when the projectile arrives?


Edited by temnix, 13 April 2018 - 05:20 AM.


#2 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 14 April 2018 - 05:53 AM

Try AttackNoSound(O:Target*)

It is continuous action, however, much like Attack(), so you'll need a way to stop it after the first shot.


Edited by GeN1e, 14 April 2018 - 06:02 AM.

Retired from modding.


#3 temnix

temnix
  • Member
  • 983 posts

Posted 14 April 2018 - 04:20 PM

This action only dispenses with the battlecry. There is still the saving throw info.

 

I have a way to keep this to one attack. I could put on the creature either a slightly delayed Set AI Script or a Remove Creature, which is what I got on this one. He has just 1 attack per round, so that does it.

 

But actually, I managed to use this problem and make it into a feature. The "monster" advances, yes, and the player can read whether it will be a hit or miss when it reaches the character. If it will be a hit, then the player can try to run away with the character. The projectile will pursue, of course, but maybe he can get in a Spell Immunity: Illusion or drink a magic resistance potion or escape through a door to the next area. It's nail-bitingly close, though. :D



#4 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 15 April 2018 - 12:27 AM

This action only dispenses with the battlecry.

It does suppress attack rolls display completely, we used it for archers training in the background in SoD.

 

There is still the saving throw info.

Try moving the save effect inside of a child EFF/SPL (i.e. 177 or 146). It should delay the save roll until the projectile hits the target.

 

But actually, I managed to use this problem and make it into a feature.

Well, if it works out for you, then I suppose it's fine :)


Edited by GeN1e, 15 April 2018 - 12:29 AM.

Retired from modding.


#5 temnix

temnix
  • Member
  • 983 posts

Posted 15 April 2018 - 07:13 AM

Hm. Live and learn. I could probably do a combination: a silenced attack but write in the spell description that it might hit or miss, and the measures to take. Let the players decide if they want to chance it when they see that thing coming. By the way, this is the Weird spell, but I also want to make Phantasmal Killer. This one exists in both BG:EE games as some sort of "cutscene" spell, but it's not actually referred to in any script file. Do you know where it is used, if it is?


Edited by temnix, 15 April 2018 - 07:21 AM.