Pocket Plane Group

Miscellany, Inc. => Infinity Engine Modding Q&A => Topic started by: Caedwyr on April 27, 2004, 12:37:32 AM

Title: Applying an effect on a critical hit, possible?
Post by: Caedwyr on April 27, 2004, 12:37:32 AM
I'd like to be able to apply a .eff file when the player delivers a critical hit with a certain weapon.  Is there any way of detecting when a critical hit has occured, and to have an item or spell trigger when this occurs?


EDIT: Answered on another forum.
Title: Re: Applying an effect on a critical hit, possible?
Post by: Ghreyfain on April 27, 2004, 04:23:55 AM
And the answer was...?
Title: Re: Applying an effect on a critical hit, possible?
Post by: jester on April 27, 2004, 07:01:07 AM
http://forums.spellholdstudios.net/index.php?showtopic=7825

Some hints are there, but what I got from browsing the posts the answer is pretty close to 'not really'.
Title: Re: Applying an effect on a critical hit, possible?
Post by: Caedwyr on April 27, 2004, 12:03:24 PM
Ah, sorry.  Nope apparently there is no way to detect when a critical hit occurs.  The best work around, is to have an effect trigger with approximately the same percentage of hits. 

So, if a creature will critical hit on a roll of 20, then have the effect trigger for 5% of the hits.  If it criticals on a 19 and 20, then 10%.  This isn't perfect, because the attack roll modifiers are not taken into account, but its the best work-around possible as far as I know.