Difference between revisions of "Extensions:Criteria Rewards"
(Created page with "{{subst:Extension Page}}") Tag: 2017 source edit |
Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
− | {{Extensioninfobox|title= | + | {{Extensioninfobox|title=Reward Criteria|desc=Adds Ability to calculate rewards based on criteria specified by users|auth=moif|status=beta|github=github={{Github|repo=lorekeeper-extensions|user=AW0005|branch=extension/reward-criteria}}|LKVer=2.0.0|migration=yes|package=no}} |
− | + | ||
+ | This extension is built to help make calculating rated rewards (like giving a higher reward to colored art vs sketches) easier on both admin and users. It allows admin to specify their own calculation rules, that are then applied based on input from the user on prompt or gallery submission. Calculator selections can be modified by the admin on submission approval to adjust the reward. [See Pictures farther down] | ||
+ | |||
+ | This extension does completely replace the existing configurable rewards for galleries, so do keep that in mind when you decide to use this. | ||
+ | |||
== Installation == | == Installation == | ||
− | < | + | 1. <code>php artisan migrate</code> |
+ | 2. <code>php artisan optimize</code> | ||
+ | |||
+ | conflicts will largely be in prompt and gallery blades if any of your other extensions have touched those features. | ||
+ | |||
== Configuration == | == Configuration == | ||
− | + | There are two main parts to configuring this extension. | |
− | == | + | |
− | + | === Create Criteria === | |
− | == | + | The most common ones are going to be one for art and one for writing. |
− | + | ||
+ | Making a criterion usually involves: | ||
+ | # Deciding on if it should have a base value | ||
+ | # Deciding on steps - each step is a question a user has to answer and the order matters for calculating the final result | ||
+ | # calculation type of the step - this determines whether the value derived from the step is added or multiplied to the running total. | ||
+ | # Type of steps: | ||
+ | # Number Input - this type allows an additional calculation of the input'd number against a set number you choose | ||
+ | # Boolean - this applies a calculation if it's turned on, and skips the step if turned off | ||
+ | # Select From Options - this presents users with a dropdown of options, and each option has a separate value assigned to it. Ordering of options matters for minimum requirements (more detail later). | ||
+ | |||
+ | === Assigning Criteria to Prompts and Galleries === | ||
+ | In order to allow users to use the Criteria you will have to assign them on a per-prompt and per-gallery basis. This also allows you the opportunity to set minimum requirements for each prompt and gallery separately. Minimum requirements will limit what a user can choose on submission. If a boolean toggle is turned on, it will be set to on and disabled for a user. If an input has a value set, that will be the minimum value that a user can input. And finally if a value is selected for an options step, it will hide any options that are lower-ranked for that step. | ||
+ | |||
+ | === Other === | ||
+ | An additional site setting has been added for whether rewards added on gallery submission should be divided among collaborators by default or not. | ||
+ | |||
== Images == | == Images == | ||
− | < | + | <gallery heights="200" widths="200"> |
+ | File:Screen Shot 2022-10-16 at 7.25.29 PM.png | ||
+ | File:Screen Shot 2022-10-16 at 7.25.13 PM.png | ||
+ | File:Screen Shot 2022-10-16 at 7.24.58 PM.png | ||
+ | File:Screen Shot 2022-10-16 at 7.24.44 PM.png | ||
+ | File:Screen Shot 2022-10-16 at 7.24.37 PM.png | ||
+ | File:Screen Shot 2022-10-16 at 7.24.24 PM.png | ||
+ | File:Screen Shot 2022-10-16 at 7.24.11 PM.png | ||
+ | File:Screen Shot 2022-10-16 at 7.24.03 PM.png | ||
+ | </gallery> | ||
+ | |||
== See Also == | == See Also == | ||
− | + | Feel free to ping moif in the LK discord if you have questions! | |
+ | https://ko-fi.com/moifdoesart |
Revision as of 15:30, 16 October 2022
Description | Adds Ability to calculate rewards based on criteria specified by users |
---|---|
Author(s) | moif |
Status | beta |
Github | github=AW0005/lorekeeper-extensions/extension/reward-criteria |
LK Version | 2.0.0 |
Contains a Migration | |
This extension is built to help make calculating rated rewards (like giving a higher reward to colored art vs sketches) easier on both admin and users. It allows admin to specify their own calculation rules, that are then applied based on input from the user on prompt or gallery submission. Calculator selections can be modified by the admin on submission approval to adjust the reward. [See Pictures farther down]
This extension does completely replace the existing configurable rewards for galleries, so do keep that in mind when you decide to use this.
Contents
Installation
1. php artisan migrate
2. php artisan optimize
conflicts will largely be in prompt and gallery blades if any of your other extensions have touched those features.
Configuration
There are two main parts to configuring this extension.
Create Criteria
The most common ones are going to be one for art and one for writing.
Making a criterion usually involves:
- Deciding on if it should have a base value
- Deciding on steps - each step is a question a user has to answer and the order matters for calculating the final result
- calculation type of the step - this determines whether the value derived from the step is added or multiplied to the running total.
- Type of steps:
# Number Input - this type allows an additional calculation of the input'd number against a set number you choose # Boolean - this applies a calculation if it's turned on, and skips the step if turned off # Select From Options - this presents users with a dropdown of options, and each option has a separate value assigned to it. Ordering of options matters for minimum requirements (more detail later).
Assigning Criteria to Prompts and Galleries
In order to allow users to use the Criteria you will have to assign them on a per-prompt and per-gallery basis. This also allows you the opportunity to set minimum requirements for each prompt and gallery separately. Minimum requirements will limit what a user can choose on submission. If a boolean toggle is turned on, it will be set to on and disabled for a user. If an input has a value set, that will be the minimum value that a user can input. And finally if a value is selected for an options step, it will hide any options that are lower-ranked for that step.
Other
An additional site setting has been added for whether rewards added on gallery submission should be divided among collaborators by default or not.
Images
See Also
Feel free to ping moif in the LK discord if you have questions!