Player Resource Consortium

Neverwinter Nights => Help => Topic started by: clansunstar on May 13, 2011, 10:16:08 PM

Title: Question about a switch?
Post by: clansunstar on May 13, 2011, 10:16:08 PM
I am going through and setting my switches i came to the switch named PRC_EPIC_FAILURE_FRACTION_GOLD . what i was wondering is how do you turn this switch off ? will setting it to -1 work?
Title: Question about a switch?
Post by: xwarren on May 14, 2011, 02:18:24 AM
Quote from: clansunstar

I am going through and setting my switches i came to the switch named PRC_EPIC_FAILURE_FRACTION_GOLD . what i was wondering is how do you turn this switch off ? will setting it to -1 work?


first you need to set PRC_EPIC_INGORE_DEFAULTS switch to 1 and set following switches (default values):
PRC_EPIC_XP_COSTS (TRUE)
PRC_EPIC_BACKLASH_DAMAGE (TRUE)
PRC_EPIC_FOCI_ADJUST_DC (TRUE)
PRC_EPIC_GOLD_MULTIPLIER (9000)
PRC_EPIC_XP_FRACTION (25)
PRC_EPIC_FAILURE_FRACTION_GOLD (2)
PRC_EPIC_BOOK_DESTRUCTION (50)

The amount of gold you spend after failed research is calculated by this formula:
gold = spell_research_DC * PRC_EPIC_GOLD_MULTIPLIER / PRC_EPIC_FAILURE_FRACTION_GOLD

so if you set PRC_EPIC_FAILURE_FRACTION_GOLD to be equal to PRC_EPIC_GOLD_MULTIPLIER, you will still have to pay spellDC (max 101) gp on failed research.

Edit: Not sure in SpendGP() works with negative values...