Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smol update for args in ecoskills/quests xp methods #64

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions docs/ecoquests/how-to-make-a-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ description: "&fBreak stone blocks (&a%xp%&8/&a%required-xp%&f)" # The descripti
# The 'multiplier' takes the value produced by the trigger and multiplies it
# Alternatively, you can use 'value' to count a specific number and not a multiplier
xp-gain-methods:
- trigger: mine_block # See list of triggers: https://plugins.auxilor.io/effects/all-triggers
multiplier: 1 # You can also use "value" here (see above comment)
filters: # (Optional) Example of using filters in tasks
- trigger: mine_block
multiplier: 0.5 # You can also use "value" here (see above comment)
args: # (Optional)
chance: 50
filters: # (Optional)
blocks:
- stone
- netherrack

# An optional list of effects to run when a player completes the task
# Read here: https://plugins.auxilor.io/effects/configuring-an-effect
Expand Down
12 changes: 7 additions & 5 deletions docs/ecoskills/how-to-make-a-skill.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,19 @@ reward-messages:
- " &8» &r&6%ecoskills_dynamic_mining_name% %ecoskills_dynamic_mining_numeral%"
- " %ecoskills_dynamic_mining_description%"

# An XP gain method takes a trigger, a multiplier, conditions, and filters.
# An XP gain method takes a trigger, a multiplier, conditions, args and filters.
# The 'multiplier' takes the value produced by the trigger and multiplies it
# Alternatively, you can use 'value' to count a specific number and not a multiplier
xp-gain-methods:
- trigger: break_block
- trigger: mine_block
multiplier: 0.5 # You can also use "value" here (see above comment)
filters:
args: # (Optional)
chance: 50
filters: # (Optional)
blocks:
- netherrack

- trigger: break_block
- trigger: mine_block
multiplier: 1
filters:
blocks:
Expand Down Expand Up @@ -236,7 +238,7 @@ level-up-effects:

**reward-messages:** Messages to send in chat on level up.

**xp-gain-methods:** The trigger, multiplier/value, conditions and filters that will award skill XP.
**xp-gain-methods:** The trigger, multiplier/value, conditions, args and filters that will award skill XP.

**conditions:** Global conditions that must be met to gain skill XP. See [Configuring a Condition](https://plugins.auxilor.io/effects/configuring-a-condition).

Expand Down
Loading