Junior Member
Join Date: Mar 2012
Posts: 18
|
Critical Focus (Ex) : When using a weapon for which he has the Weapon Focus feat, a Hida defender increases the critical multiplier of the weapon by 1. If he has Weapon Focus with more than one weapon, he must choose a single weapon for his critical focus.Thus, the critical multiplier for a weapon with an x2 modifier would increase to x3, while a weapon with an x3 increases to x4, and weapons with an x4 getting no increase. The threat range for the weapon does not change, though the defender can still choose the Improved Critical feat with the same weapon if he meets the prerequisites.
How would I get this to work in HL as it is worded currently? |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
This is when you get to play with some of the fun features, like tagvalue and assignstr.
Here's some code that should work for you. I've done only minimal testing, so be sure to play with it a bit. Just make sure you run it after Pre-Levels/5000. That's when the Broadcast.WepFocus tag gets assigned to the weapon. Code:
foreach pick in hero from BaseWep where "Broadcast.WepFocus" var crit as number var mult as string crit = eachpick.tagvalue[wCritMult.?] crit = minimum(crit+1,4) mult = "wCritMult." & crit perform eachpick.delete[wCritMult.?] perform eachpick.assignstr[mult] nexteach Last edited by Sendric; June 26th, 2015 at 06:06 AM. |
#2 |
|
|