#Support fps420
1 messages · Page 1 of 1 (latest)
I did format the message
Providing the refectory you made would be helpful along with example messages you want to match to
How do i replace the actual item with a variable
§r§6[Bazaar] §r§7§r§eYour §r§aBuy Order §r§efor §r§a13§r§7x §r§d§lUltimate Wise I §r§ewas filled!§r
This is what i tried to use:
§r§6[Bazaar] §r§7§r§eYour §r§aBuy Order §r§efor
I would like it to match up with : Your sell offer for ''x'' was filled!
question: How do regex' require the whole message to be identical to trgger?
@vivid abyss You seem to know alot about this, do you know what to do ||Soz for ping||
Np, it shouldn’t require the whole message, but try:
§r§6[Bazaar] §r§7§r§eYour §r§aBuy Order §r§efor .+
Try that ^
- included?
doesnt work atm
can you send a screenshot of your notification page
for some reason the .+ is colored, maybe thats a problem
nah that should be fine
oh
im dumb
put a \Q at the front like this:
\Q§r§6[Bazaar] § and so on...
@rough bolt
alr
if that does't work, try putting backslashes in front of the brackets around [bazaar] like this
§r§6\[Bazaar\] § and so on...
yeah im dumb try with the slashes in front of the square brackets
like that?
yep
It works, could you please explain what the slashes do
so regex uses some symbols like [,],(,) as special instructions, the same way that .+ means match anything
putting a slash before it tells regex to treat it as a normal symbol
so how would i use this for sell offer?
you should be able to copy the sell offer message, and cut off the message after it says sell offer, and then put a .+ there
and i put the slashes outside of Bazaar, and my I ask why just bazaar
because thats the only place the square brackets [] are
if you did another message with more square brackets, you'd have to put slashes before them too
So if i understand correctly, square brackets are a special symbol and you need to clarify its not
yeah
they can be useful, for example you can make parts of the message display in the notification.
try this:
trigger message:
§r§6\[Bazaar\] §r§7§r§eYour §r§aBuy Order §r§efor §r(.+) §r§ewas filled!§r
display text:
§cBuy Order! %%1%%
what if I surround like this : \[Bazaar]\
the slash needs to be just before the bracket, like this: \[Bazaar\]
it can be easier to paste the message into discord or something to edit it, since editing it in the skytils menu is annoying
ok ty!
np 
One last question: How to I set the title to chroma or smth, instead of red
copy in the color codes, e.g. §4 is dark red, §6 is gold, §z should be chroma if you have SBA
alr ty
what website is that
An up-to-date list of all Minecraft color codes along with an easy-to-use text generator for previewing and testing messages. Color codes work on all Minecraft messages including from Bukkit, nicknames, Essentials, and server MOTDs.
does skytils require § or can i use &
alr ty
np!
the funny thing is i can normally type it §§§§ but mc will not accept it lmao
yea lol
Now i cant paste it either- any ideas why?
Not sure, are you pasting it into the notification thingy?
Sorry I’m not sure then
When I paste it just says 'v'
Make sure you’re just copying the text and nothing else
@vivid abyss if it helps im on a mac
Try typing in anything, save and exit the gui and close mc, then go into your config at .minecraft/config/skytils/customnotifications.json
And edit it mainually
do i need to restart MC for the changes to take plac
Maybe idk
everytime i make a change skytils reverts it
Try closing the game before you edit it
Hi, this may be a lil complicated but can you append parts of the trigger into the regex (So I can see what item filled etc)
@zenith venture do you maybe know how? IM soz for ping
Well you can capture a group but idk if you can display the group in the notification
please tell me what you mean
Capture group would capture the words of the item that was bought/sold
But I don’t think that group can then be displayed
SO i have a working regex but i cant understand it
this displays exactly what got sold on screen
I guess you can display the captured group
so um what do the %%1%% mean, im confused
Group 1 idk
and (.+) captures what is in between?
Yes
so the %%x%% indicates which group, so if i had 1 (.+) 2 (.+) 3 (.+) 4 (.+) 1, 2, 3, and four would be the groups in the %%x%%?
Probably. Idk haven’t used this for a while