1
General Discussion / Re: personal_switch.2da questions
« on: June 08, 2018, 03:19:59 AM »
0/1 are equivalent to false/true in C programming languages so you can't go wrong with using 0 for false and 1 for true, although technically any number that isn't 0 has the boolean value of true but if you have doubts about stuff, I would recommend using windows grep to search the (extracted from the haks) script files.
This is is from the ft_poweratk.nss :
From prc_inc_switch.nss :
PRC_POWER_ATTACK_DISABLED is a defined constant int value that you can apply to the PRC_POWER_ATTACK switch, so you need to set PRC_POWER_ATTACK to -1 for disabled, or 1 for full PNP or leave it for the default functionality at 0.
This is is from the ft_poweratk.nss :
Quote
<Ornedan> And a bunch of switches to control it:
<Ornedan> PRC_POWER_ATTACK - 3 values:
<Ornedan> -1 -- Disabled. Never apply the PRC PA feats to hide
<Ornedan> 0 -- Default. As it is now, you can't go higher than the equivalent BW feat you have
<Ornedan> 1 -- Full PnP. Ignores the BW IPA
<Ornedan> PRC_POWER_ATTACK_STACK_WITH_BW
<Ornedan> 0 - Default. Allow people to use both at the same time
<Ornedan> 1 - Add the BW effects in when limiting to BAB
From prc_inc_switch.nss :
Quote
* A possible value of PRC_POWER_ATTACK.
* If this is used, PRC Power Attack is completely disabled. The feats will
* not be granted to players and even if they somehow gain access to the feats,
* they will have no effect.
*
* @see PRC_POWER_ATTACK
*/
const int PRC_POWER_ATTACK_DISABLED = -1;
PRC_POWER_ATTACK_DISABLED is a defined constant int value that you can apply to the PRC_POWER_ATTACK switch, so you need to set PRC_POWER_ATTACK to -1 for disabled, or 1 for full PNP or leave it for the default functionality at 0.

