Solved Sign "IS" bug?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ChisleLP

Well-Known Member
Jan 26, 2017
789
60
28
26
Germany
Hello. My skript going crazy... they won't check the "is" or somethings that i not understand what the problem its.

Yeah i already try with debugs. its still right. but... he wont... i was try around 20 minutes now i give up. need just help >_<


Skript Version: Skript 2.2 Fixes v9b
Skript Author: Njol
Minecraft Version: 1.9
---
Full Code:
code_language.skript:
on rightclick on sign:
    broadcast "%line 1%"
    broadcast {@replaceto}
    "%line 1%" is colored {@replaceto}
    broadcast "hi"

Options:
        replaceto: "&8[&l&aStore&8]"
EDIT:
I tested around little more... i try:
code_language.skript:
"%line 1%" is "&8[&l&aStore&8]":
still he won't output the broadcast "HI". so i try "contains" instead "is", still same. Huch? What is now wrong? >_<

Double EDIT:
More little testing around... Trying to keep up...
code_language.skript:
"%uncolored line 1%" is uncolored {@replaceto}:
works... but i need check with color... >_<



Errors on Reload:
Nothings


Other Useful Info:

Addons using (including versions):
MundoSK, WildSkript, SQLibrary, SkQuery, ExtrasSK, TuSKe, RandomSK, ProtocolLib, SkStuff, Umbaska

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? No
What other methods have you tried to fix it? "Contains" or some other stuff....


Pics >_<


#With Debugs Message
upload_2017-3-23_1-39-43.png

Dont watch this quotes (") its some buggys... with broadcast.

This is how look by Full Code.
upload_2017-3-23_1-42-11.png
 
Last edited:
Have you tried without any "colored" or "uncolored"?

code_language.skript:
line 1 is {@replaceto}
# or
"%line 1%" is {@replaceto}
 
Just try it with if else stuff. I had the same bug to my signs and then I used normal if else things like this:

code_language.skript:
Options:
        replaceto: &8[&l&aStore&8]

on rightclick on sign:
    broadcast "%line 1%"
    Broadcast "%{@replaceto}%"
    If line 1 is "%{@replaceto}%":
        broadcast "hi"

Also I have now used %...% to convert the option into a text so skript can compare it properly :emoji_wink: just try it out and give me feedback please.
 
code_language.skript:
options:
    replaceto: &8[&a&lStore&8]
on rightclick on sign:
    line 1 of the clicked block is "{@replaceto}":
        broadcast "Yes"
    else:
        broadcast "No"

Tested and Worked

Future reference:

The doc states to use "Line number of clicked block is" so colored/uncolored doesn't need to be used as it is testing for an exact value
 
Last edited by a moderator:
  • Like
Reactions: Snow-Pyon
The sign needs to have &a&l for the colour, which you can see is not the case. Remove the &l from the code and it will work..

My question to you, Are you even trying?
 
The sign needs to have &a&l for the colour, which you can see is not the case. Remove the &l from the code and it will work..

My question to you, Are you even trying?
Oh sh*t....


code_language.skript:
Options:
        replaceto: "&8[&l&aStore&8]"

There is a mistake... Sh*t... Thanks you >_<
 
Status
Not open for further replies.