#Reveal midi application dialog worldscript
1 messages ยท Page 1 of 1 (latest)
@dusty kestrel @half canyon @hard stone Just going to thread this to keep it readable
?
Edit this to change the output of the custom command 90!
Hmmm
my midi is combining the attack and damage into one card
but its the chaser card he wants unhidden
So which card is this?
Because we do want the latter card which is why clearing the former is needed
this is all thats in chat
Can you copy paste the content string here?
its longer than that monitor, is there a way to select the line without having to make it go across all my monitors?
I usuall just start from the start of the lower line
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.
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
I don't think they know how to do worldscripts
Hence just throwing it into worldscripter
want me to test it? I got my stuff setup but don't remember the exact steps lol
I'd just test it with https://foundryvtt.com/packages/world-scripter real quick as it then is just enable module, make macro with the script, throw it into the compendium from worldscripter, refresh
World Scripter, a Module available for Foundry Virtual Tabletop
correct
will this corrupt my world or something if its really bad?
it will error on refresh and at most fuck with messages
Removing it will resume normal operation
k, so its in the world script compendium, refresh?
ye
seems to be working for me
Neat!
auto reveals the damage card
yep
wonder if all my world scripts could be setup this way instead of having to edit outside lol
kinda like this
@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
World Scripter, a Module available for Foundry Virtual Tabletop
Anything that hooks on something after "ready" can be done that way. Worldscripter itself hooks onto "ready" so stuff hooking onto "ready" or earlier is not possible with it
all mine are custom css so probably not eh?
I don't deal with custom css so no idea
wait you are adding css via world script?
why not just add a css file to your world and add that file to your world.json under "styles": [something.css],
Thats actually what I'm doing
ok so not via script then, good
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)
Thank you for your help ๐