#view_requirement help

1 messages · Page 1 of 1 (latest)

thorny geyser
#

Hi everyone !
I need some help.
I'm trying to make sure that if the player has discovered the right region (with a placeholder), it displays one item but if he hasn't discovered it, it displays another item

#

Thanks in advance for the help:)

thorny geyser
#

Please ?

eager lichen
#
'farmunlock':
  material: green_dye
  slot: 12
  view_requirement:
    requirements:
      'test':
        type: equals
        input: '%placeholder%'
        output: 'yes'

'farmlock' :
  material: gray_dye
  slot: 12
  priority: 50 # higher number
thorny geyser
#

Thank u ! I’m gonna try !

thorny geyser
#

Not working :/

craggy bronze
#

you need to use this if the placeholder returns yes

'farmunlock':
  material: green_dye
  slot: 12
  priority: 1
  view_requirement:
    requirements:
      region:
        type: string equals
        input: '%codex_has_discorvery_regions_2%'
        output: 'yes'

'farmlock':
  material: gray_dye
  slot: 12
  priority: 2
craggy bronze
#

its == for int values

#

and string equals for string values

thorny geyser
thorny geyser
#

When I tried it yesterday, the placeholder said "yes"

#

But now it return nothing..

craggy bronze
thorny geyser
#

Sure

#

Oh

#

Ok, the "r" is not at the good place x)

#

There is an extra "r" in the variable x)

#

the placeholder says "false"

#

But nothing change.. the gui didn't actualise when i discovered a region

craggy bronze
thorny geyser
#

Ok i'll try

#

No change x)

#

🥲

#

I've unlocked the region, but the placeholder still returns "false"

#

It's normal ?

#

By reloading codex, the placeholder was updated and set to "true"

craggy bronze
thorny geyser
#

i think

#

Sorry

#

It work now

#

Thank u so much for help