Angband Forums [3.5.1] Random dice in item properties
 Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 May 2, 2015, 17:59 #1 Cold_Heart Adept     Join Date: Mar 2012 Posts: 141 [3.5.1] Random dice in item properties 3.5.1 object.txt, lines 23-30 (emphasis mine): Code: ```# Some fields accept randomized numbers of the form "10+2d3M4" where # 10 is the non-variable base, 2d3 is a standard die roll, and # M4 uses the m_bonus function to generate a number between 0 and # 4 according to a normal distribution. All three components are # optional, and the number of dice is optional and assumed to be 1 # when not specified. 10+2d3M4 has the range 12-20. 10+M4 has the # range 10-14. 10+2d3 has the range 12-16. 10+d3 has the range 11-13. # 2d3, d3, M4, 2d3M4, and d3M4 are all acceptable as well.``` And in the same file, lines 1213-1218 contain the following (emphasis mine): Code: ```N:194:Speed G:=:d I:45:5 W:75:0:2:100000 A:40:75 to 100 L:4+M6:SPEED``` But at the same time, my current run http://angband.oook.cz/ladder-show.php?id=17670 has: Code: ```d) a Ring of Speed <+15> {!*!*!*} Found lying on the floor in a vault at 3000 feet (level 60). +15 speed.``` So my question is, how is +15 generated from 4+M6?
May 3, 2015, 00:21   #2
Derakon
Prophet

Join Date: Dec 2009
Posts: 8,941
Quote:
 Originally Posted by Cold_Heart So my question is, how is +15 generated from 4+M6?
Rings of speed specifically have a superboost that can send their pvals to theoretically unlimited values. They do the 4+m6 bonus, then flip a coin; if it's heads, they add 1 to the pval and flip again, etc., and stop when they get to tails. So your +15 ring had to pass, at bare minimum, 5 of those checks (1 in 32 odds).

I don't know how the code knows to apply a superboost to the item. It certainly doesn't apply to boots of speed, which are capped at a maximum of +10.

May 3, 2015, 00:56   #3
Nick
Vanilla maintainer

Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,860
Donated: \$60
Quote:
 Originally Posted by Derakon I don't know how the code knows to apply a superboost to the item.
It's a special case - it checks the ring name, and if it's "Speed" does the superboost thing.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.

 Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Angband     AAR     Vanilla     Development     ToME     Sil     Variants     Competition The real world     Idle chatter     Oook! Obsolete     v4

 Similar Threads Thread Thread Starter Forum Replies Last Post CunningGabe v4 5 March 24, 2012 17:23 Antoine Idle chatter 8 November 30, 2011 21:04 Hobbels Development 2 April 9, 2011 18:24 vorondil Vanilla 8 December 20, 2008 20:23 ekolis Variants 2 December 31, 2007 03:51

All times are GMT +1. The time now is 17:56.