![]() |
#21 |
Veteran
Join Date: Oct 2011
Location: Toronto, Canada
Posts: 2,386
![]() |
This is possibly a dumb question, but in what situation do you actually need to provide the entire list of protection die? Can you just compute the pair of [min prot roll, max prot roll], and then take a uniform random int in that closed interval?
__________________
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.' |
![]() |
![]() |
![]() |
#22 | |
Knight
Join Date: Jan 2009
Posts: 904
![]() |
Quote:
Re the exisiting code, that could be factored by giving the functions a new argument which is a #defined constant that is either MINIMUM, MAXIMUM, or ROLL. I'm not sure how to add in the new one since I don't understand exactly what it does, but I think variable length arrays are unlikely to be the solution. If you really require a list of die rolls, then have an array of size 20, taking side numbers, where empty slots are 0s. |
|
![]() |
![]() |
![]() |
#23 | |
Veteran
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,433
![]() |
Quote:
& [1d2+1d2] with 25% at the outliers (2&4) & 50% in the middle 3 |
|
![]() |
![]() |
![]() |
#24 |
Veteran
Join Date: Oct 2011
Location: Toronto, Canada
Posts: 2,386
![]() |
Haha, I knew it was a dumb question
![]()
__________________
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.' |
![]() |
![]() |
![]() |
#25 | |
Knight
Join Date: Aug 2009
Posts: 670
![]() |
Quote:
If it is just for dice use array of bytes. |
|
![]() |
![]() |
![]() |
#26 | |
Swordsman
Join Date: May 2008
Location: Saratoga, California (in the midst of Silicon Valley)
Posts: 493
![]() |
Quote:
As far as formatting goes, I would like to see the note include both the increment and the total value, although I think it should only track the "raw" skill value; not attempt to track the "effective" value, which can change often (e.g. you get stunned, or change to a weapon with a different plus-to-hit, etc.). I would go with a simple one-fact-per-line format, and I think the skill name should be fully spelled out. So something like: Code:
1 50 ft +6 Melee (6) 1 50 ft +4 Evasion (4) 347 100 ft +1 Melee (7) 347 100 ft +1 Evasion (5) 1,234 150 ft +2 Evasion (7) |
|
![]() |
![]() |
![]() |
#27 |
Knight
Join Date: Jan 2013
Posts: 710
![]() |
I like the streams debo does, I like to watch replays of top Wesnoth players, I even occasionally watch Warband and Total War footage on youtube (of a few selected commentators, when I don't necessarily play the games). Wouldn't that be the highway: Complete surveillance in the dungeon (Morgoth is evil after all) and a replay to watch afterwards? Or would that be too large to handle?
|
![]() |
![]() |
![]() |
#28 |
Knight
Join Date: Jan 2009
Posts: 904
![]() |
I like this format. Perhaps I could add an option to include this in the notes or not? My main worry at the moment is that they are too verbose.
|
![]() |
![]() |
![]() |
#29 | |
Swordsman
Join Date: Aug 2011
Posts: 414
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hit probability calculation | Ycombinator | Vanilla | 8 | May 28, 2010 00:11 |
Crafting-focused Angband mod under development | Optimality | Variants | 49 | November 25, 2009 02:06 |
Question regarding good/great probability | ChodTheWacko | Vanilla | 4 | October 3, 2008 20:28 |
Feature request: mod for birth_no_artifacts | bron | Vanilla | 7 | May 25, 2008 10:16 |
Probability of using Rods of Teleport Other? | Dragonboneman | Vanilla | 9 | February 7, 2008 20:55 |