#DeluxeMenu multiples view_requirement

1 messages · Page 1 of 1 (latest)

swift cradle
#

Hi. It is possible to use more than one requirement to allow an upgrade update

left_click_requirement:
requirements:
has money:
type: has money
amount: 50000.0
has cash:
type: '>='
input: '%ypoints_points%'
output: '5'
has vote:
type: '>='
input: '%pinataparty_votes_total%'
output: '5'

swift cradle
#

left_click_requirement:
requirements:
pede money:
type: has money
amount: 50000.0
pede cash:
type: '>='
input: '%ypoints_points%'
output: '5'
pede voto:
type: '>='
input: '%pinataparty_votes_total%'
output: '5'

thorny tangle
#

both works

#

if it doenst work, try this

          requirements:
            pede money:
              type: has money
              amount: 50000.0
            pede cash:
              type: ">="
              input: "%ypoints_points%"
              output: 5
            pede voto:
              type: ">="
              input: "%pinataparty_votes_total%" 
              output: 5```
swift cradle
#

So does it need these three requirements to be able to update the correct menu?

#

I need him to have 50k money
5 votes
5 cash to go to the next menu

#

I will share the gui I made with you

thorny tangle
#

if you put the minimum_requirement there, then you only need to match that number of min. requirements

#

for example lets say minimum_requirement: 2
this will make sure the player matches any two requirements out of three

thorny tangle
crimson lodgeBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

crimson lodgeBOT
#
Valid Config!

nob316, I checked your config and, it's valid!

+ Correctly Formatted```
thorny tangle
#
        left_click_requirement:
          requirements:
            has_money:
              type: has money
              amount: 50000
            has_cash:
              type: ">="
              input: "%ypoints_points%" 
              output: 5
            has_vote:
              type: ">="
              input: "%pinataparty_votes_total%" 
              output: 5
          deny_commands:
          - '[close]'
          - '[message] &6&l[!] &fYou don''t have &a50000$ &fto buy the upgrade!'
          - '[console] tm message -fadein=0 -fadeout=2 -stay=60 -silent %player_name%
            &cError!\n &fYou don''t have enough money!'