Angband Forums > Sil Sil: melee to-hit chance table
 Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

August 19, 2013, 12:20   #11
Nick
Vanilla maintainer

Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,759
Donated: \$60
Quote:
 Originally Posted by Scatha Of any two *consecutive* triangular numbers.
*facepalm*

That's what I meant...
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.

August 19, 2013, 12:27   #12
half
Knight

Join Date: Jan 2009
Posts: 904
Quote:
 Originally Posted by Nick That is really cool. For anyone who doesn't believe me, note that a parabola is the graph of y = x², and the sum of any two triangular numbers is a square
Indeed, if you draw out all the combinations of rolls you and your opponent could get, then form a square (either 10x10 or 20x20). I'll illustrate with a little 6x6 one to save space. The chances of hitting are illustrated with 'o' and missing with '.'. The horizontal axis is the defender's roll. The vertical is the attacker's roll. The chances of hitting literally start as increasing triangles until they clip the edges, then the chances of missing are decreasing triangles. Hopefully that will make it more intuitive for some people.

Code:
``` 123456
1......   ......   ......   ......   ......   o.....   oo....   ooo...   etc
2......   ......   ......   ......   o.....   oo....   ooo...   oooo..
3......   ......   ......   o.....   oo....   ooo...   oooo..   ooooo.
4......   ......   o.....   oo....   ooo...   oooo..   ooooo.   oooooo
5......   o.....   oo....   ooo...   oooo..   ooooo.   oooooo   oooooo
6o.....   oo....   ooo...   oooo..   ooooo.   oooooo   oooooo   oooooo```

 August 19, 2013, 13:04 #13 taptap Knight   Join Date: Jan 2013 Posts: 710 Yes, I do like the system. I am very happy that you didn't spoil it by introducing automatic hits on a rolled 20 (as a lot of table top RPGs do) - so you allow different styles to prosper although every style hits limits by different kind of opponents. But looking at the tables you realize how amazing a -1, 2d5 mithril corslet of resilience really is
 August 19, 2013, 14:24 #14 kryft Rookie   Join Date: Aug 2013 Posts: 20 I've been writing a little tool for myself that basically takes a char dump and the name of a monster (the tool reads monster.txt) and spits out two probability distributions, one for the melee damage dealt by the player to the monster in a single turn and another for the melee damage dealt by the monster to the player. The tool is written in Haskell using the probabilistic functional programming library, which means that if you use it interactively from within the interpreter, you can easily compute probabilities for arbitrary events. For example, meVsWarg <- fight "kryft.txt" "Warg" (> 10) ?? (defend meVsWarg) mean (attack meVsWarg) would pit the character in "kryft.txt" against a warg and then calculate the probability that the warg would deal more than 10 points of damage with a single attack (taking into account both the possibility of missing and the possibility of getting extra dice from criticals). I wrote this for myself for fun, but looking at this thread it occurred to me that perhaps others might be interested too. I'm happy to share the code if anyone else wants to play with it. It's not quite finished yet (but should be soon), and it's a bit simplistic; for example, the distributions are for a single attack, so it doesn't need to consider player or monster speed. I'm going to take brands and resistances/vulnerabilities into account automatically, as well as certain player abilities that are always active, but I will most likely ignore abilities that give situational bonuses, such as Dodging or Concentration. You shouldn't need to know any Haskell to use it (at least if I write a readme), and installing the Haskell platform is easy on windows, mac and linux. I suppose I could also make a command line executable that takes a char dump and a monster name and outputs the distributions (and some statistics and maybe the CDFs) as text; this could even be distributed as a binary for people who don't want to install anything. Last edited by kryft; August 19, 2013 at 14:32.
 August 20, 2013, 14:36 #15 debo Veteran     Join Date: Oct 2011 Location: Toronto, Canada Posts: 2,386 I would like to see this code! __________________ Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'
August 20, 2013, 22:28   #16
taptap
Knight

Join Date: Jan 2013
Posts: 710
Quote:
 Originally Posted by debo I would like to see this code!
How you have a kryft signature when this was the first post of kryft here? You are talking about Sil somewhere else?

August 21, 2013, 10:31   #17
half
Knight

Join Date: Jan 2009
Posts: 904
Quote:
 Originally Posted by taptap How you have a kryft signature when this was the first post of kryft here? You are talking about Sil somewhere else?
Sprung!

Actually kryft has an amazing comment history now. A good joke and a useful Sil-related program (in my favourite language!), all with just one post!

August 21, 2013, 17:39   #18
debo
Veteran

Join Date: Oct 2011
Posts: 2,386
Quote:
 Originally Posted by taptap You are talking about Sil somewhere else?
##sil, although "talking about sil" is sort of a stretch description of what goes on there

EDIT: also i am disappointed that you didn't credit me in your sig, no one has any academic integrity these days
__________________
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'

August 21, 2013, 21:25   #19
taptap
Knight

Join Date: Jan 2013
Posts: 710
Quote:
 Originally Posted by debo ##sil, although "talking about sil" is sort of a stretch description of what goes on there EDIT: also i am disappointed that you didn't credit me in your sig, no one has any academic integrity these days
I thought everyone knows that this quote is original debo. I admittedly still don't really understand what ##sil is supposed to be.

August 21, 2013, 21:57   #20
HallucinationMushroom
Knight

Join Date: Apr 2007
Location: Indiana, U.S.A.
Age: 42
Posts: 780
Quote:
 Originally Posted by debo ##sil, although "talking about sil" is sort of a stretch description of what goes on there EDIT: also i am disappointed that you didn't credit me in your sig, no one has any academic integrity these days
Ha! Well, in that case, I want proper AP citation style for some of your ladder characters.

Mushroom, H. (2012). The artistry start: Simplification through smithing. The Roguelike Gazetteer, 3(1), 17-21.

 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 BlueFish Sil 9 May 3, 2013 08:03 Pete Mack v4 18 April 30, 2013 22:59 tony Vanilla 1 June 22, 2011 08:30 Swede2378 Vanilla 22 June 16, 2010 20:03 ivanj Vanilla 9 November 3, 2007 11:29

All times are GMT +1. The time now is 16:28.