Extensions
This commit is contained in:
130
ext/phpbbstudio/dice/language/en/acp_dice.php
Normal file
130
ext/phpbbstudio/dice/language/en/acp_dice.php
Normal file
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
/**
|
||||
* phpBB Studio's Dice extension for the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) 2019 phpBB Studio <https://www.phpbbstudio.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Some characters you may want to copy&paste: ’ » “ ” …
|
||||
*/
|
||||
$lang = array_merge($lang, [
|
||||
'ACP_DICE_DICE' => [
|
||||
1 => '%d dice', // One dice
|
||||
2 => '%d dice', // Two dice (don't we love the English language)
|
||||
],
|
||||
|
||||
'ACP_DICE_ENJOY' => 'Enjoy',
|
||||
|
||||
'ACP_DICE_EXAMPLE' => 'Example',
|
||||
'ACP_DICE_EXAMPLE_1' => 'There are a total of 3 rolls in this posts, which can be limited with <em>maximum rolls per post</em>',
|
||||
'ACP_DICE_EXAMPLE_2' => 'Each roll consists of multiple <em>(types of)</em> dice',
|
||||
'ACP_DICE_EXAMPLE_3' => 'Each roll has a total dice quantity',
|
||||
'ACP_DICE_EXAMPLE_4' => 'Each dice has a dice quantity',
|
||||
'ACP_DICE_EXAMPLE_5' => 'Each dice has sides',
|
||||
|
||||
'ACP_DICE_INVALID' => 'Invalid',
|
||||
'ACP_DICE_VALID' => 'Valid',
|
||||
'ACP_DICE_VALID_ALL' => 'All installed skins are valid!',
|
||||
'ACP_DICE_VALID_NOT_ALL' => 'Not all installed skins are valid!',
|
||||
|
||||
'ACP_DICE_INSTALLED' => 'Installed',
|
||||
'ACP_DICE_INSTALLED_NOT' => 'Not installed',
|
||||
'ACP_DICE_INSTALLED_IN' => 'Installation directory',
|
||||
|
||||
'ACP_DICE_LOCATIONS' => 'Dice link locations',
|
||||
'ACP_DICE_LOCATIONS_DESC' => 'Select one or more locations where the link to the dice page should appear.',
|
||||
'ACP_DICE_LOCATIONS_EXPLAIN' => 'This is an example of a board index. In here you can select where you want the dice page link to show up. You can select as many locations as you like, from nowhere to at all places.<br>The dice page provides a dice tester, the dice limitations set by an Administrator and a dice FAQ. All is provided to fully understand all the dice possibilities.',
|
||||
'ACP_DICE_LOCATIONS_SUCCESS' => 'You have successfully altered the dice link locations.',
|
||||
|
||||
'ACP_DICE_ORPHANED' => 'Delete orphaned rolls',
|
||||
'ACP_DICE_ORPHANED_CONFIRM' => 'Are you sure you wish to delete all orphaned dice rolls?<br>This will remove all rolls that do not belong to a forum, topic or post.<br>Users that are currently creating a post with a roll, will also have their roll deleted.',
|
||||
'ACP_DICE_ORPHANED_SUCCESS' => 'You have successfully deleted all orphaned rolls.',
|
||||
|
||||
'ACP_DICE_ROLL_NR' => 'Roll %d', // Roll 1, Roll 2, etc..
|
||||
'ACP_DICE_ROLLS' => 'Dice rolls',
|
||||
'ACP_DICE_ROLLS_SHORT' => 'Rolls',
|
||||
'ACP_DICE_ROLLS_DB' => 'Rolls in the database',
|
||||
'ACP_DICE_ROLLS_NONE' => 'There are no dice rolls.',
|
||||
|
||||
'ACP_DICE_SETTINGS_EXAMPLE' => 'Click here to view the example.',
|
||||
'ACP_DICE_SETTINGS_EXPLAIN' => 'Terminology in this extension can be rather tricky, as a lot of things potentially have the same name. Therefore we have created an example to better illustrate what is what.',
|
||||
|
||||
'ACP_DICE_SIDE_ADD' => 'Add a side',
|
||||
'ACP_DICE_SIDE_ADD_CONFIRM' => 'Are you sure you wish to add this dice side?',
|
||||
'ACP_DICE_SIDE_ADD_SUCCESS' => 'You have successfully added <strong>%s</strong> as a dice side.',
|
||||
'ACP_DICE_SIDE_DELETE' => 'Delete side',
|
||||
'ACP_DICE_SIDE_DELETE_CONFIRM' => 'Are you sure you wish to delete this dice side?',
|
||||
'ACP_DICE_SIDE_DELETE_SUCCESS' => 'You have successfully deleted <strong>%s</strong> as a dice side.',
|
||||
'ACP_DICE_SIDES_AVAILABLE' => 'Available sides',
|
||||
'ACP_DICE_SIDES_EXPLAIN' => 'The allowed sides users can use in their dice notations. Skins are valid when they have images for all sides provided here. For example, sides: <small><samp>4, 5</samp></small>. Images: <small><samp>d4_1 to d4_4, d5_1 to d5_5</samp></small>',
|
||||
'ACP_DICE_SIDES_NONE' => 'There are no dice sides.',
|
||||
'ACP_DICE_SIDES_ONLY' => 'Only available sides',
|
||||
'ACP_DICE_SIDES_ONLY_DESC' => 'If this setting is enabled, users are only allowed to use the available dice sides.',
|
||||
'ACP_DICE_SIDES_ONLY_STATS' => 'Users can only use available dice sides.',
|
||||
'ACP_DICE_SIDES_ONLY_UPTO' => 'Users can use upto %d dice sides.',
|
||||
'ACP_DICE_SIDES_ONLY_UNLIMITED' => 'Users can use unlimited dice sides.',
|
||||
|
||||
'ACP_DICE_SKIN_INSTALL' => 'Install skin',
|
||||
'ACP_DICE_SKIN_INSTALL_CONFIRM' => 'Are you sure you wish to install this dice skin?',
|
||||
'ACP_DICE_SKIN_INSTALL_SUCCESS' => 'You have successfully installed <strong>%s</strong> as a dice skin.',
|
||||
'ACP_DICE_SKIN_UNINSTALL' => 'Uninstall skin',
|
||||
'ACP_DICE_SKIN_UNINSTALL_CONFIRM' => 'Are you sure you wish to uninstall this dice skin?',
|
||||
'ACP_DICE_SKIN_UNINSTALL_SUCCESS' => 'You have successfully uninstalled <strong>%s</strong> as a dice skin.',
|
||||
'ACP_DICE_SKINS_AVAILABLE' => 'Available skins',
|
||||
'ACP_DICE_SKINS_INSTALLED' => 'Installed skins',
|
||||
'ACP_DICE_SKINS_EXPLAIN' => 'Skins are automatically found when uploaded to the designated directory. Images should be correctly named. For example, for a 4-sided dice: <small><samp>d4_1.gif, d4_2.gif, d4_3.gif, d4_4.gif</samp></small>',
|
||||
'ACP_DICE_SKINS_NONE' => 'There are no dice skins.',
|
||||
|
||||
'ACP_DICE_SUMMARY' => 'Summary',
|
||||
|
||||
'ACP_DICE_TOP_TOPICS' => 'Top topics',
|
||||
'ACP_DICE_TOP_TOPICS_DESC' => 'List of topics with the most rolls.',
|
||||
'ACP_DICE_TOP_USERS' => 'Top users',
|
||||
'ACP_DICE_TOP_USERS_DESC' => 'List of users with the most rolls.',
|
||||
|
||||
'ACP_DICE_SKINS_DIR' => 'Skin image directory',
|
||||
'ACP_DICE_SKINS_DIR_DESC' => 'This path will be used to search skins. Changing this will reset the installed skins.<br><small>Path under your phpBB root directory, e.g. <samp>images/skins</samp>.</small>',
|
||||
'ACP_DICE_SKINS_PATH_ERROR' => 'The skins directory you entered is invalid.<br>The value contains the following unsupported characters:<br />%s',
|
||||
'ACP_DICE_SKINS_IMG_HEIGHT' => 'Skin image height',
|
||||
'ACP_DICE_SKINS_IMG_HEIGHT_DESC' => 'Image height for the dice skin images. Has to be between 16 and 80 pixels.',
|
||||
'ACP_DICE_SKINS_IMG_HEIGHT_ERROR' => 'The image height you entered is invalid. The value has to be between 16 and 80 pixels.',
|
||||
'ACP_DICE_SKINS_IMG_WIDTH' => 'Skin image width',
|
||||
'ACP_DICE_SKINS_IMG_WIDTH_DESC' => 'Image width for the dice skin images. Has to be between 16 and 80 pixels.',
|
||||
'ACP_DICE_SKINS_IMG_WIDTH_ERROR' => 'The image width you entered is invalid. The value has to be between 16 and 80 pixels.',
|
||||
|
||||
'ACP_DICE_ZERO_UNLIMITED' => 'Set value to <strong>0</strong> for an unlimited amount.',
|
||||
|
||||
// Settings
|
||||
'ACP_DICE_MAX_ROLLS' => 'Maximum rolls per post',
|
||||
'ACP_DICE_MAX_ROLLS_DESC' => 'The maximum number of rolls that can be added per post.',
|
||||
'ACP_DICE_PER_NOTATION' => 'Maximum dice per roll',
|
||||
'ACP_DICE_PER_NOTATION_DESC' => 'The following roll has 2 dice: 5d6 <strong class="error">+</strong> 2d4',
|
||||
'ACP_DICE_QTY_PER_DICE' => 'Maximum dice quantity per roll',
|
||||
'ACP_DICE_QTY_PER_DICE_DESC' => 'The following roll has a total dice quantity of 7: <strong class="error">5</strong>d6 + <strong class="error">2</strong>d4',
|
||||
'ACP_DICE_QTY_DICE_PER_NOTATION' => 'Maximum dice quantity per dice',
|
||||
'ACP_DICE_QTY_DICE_PER_NOTATION_DESC' => 'The following roll has 2 dice, both with a dice quantity of 3: <strong class="error">3</strong>d6 + <strong class="error">3</strong>d4',
|
||||
'ACP_DICE_SIDES_PER_DICE' => 'Maximum sides per dice',
|
||||
'ACP_DICE_SIDES_PER_DICE_DESC' => 'The following roll has 1 dice with 10 sides: 4d<strong class="error">10</strong>',
|
||||
'ACP_DICE_PC_DICE_PER_NOTATION' => 'Maximum percentage dice per roll',
|
||||
'ACP_DICE_PC_DICE_PER_NOTATION_DESC' => 'The following roll has 2 percentage dice: 6d100 <strong class="error">+</strong> 3d%',
|
||||
'ACP_DICE_FUDGE_DICE_PER_NOTATION' => 'Maximum fudge dice per roll',
|
||||
'ACP_DICE_FUDGE_DICE_PER_NOTATION_DESC' => 'The following roll has 1 fudge dice: 2d<strong class="error">F.2</strong> + 4d8',
|
||||
'ACP_DICE_EXPLODING_DICE_PER_NOTATION' => 'Maximum exploding dice per roll',
|
||||
'ACP_DICE_EXPLODING_DICE_PER_NOTATION_DESC' => 'The following roll has 1 exploding dice: 2d6<strong class="error">!</strong> + 4d8',
|
||||
'ACP_DICE_PENETRATION_DICE_PER_NOTATION' => 'Maximum penetrating dice per roll',
|
||||
'ACP_DICE_PENETRATION_DICE_PER_NOTATION_DESC' => 'The following roll has 1 penetrating dice: 2d6<strong class="error">!p</strong> + 2d%',
|
||||
'ACP_DICE_COMPOUND_DICE_PER_NOTATION' => 'Maximum compounding dice per roll',
|
||||
'ACP_DICE_COMPOUND_DICE_PER_NOTATION_DESC' => 'The following roll has 1 compounding dice: 2d6<strong class="error">!!</strong> + 5d4',
|
||||
]);
|
||||
210
ext/phpbbstudio/dice/language/en/dice_common.php
Normal file
210
ext/phpbbstudio/dice/language/en/dice_common.php
Normal file
@@ -0,0 +1,210 @@
|
||||
<?php
|
||||
/**
|
||||
* phpBB Studio's Dice extension for the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) 2019 phpBB Studio <https://www.phpbbstudio.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Some characters you may want to copy&paste: ’ » “ ” …
|
||||
*/
|
||||
$lang = array_merge($lang, [
|
||||
'DICE_DICE' => 'Dice',
|
||||
|
||||
'DICE_NOT_AJAX' => 'Dice rolls are managed with AJAX request. The current request is not AJAX and the server returned an invalid reply.',
|
||||
|
||||
'DICE_SKIN' => 'Dice skin',
|
||||
|
||||
'DICE_ROLL' => 'Dice roll',
|
||||
'DICE_ROLL_ACTIONS' => 'Actions',
|
||||
'DICE_ROLL_ADD_UNAUTH' => 'You are not authorised to add a roll.',
|
||||
'DICE_ROLL_ADD_SUCCESS' => 'You have successfully added a roll.',
|
||||
'DICE_ROLL_EDIT' => 'Edit roll',
|
||||
'DICE_ROLL_EDIT_UNAUTH' => 'You are not authorised to edit this roll.',
|
||||
'DICE_ROLL_EDIT_CONFIRM' => 'Editing a roll will completely re-roll it. This action can not be undone!',
|
||||
'DICE_ROLL_EDIT_SUCCESS' => 'You have successfully edited this roll.',
|
||||
'DICE_ROLL_DELETE' => 'Delete roll',
|
||||
'DICE_ROLL_DELETE_UNAUTH' => 'You are not authorised to delete this roll.',
|
||||
'DICE_ROLL_DELETE_CONFIRM' => 'Are you sure you wish to delete this roll?',
|
||||
'DICE_ROLL_DELETE_SUCCESS' => 'You have successfully deleted this roll.',
|
||||
'DICE_ROLL_DICE' => 'Roll the dice',
|
||||
'DICE_ROLL_FORUM_DISABLED' => 'Dice rolls have been disabled for this forum',
|
||||
'DICE_ROLL_ID' => 'Roll id',
|
||||
'DICE_ROLL_LIMIT_REACHED' => 'Dice limit reached',
|
||||
'DICE_ROLL_NO_ROLL' => 'No dice were rolled.',
|
||||
|
||||
'DICE_ROLL_NOT_EXIST' => [
|
||||
1 => 'The provided roll does not exist.',
|
||||
2 => 'The provided rolls do no exist.',
|
||||
],
|
||||
'DICE_ROLL_NOTATION' => 'Roll notation',
|
||||
'DICE_ROLL_NOTATION_CURRENT' => 'Current roll notation',
|
||||
'DICE_ROLL_NOTATION_NEW' => 'New roll notation',
|
||||
'DICE_ROLL_TIME' => 'Roll time',
|
||||
'DICE_ROLLS' => 'Dice rolls',
|
||||
'DICE_ROLLS_EXPLAIN' => 'If you wish to add one or more rolls enter a roll notation and roll the dice. You may place it inline in the message box or edit/delete it at your will later on.',
|
||||
'DICE_ROLLS_TOO_MANY' => 'You have already rolled too many dice for this post.',
|
||||
'DICE_TEXT' => 'Text',
|
||||
|
||||
// Dice states
|
||||
'DICE_ROLL_COMPOUNDED' => 'Compounded',
|
||||
'DICE_ROLL_EXPLODED' => 'Exploded',
|
||||
'DICE_ROLL_HIGHEST' => 'Highest',
|
||||
'DICE_ROLL_LOWEST' => 'Lowest',
|
||||
'DICE_ROLL_PENETRATED' => 'Penetrated',
|
||||
'DICE_ROLL_SUCCESS' => 'Success',
|
||||
|
||||
// Page -TRANSLATORS pay attention here, have fun! :-D
|
||||
'DICE_ROLL_PAGE_DICE_TESTER' => 'Dice tester',
|
||||
'DICE_ROLL_PAGE_RESULT' => 'Result',
|
||||
'DICE_ROLL_PAGE_LIMITATIONS' => 'Limitations',
|
||||
'DICE_ROLL_PAGE_UNLIMITED' => 'Unlimited',
|
||||
'DICE_ROLL_PAGE_ROLLS_POST' => 'Rolls per post',
|
||||
'DICE_ROLL_PAGE_DICE_QTY' => 'Dice quantity',
|
||||
'DICE_ROLL_PAGE_SIDES_DICE' => 'Sides per dice',
|
||||
'DICE_ROLL_PAGE_ALLOWED_SIDES' => 'Allowed sides',
|
||||
'DICE_ROLL_PAGE_ONLY_ALLOWED_SIDES' => 'Only available sides',
|
||||
'DICE_ROLL_PAGE_AVAIL_SIDES' => 'Available sides',
|
||||
'DICE_ROLL_PAGE_FUDGE_DICE' => 'Fudge dice',
|
||||
'DICE_ROLL_PAGE_PERCENT_DICE' => 'Percentage dice',
|
||||
'DICE_ROLL_PAGE_EXPLODING_DICE' => 'Exploding dice',
|
||||
'DICE_ROLL_PAGE_PENETRATING_DICE' => 'Penetrating dice',
|
||||
'DICE_ROLL_PAGE_COMPOUNDING_DICE' => 'Compounding dice',
|
||||
'DICE_ROLL_PAGE_P_1_TITLE' => 'Explanation',
|
||||
'DICE_ROLL_PAGE_P_1' => 'The standard notation formats are accepted, such as <span class="dice-example">2d6+12</span>, and also the use of <span class="dice-example">L</span> or <span class="dice-example">H</span> to represent the lowest or highest roll respectively.
|
||||
For example: <span class="dice-example">4d6-L</span> (A roll of 4 six-sided dice, dropping the lowest result).
|
||||
|
||||
You can also use multiply and divide mathematical operators; 1d6*5 or 2d10/d20.
|
||||
However, the use of the mathematical symbols <span class="dice-example">×</span> and <span class="dice-example">÷</span> do not work.',
|
||||
|
||||
'DICE_ROLL_PAGE_LIST_1' => 'd6 or 1d',
|
||||
'DICE_ROLL_PAGE_LIST_1_2' => 'A 6 sided die',
|
||||
'DICE_ROLL_PAGE_LIST_2' => '2d6',
|
||||
'DICE_ROLL_PAGE_LIST_2_2' => 'Two 6 sided dice',
|
||||
'DICE_ROLL_PAGE_LIST_3' => '1d6+4',
|
||||
'DICE_ROLL_PAGE_LIST_3_2' => 'Roll a 6 sided dice and add 4 to the result',
|
||||
'DICE_ROLL_PAGE_LIST_4' => '2d10*4+1d20',
|
||||
'DICE_ROLL_PAGE_LIST_4_2' => 'Roll two 10 sided dice multiply by four, and roll one 20 sided die',
|
||||
'DICE_ROLL_PAGE_LIST_5' => '2d10+4+2d20-L',
|
||||
'DICE_ROLL_PAGE_LIST_5_2' => 'Roll two 10 sided dice add four, and roll two 20 sided die, taking away the lowest of the two',
|
||||
'DICE_ROLL_PAGE_LIST_6' => 'd%',
|
||||
'DICE_ROLL_PAGE_LIST_6_2' => 'A percentile die - equivalent to d100',
|
||||
'DICE_ROLL_PAGE_LIST_7' => 'dF or dF.2',
|
||||
'DICE_ROLL_PAGE_LIST_7_2' => 'A standard fudge dice - 2 thirds of each symbol',
|
||||
'DICE_ROLL_PAGE_LIST_8' => 'dF.1',
|
||||
'DICE_ROLL_PAGE_LIST_8_2' => 'A non-standard fudge dice - 1 positive, 1 negative, 4 blank',
|
||||
'DICE_ROLL_PAGE_LIST_9' => '2d6!',
|
||||
'DICE_ROLL_PAGE_LIST_9_2' => 'Exploding dice - two 6 sided die, rolling again for each roll of the maximum value',
|
||||
'DICE_ROLL_PAGE_LIST_10' => '2d6!!',
|
||||
'DICE_ROLL_PAGE_LIST_10_2' => 'Exploding & compounding dice - like exploding, but adding together into single roll',
|
||||
'DICE_ROLL_PAGE_LIST_11' => '2d6!p',
|
||||
'DICE_ROLL_PAGE_LIST_11_2' => 'Penetrating dice - like exploding, but subtract 1 from each consecutive roll',
|
||||
'DICE_ROLL_PAGE_LIST_12' => '2d6!!p',
|
||||
'DICE_ROLL_PAGE_LIST_12_2' => 'Penetrating & compounding dice - like exploding & compounding, but subtract 1 from each consecutive roll',
|
||||
'DICE_ROLL_PAGE_LIST_13' => '2d6!>=4',
|
||||
'DICE_ROLL_PAGE_LIST_13_2' => 'Exploding dice, but only if you roll a 4 or greater - Also usable with compounding and penetrating dice',
|
||||
'DICE_ROLL_PAGE_LIST_14' => '2d6>4',
|
||||
'DICE_ROLL_PAGE_LIST_14_2' => 'Dice pool - anything greater than a 4 is a success. Counts the number of successes as the total',
|
||||
|
||||
'DICE_ROLL_PAGE_P_2_TITLE' => 'Percentile dice',
|
||||
'DICE_ROLL_PAGE_P_2' => 'Although percentile dice can be rolled by using a <span class="dice-example">d100</span>, you can also use d%, which will do the same thing, returning a number between 0 and 100.',
|
||||
'DICE_ROLL_PAGE_P_3_TITLE' => 'Exploding dice',
|
||||
'DICE_ROLL_PAGE_P_3' => 'To explode a dice, add an exclamation mark after the die sides: <span class="dice-example">4d10!</span><br>
|
||||
Exploding dice roll an additional die if the maximum, on that die, is rolled.
|
||||
If that die is also the maximum it is rolled again, and so forth, until a roll is made that is not the maximum.
|
||||
For example: rolling a 6 on a d6, or a 10 on a d10.',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_1_TITLE' => '2d6!: [4, 6!, 6!, 2] = 20',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_1' => 'Each exploded die shows as a separate roll in the list, like shown above.
|
||||
Where the second roll exploded, so we rolled again, which also exploded.
|
||||
The fourth role, however, did not, so we stop rolling.',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_2_TITLE' => '1d6!-L: [6!,6!,6!,3]-L = 18',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_2' => 'You can even use <span class="dice-example">L</span> and <span class="dice-example">H</span>, which will look at exploded dice, as well as normal rolls.
|
||||
Here the die exploded three times before not rolling a maximum. The last roll was subtracted from the total.',
|
||||
'DICE_ROLL_PAGE_P_4_TITLE' => 'Compounding',
|
||||
'DICE_ROLL_PAGE_P_4' => 'Sometimes, you may want the exploded dice rolls to be added together under the same, original roll.
|
||||
In this situation, you can compound the dice by using two exclamation marks: <span class="dice-example">4d10!!</span>.
|
||||
For example <em>(using the examples of exploding dice above)</em>',
|
||||
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_1' => '2d6!!: [4, 14!!] = 20',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_1_2' => 'the exploded dice rolls of [6, 6, 2] are added together',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_2' => '1d6!!-L: [21!!]-L = 18',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_2_2' => 'the exploded dice rolls of [6, 6, 6, 3] are added together',
|
||||
|
||||
'DICE_ROLL_PAGE_P_5_TITLE' => 'Penetrating',
|
||||
'DICE_ROLL_PAGE_P_5' => 'Some exploding dice system use a penetrating rule. Taken from the <a href="https://www.kenzerco.com/free_files/hackmaster_basic_free_.pdf#page=51" target="_blank">Hackmaster Basic</a> rules',
|
||||
'DICE_ROLL_PAGE_P_6' => 'Should you roll the maximum value on this particular die, you may re-roll and add the result of the extra die, less one point, to the total (penetration can actually result in simply the maximum die value if a 1 is subsequently rolled, since any fool knows that 1-1=0).
|
||||
This process continues indefinitely as long as the die in question continues to come up maximum (but there’s always only a –1 subtracted from the extra die, even if it’s, say, the third die of penetration).',
|
||||
'DICE_ROLL_PAGE_P_7' => 'So, if you rolled <span class="dice-example">1d6</span> (penetrating), and got a 6, you would roll another <span class="dice-example">d6</span>, subtracting 1 from the result.
|
||||
If that <span class="dice-example">d6</span> rolled a 6 (before the -1) it would penetrate, and so on.
|
||||
The syntax for penetrating is very similar to exploding, but with a lowercase <strong>p</strong> appended, like <span class="dice-example">2d6!p</span>.
|
||||
For example <em>(Using the same example from exploding dice above)</em>',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_3' => '2d6!p: [4, 6!p, 5, 1] = 20',
|
||||
'DICE_ROLL_PAGE_P_8' => 'Where the second roll exploded, so we rolled again, which also exploded (rolled a 6). The fourth role, however, rolled a 2, so did not penetrate, so we stop rolling.
|
||||
Remember that we subtract 1 from penetrated rolls, which is why we show 5 and 1, instead of 6, and 2.
|
||||
<br>
|
||||
You can also compound penetrating dice, like so: <span class="dice-example">2d6!!p</span>',
|
||||
'DICE_ROLL_PAGE_P_9_TITLE' => 'Compare point',
|
||||
'DICE_ROLL_PAGE_P_9' => 'By default, exploding and penetrating dice do so if you roll the highest number possible on the dice (ie. a 6 on a <span class="dice-example">d6</span>, a 1 on a Fudge die).
|
||||
You can easily change the exploding compare point by adding a comparison after it.',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_4_TITLE' => 'To explode only if you roll a 4',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_4' => '2d6!=4',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_5_TITLE' => 'Or exploding if you roll anything over a 4',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_5' => '2d6!>4',
|
||||
'DICE_ROLL_PAGE_P_10' => 'You can also use this with penetrating and compounding dice',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_6_TITLE' => 'compound if you roll a 4 or lower',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_6' => '2d6!!<=4',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_7_TITLE' => 'penetrate if you do not roll a 4',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_7' => '2d6!p!=4',
|
||||
'DICE_ROLL_PAGE_P_11_TITLE' => 'Fudge dice',
|
||||
'DICE_ROLL_PAGE_P_11' => 'Fudge notation is also supported. It allows both <span class="dice-example">dF.2</span> and less common <span class="dice-example">dF.1</span>.<br>
|
||||
You can also use it in conjunction with other operators and additions. Examples',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_8_TITLE' => 'dF',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_8' => 'this is the same as',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_8_BIS' => 'dF.2',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_9_TITLE' => '4dF.2',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_9' => 'roll 4 standard fudge dice',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_10_TITLE' => '4dF.2-L',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_10' => 'roll 4 standard fudge dice, subtracting the lowest result',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_11_TITLE' => 'dF.1*2',
|
||||
'DICE_ROLL_PAGE_EXAMPLE_11' => 'roll non-standard fudge dice, multiplying the result by 2',
|
||||
'DICE_ROLL_PAGE_P_12_TITLE' => 'Dice pools',
|
||||
'DICE_ROLL_PAGE_P_12' => 'Some systems use dice pool, whereby the total is equal to the number of dice rolled that meet a fixed condition, rather than the total value of the rolls.
|
||||
For example, a <strong>pool</strong> of 10 sided dice where you count the number of dice that roll an 8 or higher as <strong>successes</strong>.
|
||||
This can be achieved with: <span class="dice-example">5d10>=8</span>.<br>
|
||||
You can define various success conditions, by simply adding number comparisons directly after the dice roll.<br>
|
||||
Because of this, you can <strong>not</strong> have a pool dice that also explodes. Examples',
|
||||
'DICE_ROLL_PAGE_P_13' => 'You can mix pool dice with other dice types or equations, and it will use the number of successes as the value in the equation',
|
||||
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_3' => '2d6=6: [4,6*] = 1',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_3_2' => 'only a roll of 6 is a success',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_4' => '4d3>1: [1,3*,2*,1] = 2',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_4_2' => 'higher than a 1 is a success',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_5' => '4d3<2: [1*,3,2,1*] = 2',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_5_2' => 'lower than a 2 is a success',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_6' => '5d8>=5: [2,4,6*,3,8*] = 2',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_6_2' => 'higher than or equal to 5 is a success',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_7' => '6d10<=4: [7,2*,10,3*,3*,4*] = 4',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_7_2' => 'less than or equal to 4 is a success',
|
||||
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_8' => '2d6>4+3d5: [4,5*]+[3,1,1] = 6',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_8_2' => '1 success + the raw values of the other rolls',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_9' => '2d6>4*d6!: [6*,5*]*[6!,4] = 20',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_9_2' => '1 success * raw values of the other rolls',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_10' => '2d6>4+2: [3,5*]+2 = 3',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_10_2' => '1 success + 2',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_11' => '2d6>4+H: [3,5*]+H = 2',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_11_2' => 'Highest roll is 5, which is a success, so value of 1',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_12' => '2d6<4+H: [3*,5]+H = 1',
|
||||
'DICE_ROLL_PAGE_EX_DETAILS_12_2' => 'Highest roll is 5, which is a failure, so value of 0',
|
||||
]);
|
||||
60
ext/phpbbstudio/dice/language/en/dice_exceptions.php
Normal file
60
ext/phpbbstudio/dice/language/en/dice_exceptions.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* phpBB Studio's Dice extension for the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) 2019 phpBB Studio <https://www.phpbbstudio.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Some characters you may want to copy&paste: ’ » “ ” …
|
||||
*/
|
||||
$lang = array_merge($lang, [
|
||||
'EXCEPTION_OUT_OF_BOUNDS' => 'The field `<strong>%1$s</strong>` received data beyond its bounds. Reason: %2$s',
|
||||
'EXCEPTION_UNEXPECTED_VALUE' => 'The field `<strong>%1$s</strong>` received unexpected data. Reason: %2$s',
|
||||
|
||||
'EXCEPTION_ROLL_EDIT_COUNT' => 'Roll edit count',
|
||||
'EXCEPTION_ROLL_EDIT_TIME' => 'Roll edit time',
|
||||
'EXCEPTION_ROLL_EDIT_USER' => 'Edit user identifier',
|
||||
'EXCEPTION_ROLL_DICE_COMPOUND' => 'Compounding dice (<span class="error">!!</span>)',
|
||||
'EXCEPTION_ROLL_DICE_EXPLODE' => 'Exploding dice (<span class="error">!, !!, !p</span>)',
|
||||
'EXCEPTION_ROLL_DICE_FUDGE' => 'Fudge dice (<span class="error">F</span>)',
|
||||
'EXCEPTION_ROLL_DICE_PENETRATE' => 'Penetrating dice (<span class="error">!p</span>)',
|
||||
'EXCEPTION_ROLL_DICE_PERCENT' => 'Percentage dice (d<span class="error">%</span> or d<span class="error">100</span>)',
|
||||
'EXCEPTION_ROLL_DICE_QTY' => 'Dice quantity (<span class="error">X</span>d6)',
|
||||
'EXCEPTION_ROLL_DICES' => 'Dices',
|
||||
'EXCEPTION_ROLL_DICES_QTY' => 'Dice quantities (<span class="error">X</span>d6 + <span class="error">X</span>d6)',
|
||||
'EXCEPTION_ROLL_FORUM_ID' => 'Forum identifier',
|
||||
'EXCEPTION_ROLL_ID' => 'Roll identifier',
|
||||
'EXCEPTION_ROLL_NOTATION' => 'Roll notation',
|
||||
'EXCEPTION_ROLL_POST_ID' => 'Post identifier',
|
||||
'EXCEPTION_ROLL_REGEX_NAME' => 'Regex name',
|
||||
'EXCEPTION_ROLL_SIDES' => 'Dice sides (1d<span class="error">X</span>)',
|
||||
'EXCEPTION_ROLL_TIME' => 'Roll time',
|
||||
'EXCEPTION_ROLL_TOPIC_ID' => 'Topic identifier',
|
||||
'EXCEPTION_ROLL_USER_ID' => 'User identifier',
|
||||
|
||||
'EXCEPTION_FIELD_MISSING' => 'Required field missing.',
|
||||
'EXCEPTION_NOT_ALLOWED' => 'The input is not allowed.',
|
||||
'EXCEPTION_ROLL_ALREADY_EXIST' => 'The provided roll already exists.',
|
||||
'EXCEPTION_ROLL_NO_MATCHES' => 'No dice matches found for provided notation.',
|
||||
'EXCEPTION_ROLL_NOT_EXIST' => 'The provided roll does not exist.',
|
||||
'EXCEPTION_ROLL_NAME_NOT_FOUND' => 'The provided regex name could not be found.',
|
||||
|
||||
// TRANSLATORS pay attention here
|
||||
'EXCEPTION_ROLL_ULINT' => 'The input is not in the rage of 0 to 4 294 967 295.', // Leave   in place (non-breaking thin space)
|
||||
'EXCEPTION_ROLL_USINT' => 'The input is not in the rage of 0 to 65 535.', // Leave   in place (non-breaking thin space)
|
||||
|
||||
'EXCEPTION_TOO_LONG' => 'The input was longer than the maximum length.',
|
||||
'EXCEPTION_TOO_HIGH' => 'The input was higher than the maximum value.',
|
||||
]);
|
||||
26
ext/phpbbstudio/dice/language/en/ext_require.php
Normal file
26
ext/phpbbstudio/dice/language/en/ext_require.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* phpBB Studio's Dice extension for the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) 2019 phpBB Studio <https://www.phpbbstudio.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Some characters you may want to copy&paste: ’ » “ ” …
|
||||
*/
|
||||
$lang = array_merge($lang, [
|
||||
'ERROR_PHPBB_VERSION' => 'Minimum phpBB version required is %1$s but less than %2$s',
|
||||
'ERROR_PHP_VERSION' => 'PHP version must be equal or greater than 5.5',
|
||||
'ERROR_GLOB_STREAM' => 'The stream GLOB is not available in your system.',
|
||||
]);
|
||||
53
ext/phpbbstudio/dice/language/en/info_acp_dice.php
Normal file
53
ext/phpbbstudio/dice/language/en/info_acp_dice.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* phpBB Studio's Dice extension for the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) 2019 phpBB Studio <https://www.phpbbstudio.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Some characters you may want to copy&paste: ’ » “ ” …
|
||||
*/
|
||||
$lang = array_merge($lang, [
|
||||
// Cat
|
||||
'ACL_CAT_PHPBB_STUDIO' => 'phpBB Studio',
|
||||
|
||||
// ACP forums
|
||||
'ACP_DICE_SETTINGS' => 'Dice settings',
|
||||
'ACP_DICE_ENABLE' => 'Enable dice',
|
||||
'ACP_DICE_ENABLE_DESC' => 'Enables the dice extension in this forum. The dice BBCode will only be enabled for users who have the permission to roll the dice in this forum.',
|
||||
'ACP_DICE_F_SKIN' => 'Dice skin',
|
||||
'ACP_DICE_F_SKIN_DESC' => 'The default dice skin for dice rolls in this forum.',
|
||||
'ACP_DICE_SKIN_OVERRIDE' => 'Override dice skin',
|
||||
'ACP_DICE_SKIN_OVERRIDE_DESC' => 'Replaces user’s dice skin with the skin as defined under “Dice skin”.',
|
||||
|
||||
// ACP
|
||||
'ACP_DICE_CAT' => 'phpBB Studio - Dice',
|
||||
'ACP_DICE_DASH' => 'Diceboard',
|
||||
|
||||
'ACP_DICE_SIDES' => 'Dice sides',
|
||||
'ACP_DICE_SIDES_SHORT' => 'Sides',
|
||||
|
||||
'ACP_DICE_SKINS' => 'Dice skins',
|
||||
'ACP_DICE_SKINS_SHORT' => 'Skins',
|
||||
|
||||
// Log
|
||||
'LOG_ACP_DICE_LOCATIONS' => '<strong>Altered dice link locations</strong>',
|
||||
'LOG_ACP_DICE_ORPHANED' => '<strong>Deleted orphaned dice rolls</strong><br />» %s deleted',
|
||||
'LOG_ACP_DICE_SETTINGS' => '<strong>Altered dice settings</strong>',
|
||||
'LOG_ACP_DICE_SIDE_ADD' => '<strong>Added new dice side</strong><br />» %s',
|
||||
'LOG_ACP_DICE_SIDE_DELETE' => '<strong>Deleted dice side</strong><br />» %s',
|
||||
'LOG_ACP_DICE_SKIN_INSTALL' => '<strong>Installed new dice skin</strong><br />» %s',
|
||||
'LOG_ACP_DICE_SKIN_UNINSTALL' => '<strong>Uninstalled dice skin</strong><br />» %s',
|
||||
]);
|
||||
30
ext/phpbbstudio/dice/language/en/info_ucp_dice.php
Normal file
30
ext/phpbbstudio/dice/language/en/info_ucp_dice.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* phpBB Studio's Dice extension for the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) 2019 phpBB Studio <https://www.phpbbstudio.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Some characters you may want to copy&paste: ’ » “ ” …
|
||||
*/
|
||||
$lang = array_merge($lang, [
|
||||
'UCP_DICE_TITLE' => 'Dice',
|
||||
'UCP_DICE' => 'Settings',
|
||||
|
||||
'UCP_DICE_USER' => 'Dice mode',
|
||||
'UCP_DICE_USER_EXPLAIN' => 'Default display skin for dice rolls.',
|
||||
|
||||
'UCP_DICE_SAVED' => 'Settings have been saved successfully!',
|
||||
]);
|
||||
38
ext/phpbbstudio/dice/language/en/permissions_dice.php
Normal file
38
ext/phpbbstudio/dice/language/en/permissions_dice.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* phpBB Studio's Dice extension for the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) 2019 phpBB Studio <https://www.phpbbstudio.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*/
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($lang) || !is_array($lang))
|
||||
{
|
||||
$lang = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Some characters you may want to copy&paste: ’ » “ ” …
|
||||
*/
|
||||
$lang = array_merge($lang, [
|
||||
'ACL_F_DICE_ROLL' => '<strong>Dice</strong> - Can roll dice',
|
||||
'ACL_F_DICE_EDIT' => '<strong>Dice</strong> - Can edit a rolled dice',
|
||||
'ACL_F_DICE_DELETE' => '<strong>Dice</strong> - Can delete own dice',
|
||||
'ACL_F_DICE_NO_LIMIT' => '<strong>Dice</strong> - Can ignore dice limit per post',
|
||||
'ACL_F_DICE_VIEW' => '<strong>Dice</strong> - Can view rolled dice',
|
||||
|
||||
'ACL_F_MOD_DICE_ADD' => '<strong>Dice</strong> - <strong><em>Mod:</em></strong> Can roll dice on other users´s post',
|
||||
'ACL_F_MOD_DICE_EDIT' => '<strong>Dice</strong> - <strong><em>Mod:</em></strong> Can edit rolled dice on other users´s post',
|
||||
'ACL_F_MOD_DICE_DELETE' => '<strong>Dice</strong> - <strong><em>Mod:</em></strong> Can delete dice on other users´s post',
|
||||
|
||||
'ACL_A_DICE_ADMIN' => '<strong>Dice</strong> - Can administer the extension',
|
||||
|
||||
'ACL_U_DICE_USE_UCP' => '<strong>Dice</strong> - Can manage the Dice UCP',
|
||||
'ACL_U_DICE_TEST' => '<strong>Dice</strong> - Can use the “Test notation” page',
|
||||
'ACL_U_DICE_SKIN' => '<strong>Dice</strong> - Can ignore overriding forum skins<br><em>The user selected skin will be used, even when the forum skin is set to “override”.</em>',
|
||||
]);
|
||||
Reference in New Issue
Block a user