Using symbolic constants[]
"Not using a DAMAGE_BONUS_* constant for the first parameter is likely to result in unintended behavior (because, for example, DAMAGE_BONUS_6 is not the number 6)."
That's right, DAMAGE_BONUS_6 will result in 1d4 damage, as per the screenshot below.
http://dl.dropbox.com/u/28039155/Buffer%20script%20-%20select%20the%20amount%20of%20damage.jpg
Perhaps a table, or the screenshot itself, could be added the the page?
Brainless Mike (talk) 08:11, October 2, 2014 (UTC)
- This is already addressed in DAMAGE_BONUS_*, which this article links to. WhiZard (talk) 15:53, October 2, 2014 (UTC)
- Er, your screenshot does not support your claim. In your screenshot, you labelled 1d4 damage with "6", which is not DAMAGE_BONUS_6. Rather, DAMAGE_BONUS_6 is defined to be 16, which in your screenshot is the label for 6 damage. The conclusion to draw is that DAMAGE_BONUS_6 will result in 6 damage, as suggested by the name.
I would object to including a table or your screenshot to the article, as that would encourage people to use numbers instead of the symbolic constants, and that is poor coding style. --The Krit (talk) 02:29, October 3, 2014 (UTC)
- Hmm.. that quote is basically a double negative ("Not using ... result in unintended ..."), and the general population tends to have trouble reading those correctly. It could even throw people enough that they fail to understand "DAMAGE_BONUS_6 is not the number 6". I've rewritten that part to be more positive. --The Krit (talk) 02:43, October 3, 2014 (UTC)
- Ah! Thanks for the clarification, it would seem I got DAMAGE_BONUS_* mixed up with http://www.nwnlexicon.com/index.php?title=Ip_const_damagebonus. Brainless Mike (talk) 13:12, October 11, 2014 (UTC)