Ah, yes. I know there have been many discussions over the years about troublesome smites.
How about the toolbar. Can several (let's say 3) scripts (including the game's smite script) be run in sequence from a single press of a toolbar button? Or maybe something similar to a Rod of Preparation?
click on a toolbar button, which runs:
First script runs to identify the oTarget and to return the oTarget's hit points
Second script is simply the command to run the default run smite command (which correctly utilizes the Charisma modifier and all other modifiers for the attack roll, and calculates weapon, environmental, etc... damage
Third script runs to return if the the oTarget was damaged (thus hit) and calculates the damage caused by the smiter's level, and deals the extra damage to the oTarget.
I think it would be acceptable if the PC was going to smite during a flury. The first attack would be the smite, the game figures out the other flurry strikes, then you deal the smiter's level damage, if the smite was determined to be a hit (obviously not using the oTarget's hit points for determination).
Actually, I should research smite a little more. I can't remember if after the smite is used, if the rest of the PCs attacks for the round are run immediately. I know the smite symbol appears in the current action of the action queue, followed by the attack symbol directly behind it.
Just throwing it out there as I try to wrap my head around NWScript, gui, etc...
Modifié par Axe_Edge, 01 septembre 2011 - 02:52 .