Difference between revisions of "Extensions:Criteria Rewards"

From Lorekeeper Wiki
Jump to navigation Jump to search
(Created page with "{{subst:Extension Page}}")
Tag: 2017 source edit
 
Tag: 2017 source edit
Line 1: Line 1:
{{Extensioninfobox|title=the extension's name|desc=A short description|auth=Author(s)|status=status (such as WIP, testing, stable)|github={{Github|user=username|branch=branch}}|LKVer=What Lorekeeper version the ext is built on|migration=yes/no|package=yes/no}}
+
{{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}}
<!-- Put a short summary of your extension here! -->
+
 
 +
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 ==
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
+
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 ==
<!-- Is any configuration necessary? Describe it here! -->
+
There are two main parts to configuring this extension.
== Usage ==
+
 
<!-- Is there anything users should know about using your extension? -->
+
=== Create Criteria ===
== Troubleshooting ==
+
The most common ones are going to be one for art and one for writing.
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->
+
 
 +
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 ==
<!-- Do you have any images to show what it looks like in action? -->
+
<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 ==
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->
+
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

Reward Criteria
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.

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:

  1. Deciding on if it should have a base value
  2. Deciding on steps - each step is a question a user has to answer and the order matters for calculating the final result
  3. calculation type of the step - this determines whether the value derived from the step is added or multiplied to the running total.
  4. 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!

https://ko-fi.com/moifdoesart