From 72ac6e76a0ed3ec81e4452b396f4a5fa5816feb0 Mon Sep 17 00:00:00 2001 From: Exanthiax <107284021+Exanthiax@users.noreply.github.com> Date: Mon, 24 Jun 2024 21:56:05 +0100 Subject: [PATCH] smol update for args in ecoskills --- docs/ecoquests/how-to-make-a-task.md | 10 ++++++---- docs/ecoskills/how-to-make-a-skill.md | 12 +++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/ecoquests/how-to-make-a-task.md b/docs/ecoquests/how-to-make-a-task.md index a00101fd7c..1004e281bc 100644 --- a/docs/ecoquests/how-to-make-a-task.md +++ b/docs/ecoquests/how-to-make-a-task.md @@ -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 diff --git a/docs/ecoskills/how-to-make-a-skill.md b/docs/ecoskills/how-to-make-a-skill.md index 3b2c766bb7..ec854ee082 100644 --- a/docs/ecoskills/how-to-make-a-skill.md +++ b/docs/ecoskills/how-to-make-a-skill.md @@ -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: @@ -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).