Go Back   Angband Forums > Angband > Vanilla

Thread Tools Display Modes
Old August 26, 2018, 23:23   #1
Join Date: Nov 2010
Posts: 6
nic is on a distinguished road
Near death experience...

When you play, you will have many encounters that are potentially
lethal. For instance when you meet breathers: a bunch of dragons all doing a breath attack the same round.

* Would it not be nice to have a luck-meter. *
"Nic the great warrior had only 1.25% chance of surviving the dungeon,
be he prevailed!"

Say that you had 5% chance of dying (all dragons breathing) but survive,
then 10% chance of dying in the next encounter.
The cumulative chance of surviving would be 0.95*0.9 (around 85%)

Imagine what that number would be when finishing the game?
If you play solidly, it would be close to 1, but if you want a decent turn count, it would probably be a lot smaller!

It might even be helpful to beginners to see how risky their playing style is...

nic is offline   Reply With Quote
Old August 27, 2018, 02:38   #2
Pete Mack
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,701
Donated: $40
Pete Mack is on a distinguished road
The real risks are usually a bit different:
"what are the odds of dying if my wand of TO fails?"
"What are the odds of TS landing me in a room full of high level hounds?"
"What are the odds of getting breathed on followed by a TO failure and further mauling?"
Pete Mack is offline   Reply With Quote
Old August 27, 2018, 02:44   #3
Derakon's Avatar
Join Date: Dec 2009
Posts: 9,024
Derakon is on a distinguished road
I guess you could do a simulation at the end of each turn, where every enemy in LOS does their strongest attack while rolling perfectly (but ignoring stuff like stunning, poison, paralysis, etc). Then at the end of the game you could say "you risked death N times to get this far". You could maybe also calculate the odds of a given death actually happening, but that gets hairy when dealing with damage rolls. If Morgoth has a 1 in 20 chance to cast Mana Storm and Vecna has a one in 30 chance of same, and between them they'd need to deal at least 800 damage to kill you, what are the odds of that happening? It's calculable, but it's not the kind of code I'd want to deal with writing.
Derakon is offline   Reply With Quote
Old August 27, 2018, 09:47   #4
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 1,015
fph is on a distinguished road
I have implemented exactly this for Sil 1.1.1 a while ago:, .

This only keep tracks of a few of the possible factors; most notably, surviving (potential) blows that could have killed you.

I didn't use Montecarlo (which I suppose would be inaccurate because the probabilities of dying are quite small; maybe one would need something more elaborate like MCMC instead?), but I keep track of the individual probabilities of each hit and damage roll. Most of the relevant code is in .

I didn't really update this because people did not seem too interested in it.
Dive fast, die young, leave a high-CHA corpse.
You read a scroll labeled 'lol gtfo' of Teleport Level.
fph is offline   Reply With Quote
Old August 27, 2018, 13:45   #5
Ingwe Ingweron
Join Date: Jan 2009
Location: Manhattan Beach, CA
Posts: 2,117
Ingwe Ingweron is on a distinguished road
Originally Posted by nic View Post
When you play, you will have many encounters that are potentially lethal....
See this post for the only odds that matter -
“We're more of the love, blood, and rhetoric school. Well, we can do you blood and love without the rhetoric, and we can do you blood and rhetoric without the love, and we can do you all three concurrent or consecutive. But we can't give you love and rhetoric without the blood. Blood is compulsory. They're all blood, you see.”
― Tom Stoppard, Rosencrantz and Guildenstern are Dead
Ingwe Ingweron is offline   Reply With Quote

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

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 Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
!Experience StMicah Vanilla 7 May 11, 2020 22:41
Near Death Experience Grotug Vanilla 5 October 24, 2016 19:57
Near Death Experience Grotug Vanilla 3 November 29, 2013 21:35
no selling experience Timo Pietilš Vanilla 28 March 29, 2011 11:42
Not so stupid death, but death nonetheless bron AAR 10 April 15, 2010 00:23

All times are GMT +1. The time now is 03:38.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.