#(misquoth) Can't get a semicolon into a book

52 messages · Page 1 of 1 (latest)

trail seal
mighty sandalBOT
#

(misquoth) Can't get a semicolon into a book

mighty sandalBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

trail seal
distant saddle
#

!t co

gentle galeBOT
# distant saddle !t co
Cannot Specify Searched Tag

Multiple possible tags: <ElementTag.cos>, <&co>, <ElementTag.acos>, <SkillAPIClassTag.icon>, <DiscordChannelTag.id>, <DiscordCommandTag.id>, <DiscordGroupTag.id>, <DiscordInteractionTag.id>, <DiscordMessageTag.id>, <DiscordReactionTag.id>, <DiscordRoleTag.id>, <DiscordUserTag.id>, <ElementTag.color[<color>]>, <EntityTag.color>, <ItemTag.color>, <MaterialTag.count>, <color[<color>]>, <ColorTag.hex>, <ColorTag.red>, <ColorTag.rgb>, ...

distant saddle
#

!t &co

gentle galeBOT
distant saddle
#

this colon?

shell sedge
#

there's no reason to escape a ;

distant saddle
#

btw why you constructing list that weird way

quasi coyote
# trail seal

slightly unrelated but that font/texture pack looks amazing

shell sedge
#

!object list

gentle galeBOT
# shell sedge !object list

A ListTag is a list of any data. It can hold any number of objects in any order.
The objects can be of any Denizen object type, including another list.

List indices start at 1 (so, the tag 'get[1]' gets the very first entry)
and extend to however many entries the list has (so, if a list has 15 entries, the tag 'get[15]' gets the very last entry).

Inputs that accept list indices will generally accept 'first' to mean '1', 'last' to mean the last entry in the list,
or negative numbers to automati...

Prefix

li

Base Type

ElementTag

Format

The identity format for ListTags is each item, one after the other, in order, separated by a pipe '|' symbol.
For example, for a list of 'taco', 'potatoes', and 'cheese', it would be 'li@taco|potatoes|cheese|'
A list with zero items in it is simply 'li@',
and a list with one item is just the one item and a pipe on the end.

If the pipe symbol "|" appears in a list entry, it will be replaced by "&pipe",
similarly if an ampersand "&" appears in a list entry, it will be replaced by "&amp".
This is a subset of Denizen standard escaping, see !language Escaping System.

shell sedge
#

the semicolon isn't used at all for listtag format, it wouldnt break anything the same as if it were a colon or the letter L.

#

if it's breaking pages unexpectedly, you could share a debug to show what book was input as the value

#

!debug

gentle galeBOT
# shell sedge !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

plush verge
#

@vale valley are you alive

frozen island
#

monkey already know

trail seal
#

full script paste

trail seal
plush verge
#

it's because of the way you're constructing the book

#

do <item[virtualBook_].with_single[book_pages=<[mytext]>]> instead

trail seal
#

Ooo

trail seal
#

no dice

#

same issue

trail seal
trail seal
#

ok, I've found that removing the tag <&font[uroboros:gomono]> from the text fixes the issue. However, how should I apply the font to the entry without breaking the text?

distant saddle
trail seal
#

for the first one, anyway

frozen island
#

Why dont you use a book script?

#

!lang book script

gentle galeBOT
# frozen island !lang book script

Book script containers are similar to item script containers, except they are specifically
for the book items. They work with with the ItemTag object, and can be fetched
with the Object Fetcher by using the ItemTag constructor book_script_name
Example: - give <player> my_book


Book_Script_Name:

    type: book

    # The 'custom name' can be anything you wish.
    # | All book scripts MUST have this key!
    title: custom name

    # The 'custom name' can be anything you wish.
    # | All book scripts MUST have this key!
    author: custom name

    # Defaults to true. Set to false to spawn a 'book and quill' instead of a 'written book'.
    # | Some book scripts might have this key!
    signed: true/false

    # Each -line in the text section represents an entire page.
    # To cre

...

Group

Script Container System

trail seal
#

So... I'll try that- but it seems that this might be a bug?

#

seeing that it seems to be an issue cause by the font tag it might do the same thing... testing.

#

OK, that worked. However that seems like extra code just to allow the semi colon.

#

this would still be an issue, if I wanted to dynamically change the contents of a book and wanted to ue a semicolon in the text.

#

I do this a lot actually, I just haven't had any npc's use a semi colon yet (I use books for NPC chats)

minor roost
#

Seems to work fine for me /ex adjust <player> show_book:<item[written_book].with[book_author=Aya;book_title=a].with_single[book_pages=12;3]>?

#

Also yeah something like that should definitly be in a book/data script instead of hard-coded in like that

trail seal
#

I think I might have been making a similar mistake regarding lists / list_single - Thanks - I'll open a new one if I have issues.

#

Thanks