Hide then unhide sections of output

Hi everyone,

I'm trying to make it so that when the player enters a fight the existing output on the screen is hidden and then when the fight is over the existing output is unhidden with the fight outcome after it and the game goes back to normal. I know I can't use ClearScreen because that seems to delete the existing content completely and I need to be able to get it back. But I only want that room's worth of content up until when the player entered the fight.

I know about the StartNewOutputSection() then EndOutputSection then HideOutputSection method but that seems to delete the content like ClearScreen does. Maybe there's some way of using this JS.uiHide ("#divOutputAlign3") followed by JS.uiShow ("#divOutputAlign3") for all the divOutputs on the page so far but...

  1. I don't know how to tell what range of number outputs have been created (obviously it won't always be 3)
  2. I don't know how to code them all to hide and then show because there could be a lot of them
  3. I don't know how to get the game to then show the fight outcome at the end and go back to playing like normal

I read this post and this linked post which seem like they're related to my problem but I'm not good enough at Quest code to really understand what's going on...

Thank you so much to anyone who is able to help!


This topic is now closed. Topics are closed after 14 days of inactivity.

Support

Forums