#How do I put an item requirement by name and not by material?

1 messages · Page 1 of 1 (latest)

meager elm
#

Hi, I need to use this requirement for an item, but the item I'm using has the name edited as I do so that the requirement recognizes the item by the name and not by the material, since since I have it, it recognizes me as material.

idle cape
#

would it be okay to check name and material?

#
type: has item
material: tripwire_hook
name: '&6llave del tiempo'
humble fox
#
        has_item:
          type: string equals
          input: '%checkitem_mat:STICK,namecontains:[name]%
          output: 'yes'
meager elm
#

None of the ones you have provided have worked do not recognize the item that has the name edited

humble fox
#

not like that

#

😭

#

do this

#

/papi ecloud download checkitem

#
        has_item:
          type: string equals
          input: '%checkitem_mat:STICK,namecontains:[name]%
          output: 'yes'```
humble fox
#

I see some errors

meager elm
humble fox
#
  'level-2-desbloqueado':
    material: hdb-17937
    slot: 20
    priority: 2
    view_requirement:
      requirements:
        Horas_Jugadas:
          type: javascript
          expression: "%statistic_hours_played% >= 4"
        llave:
          type: string equals
          input: '%checkitem_mat:TRIPWIRE_HOOK,namecontains:&6Llave del tiempo%
          output: 'yes'
        Bloques_Minados:
          type: javascript
          expression: "%statistic_mine_block% >= 100"```
#

@meager elm

#

also, make sure Checkitem is there on your server

meager elm
humble fox
#

Place a ' after the placeholder for checkitem

meager elm
#

AM doesn't recognize the item by name

idle cape
#

what is AM?

#

type /papi parse me %checkitem_mat:TRIPWIRE_HOOK,nameequals:&6llave del tiempo% and tell me what it says when you have the item in your inventory

#

@meager elm

meager elm
#

NO

idle cape
#

type /papi parse me %checkitem_getinfo:mainhand_nameequals:%

#

what does it say

#

while holding the item*

meager elm
#

You sent it with a lowercase letter, that's why I throw myself no, but I've already changed it and it already throws me that yes

idle cape
#

well your picture had lowercase

#

but if it's saying yes now and it works, then it should work fine in your menu

#
type: string equals
input: '%checkitem_mat:TRIPWIRE_HOOK,nameequals:&6llave del tiempo%'
output: 'yes'
meager elm
#

If I'm sorry I'll change it later ...

idle cape
#

i wonder if has item would work with the correct capitalization though

idle cape
meager elm
#

am, but he doesn't recognize me that he already has it in his hand and doesn't make the change of information

idle cape
#

type /papi parse me %checkitem_nameequals&6Llave del tiempo%

#

(I suggest using nameequals instead of namecontains by the way, but either should work fine

idle cape
#

type /papi parse me %checkitem_nameequals:&6Llave del tiempo%

#

ohhhh

#

you are trying to check the amount, but that placeholder does not return a number

#

try this

#
%changeoutput_equals_input:{checkitem_namecontains:&6Llave del tiempo}_matcher:yes_ifmatch:&3&mTıenes &2&m1 &3&mllαve del tıempo&7_else:&3Consıgue &21 &3llαve del tıempo &c&lx%
#

if you have 1 key, it should say &3&mTıenes &2&m1 &3&mllαve del tıempo&7

#

if not, it should say &3Consıgue &21 &3llαve del tıempo &c&lx

meager elm
#

With that confirmation, it doesn't show anything, it stays the same without changing the information

idle cape
#

you have changeoutput expansion downloaded, right?

#

-papi changeoutput

meager elm
#

yes

idle cape
#

hmmm

#

it returns this exactly? %changeoutput_equals_input:{checkitem_namecontains:&6Llave del tiempo}_matcher:yes_ifmatch:&3&mTıenes &2&m1 &3&mllαve del tıempo&7_else:&3Consıgue &21 &3llαve del tıempo &c&lx%

#

is that what you're saying

meager elm
#

Just show this &3Consıgue &21 &3llαve del tıempo &c&lx

idle cape
#

oh

#

what does /papi parse me %checkitem_namecontains:&6Llave del tiempo% return?

#

when you have the item

meager elm
#

It confirms to me that I do have the key when I have it in the inventory and also confirms when I don't have it

idle cape
#

do you have any other items in your inventory that contain &6Llave del tiempo in the name? @meager elm

#

what if you add the material? Is it okay if we do that?

#

/papi parse me %checkitem_mat:TRIPWIRE_HOOK,nameequals:&6Llave del tiempo%

meager elm
#

If you add the material, you only recognize the material but not the name of the material

idle cape
#

so if you have a basic tripwire it still says yes?

#

with a clear inventory otherwise