How to combine parent and child shortcut outputs (with interactive popups) into a single message in Inline Scripts? #98
Unanswered
alyssonlago
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I need help. Sorry, English is not my first language and that's why some of the code is in Portuguese. I´m creating shortcuts for Mythic GME Second Edition. These are the codes I am having issues with:
__
__
__
destino - Verificação de destino com chances ajustáveis
__
__
__
event - Gera um Evento Aleatório.
__
__
__
significado - Permite escolher uma tabela de significado para rolar.
Issue: When triggering the
destinoshortcut (which callseventif a double number ≤ Chaos*11 is rolled), the final output only shows thedestinoresult, not the combineddestino + eventresults.Expected Behavior:
Current Behavior:
Code Analysis:
destinoWorkflow:isDoubleNumber(fateRoll) && fateRoll <= chaos * 11eventviaexpand("event")[^1]eventWorkflow:Root Cause:
popups.confirm()ineventcreates a modal dialog that isn't handled properly wheneventis called programmatically viaexpand(). This interrupts the script execution, preventing the event result from being captured bydestino.Reproduction Steps:
destino 0until you get a double number ≤ Chaos*11destinoresult is showneventpopup appears but isn't attached to thedestinoexecution contextdestinooutput remains visible.Looking for solutions to:
eventfromdestino.Beta Was this translation helpful? Give feedback.
All reactions