#Reveal midi application dialog worldscript

1 messages ยท Page 1 of 1 (latest)

misty cave
#

@dusty kestrel @half canyon @hard stone Just going to thread this to keep it readable

dusty kestrel
mossy jewelBOT
#

Edit this to change the output of the custom command 90!

misty cave
#

Hmmm

dusty kestrel
#

my midi is combining the attack and damage into one card

#

but its the chaser card he wants unhidden

misty cave
#

So which card is this?

#

Because we do want the latter card which is why clearing the former is needed

dusty kestrel
#

this is all thats in chat

misty cave
#

Delete the upper one and run again

#

It currently grabs the wrong one

dusty kestrel
misty cave
#

Can you copy paste the content string here?

dusty kestrel
#

its longer than that monitor, is there a way to select the line without having to make it go across all my monitors?

misty cave
#

I usuall just start from the start of the lower line

dusty kestrel
#

I double clicked it and it gave me a formatted thing is this it?

#

For context:

#

that poison thing is a bug for tposney lol he definitely doesn't have poison 20 times in his DR

#

FYI this is actually for @hard stone its just that I was the one that found it for them. I fully automate my damage.

misty cave
#
Hooks.on("preCreateChatMessage",(messageDoc,rawData,context,userId)=>{
    if (!messageDoc.data.content.includes('title="Choose the multiplier for the damage."')) return
    messageDoc.data.update({whisper:[]})
})

Might work? I'd test this in worldscripter real quick @hard stone to avoid the whole worldscript set up hassle for now

dusty kestrel
#

I don't think they know how to do worldscripts

misty cave
#

Hence just throwing it into worldscripter

dusty kestrel
#

want me to test it? I got my stuff setup but don't remember the exact steps lol

misty cave
dusty kestrel
#

standby

#

script macro right?

misty cave
#

correct

dusty kestrel
#

will this corrupt my world or something if its really bad?

misty cave
#

it will error on refresh and at most fuck with messages

#

Removing it will resume normal operation

dusty kestrel
#

k, so its in the world script compendium, refresh?

misty cave
#

ye

dusty kestrel
#

seems to be working for me

misty cave
#

Neat!

dusty kestrel
#

auto reveals the damage card

misty cave
#

Yep that was the plan

#

..right? ๐Ÿ˜…

dusty kestrel
#

yep

#

wonder if all my world scripts could be setup this way instead of having to edit outside lol

#

kinda like this

misty cave
#

@hard stone Solution here:

Hooks.on("preCreateChatMessage",(messageDoc,rawData,context,userId)=>{
    if (!messageDoc.data.content.includes('title="Choose the multiplier for the damage."')) return
    messageDoc.data.update({whisper:[]})
})

Throw it into worldscript. Two options for that:
A. normal way described here: https://foundryvtt.wiki/en/basics/world-scripts
B. Worldscripter module: https://foundryvtt.com/packages/world-scripter, make a script macro with the code above, enable worldscripter, throw it into the worldscripter compendium, refresh once. you are done

misty cave
dusty kestrel
#

all mine are custom css so probably not eh?

misty cave
#

I don't deal with custom css so no idea

pallid ridge
#

wait you are adding css via world script?

dusty kestrel
#

Yeppers

#

my custom advantage reminder colors

pallid ridge
#

why not just add a css file to your world and add that file to your world.json under "styles": [something.css],

dusty kestrel
#

Thats actually what I'm doing

pallid ridge
#

ok so not via script then, good

misty cave
#

In either case this seems more appropriate for #macro-polo. (I'd like to close the thread so I don't need to keep an eye on it)

dusty kestrel
#

Okies!

#

Thanks for the help!

misty cave