#PLEASE HELP ME WITH THIS ERROR!

1 messages · Page 1 of 1 (latest)

merry thunder
#

a) you can't set a string .... come on
b) i think you're using pretty quotes in your code, you need to use normal quotes

novel flower
#

wdym by "normal quotes"?

merry thunder
#

send your code for that line, ill show you

novel flower
#

alright

#

item spawn:
if name of event-item is set:
set display name of event-entity to name of event-item
else:
set x%{_amount)% {_type} to "%type of event-item%"
set display name of event-entity to x%{_amount}% {_type} in strict proper case

#

here it is

merry thunder
#

set display name of event-entity to x%{_amount}% {_type} in strict proper case <-- this doesn't even match the error

novel flower
#

its at line 6

merry thunder
#

thats nice, but the line you just sent is not the same one in the error

novel flower
#

set display name of event-entity to "x%{_amount}% {_type}" its this one ig

#

its literally what the error says in line 6

merry thunder
#

that line runs fine for me

novel flower
#

i think it might be cuz of line 5

#

or the other ones

#

but im not sure

#

so i replaced the line: set display name of event-entity to {_type} in strict proper case with set display name of event-entity to {_type} in strict proper case set display name of event-entity to "x%{_amount}% {_type}" in strict proper case

#

and now the hologram above the block says: X<none> {_type}

merry thunder
#

cause you never set {_amount}
and {_type} you never wrapped in %%

novel flower
#

how do i set the {_amount}

merry thunder
#

you dont know how to set a variable?

#

set {_amount} to...

novel flower
#

set {_amount} to..?

#

do i just have to say the number or?

#

i just dont really know how to work with variables

#

some help could really come in handy

merry thunder
novel flower
#

i read it but i still dont know to set the variable to the number of items

novel flower
#

so like set {_amount} to item types ?

#

does that work?

#

nvm it doesnt

#

i tried setting the variable to what says in the doc but it still didnt work

merry thunder
#

what did you try?

novel flower
#

set {_amount} to the number of %item types% of %inventories%

merry thunder
#

oh jesus

#

let me give you a tutorial so you can learn how to read skript syntaxes