Difference between revisions of "Extensions:Encounters"
(desc) |
(config) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
Example: | Example: | ||
+ | |||
Encounter in Cave | Encounter in Cave | ||
+ | |||
You stumble upon a glistening rock. What do you do? | You stumble upon a glistening rock. What do you do? | ||
* >Pick up Rock | * >Pick up Rock | ||
Line 14: | Line 16: | ||
Maybe you want "Pick up Rock" to give a rock item, "Walk away" to do nothing, and "Kick it" to take away energy. All supported by the ext. | Maybe you want "Pick up Rock" to give a rock item, "Walk away" to do nothing, and "Kick it" to take away energy. All supported by the ext. | ||
− | Includes a customizable overlapping image area designed by LostInProgres. For example, you can create a standard cave background for encounters in the cave area, and you can overlay an image of a glistening rock over top of it. | + | Includes a customizable overlapping image area designed by LostInProgres. For example, you can create a standard cave background for encounters in the cave area, and you can overlay an image of a glistening rock over top of it. You can position the encounter image over the background from the encounter page itself. |
== Installation == | == Installation == | ||
Line 20: | Line 22: | ||
* php artisan add-site-settings | * php artisan add-site-settings | ||
* php artisan optimize | * php artisan optimize | ||
+ | * php artisan update-extension-tracker | ||
== Configuration == | == Configuration == | ||
− | + | NEW: Config file added. config\lorekeeper\encounters.php. Edit to change various functions of the ext. Right now it just dictates if encounters use characters, if currency should be used as energy, etc. | |
+ | |||
+ | php artisan optimize after updating the file | ||
== Usage == | == Usage == | ||
<!-- Is there anything users should know about using your extension? --> | <!-- Is there anything users should know about using your extension? --> |
Latest revision as of 12:29, 4 November 2023
Description | Create interactable "encounters" users can be faced with |
---|---|
Author(s) | CH3RVB, LostInProgres |
Status | stable + testing |
Github | extension\encounters |
LK Version | 2.1.2 |
Contains a Migration | |
Users can face "encounters" which are created by admins in the admin panel. Encounters are randomly rolled between "areas" which can hold multiple different encounters to be faced.
Each encounter has multiple prompts a user can pick from (made by admins) which can lead to different outcomes. Rewards can be given, as well as the user's exploration energy can be altered by an encounter.
Example:
Encounter in Cave
You stumble upon a glistening rock. What do you do?
- >Pick up Rock
- >Walk away
- >Kick it
Maybe you want "Pick up Rock" to give a rock item, "Walk away" to do nothing, and "Kick it" to take away energy. All supported by the ext.
Includes a customizable overlapping image area designed by LostInProgres. For example, you can create a standard cave background for encounters in the cave area, and you can overlay an image of a glistening rock over top of it. You can position the encounter image over the background from the encounter page itself.
Installation
- php artisan migrate
- php artisan add-site-settings
- php artisan optimize
- php artisan update-extension-tracker
Configuration
NEW: Config file added. config\lorekeeper\encounters.php. Edit to change various functions of the ext. Right now it just dictates if encounters use characters, if currency should be used as energy, etc.
php artisan optimize after updating the file