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

random reward #343

Open
gerotobia317 opened this issue Dec 16, 2024 · 7 comments
Open

random reward #343

gerotobia317 opened this issue Dec 16, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@gerotobia317
Copy link

BeautyQuests version: latest
Game version: 1.21.3
Server type : spingot

random reward work? already try many times

  • after click random reward
  • set reward , 10$
  • min 1$ n max 100$
    but the reward always 10$, how to make it random reward
    Thx u
@gerotobia317 gerotobia317 added the bug Something isn't working label Dec 16, 2024
@SkytAsul
Copy link
Owner

Please send quest file

@gerotobia317
Copy link
Author

just sample quest before made real quest

repeatable: true
name: tes1
timer: 1
endRewards:

  • id: randomReward
    rewards:
    • id: moneyReward
      money: 10.0
      min: 1
      max: 100
      startableFromGUI: true
      manager:
      branches:
      '0':
      stages:
      '0':
      writeText: satu
      stageType: CHAT
      endingStages: {}
      id: 11

@gerotobia317
Copy link
Author

i have 2 quest likes this for sample, but always get 10$ reward, i need random setting

@SkytAsul
Copy link
Owner

There is simply no random setting for this stage. Where did you even get your min and max parameters? You should edit quests only via the GUI, do not edit the files.

What you could do is to add a "random rewards" and inside, put multiple "money reward" with i.e. 1, 10, 20, 30, ..., 100$

@gerotobia317
Copy link
Author

yes, all edit at GUI, but result didnt work

  • i pick random reward
  • then there is only set reward at 1st, so i set 10$
  • after confirmation, we can edit min-max, so i set 1-100
    but every time i test quest always get 10$

@SkytAsul
Copy link
Owner

Add multiple money rewards inside the "random rewards". And choose 1 as both min and max.
This will make so the plugin will pick only 1 reward from the list of random rewards: either 1, 10, 20, 30...

@gerotobia317
Copy link
Author

i see, so that was random number, thx info i will try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants