Garrulous Glaahk spyderbytes Posted April 6, 2004 Share Posted April 6, 2004 OK... I decided my spiders still weren't quite challenging enough, so I decided to have them spit poison every couple of turns to soften up the melee types standing adjacent to them and hacking at them. damage_near_loc seemed the perfect candidate for that, and works perfectly EXCEPT... a shopkeeper on the other side of a stone wall from the spiders also gets poisoned. It's a simple enough matter to move the shopkeeper far enough away from the wall to not get poisoned. I just expected intervening impassible terrain to block the damage, so I'm wondering if the current behavior is intended or a bug. -spyderbytes Link to comment Share on other sites More sharing options...
Well-Actually War Trall Custer Posted April 6, 2004 Share Posted April 6, 2004 Unfortunately, this goes back to the Exiles -- had Jeff felt like adding area-of-effect spells to the Av series ( ), this sort of thing would have been avoided, among other things. For you and all who come after you, no, nothing stops you from taking damage on terrain. Not even intervening impassible terrain -- even if you found yourself IN one of the walls, you'd take damage. Link to comment Share on other sites More sharing options...
Garrulous Glaahk spyderbytes Posted April 6, 2004 Author Share Posted April 6, 2004 You wouldn't need AoE spells to have what (to me) would be correct behavior for this call. Seems to me it would just be a check with the pathfinding algorithm to see if the path from the damager's current loc to the loc in question is range squares or less. Sure, my spider COULD go out the door, around the building and into the shop in question, but not in 'range' moves. So it shouldn't do damage there. Of course, not knowing the particulars of the implementation, such a call to the pathfinding algorithm might be prohibitively expensive. In that case, current behavior would be correct (not to say optimal ). -spyderbytes Link to comment Share on other sites More sharing options...
Seasoned Roamer ThirdParty Posted April 6, 2004 Share Posted April 6, 2004 Actually, it might be possible to code it to behave properly, using the calls that we have. Isn't there a call for checking whether something is within line-of-sight and x range from something else? Link to comment Share on other sites More sharing options...
Burgeoning Battle Gamma Walker White Posted April 6, 2004 Share Posted April 6, 2004 Quote: Originally written by spyderbytes:You wouldn't need AoE spells to have what (to me) would be correct behavior for this call. Seems to me it would just be a check with the pathfinding algorithm to see if the path from the damager's current loc to the loc in question is range squares or less. The simplest solution is probably just to use the can_see calls for area effect attacks. If you cannot see the square, then some terrain is blocking it. This differs from the pathfinding as it would allow stuff to go through windows (which is probably a desirable effect). Link to comment Share on other sites More sharing options...
Easygoing Eyebeast Imban Posted April 6, 2004 Share Posted April 6, 2004 Code: .\|/. ..*.. ==|== ..... ..... ..C.. Basically, don't try to make area-of-effect projectile attacks like this. It's fine if the center of the area is the caster, though. Link to comment Share on other sites More sharing options...
Recommended Posts