Looking for more active discussion? Join our Discord at https://discord.gg/x2s7fY6

Need some help with a script

I know there is the whole deleteLine() thing you can do scripting wise to make lines go away, however I need help figuring out how to make it so that I don't get a prompt every time something that is deleted line wise doesn't cause a prompt to show up, any tips or ideas?

Comments

  • edited February 2014
    Here's a quick and lazy way to do it. It will get results but is by no means the best way to throttle additional prompts.

    gagLine = function ()
    deleteLine()
    gagPrompt = true
    end

    At the very top of your prompt code:

    if gagPrompt == true then
    gagPrompt = nil
    deleteLine()
    else
    doOtherStuff()
    end

    From then on, just use gagLine() where you would usually use deleteLine().
    image

    i am rapture coder
    Treyden
  • Oh @Omei, you have just made me so happy, thank you.

  • SetneSetne The Grand Tyrant
    Treyden said:
    Oh @Omei, you have just made me so happy, thank you.
    That's what they all say.

    Ingram said:
    "Oh my arms are suddenly lubed"
    RiluoTreyden
  • ElyniElyni New Zealand
    Little known fact...


    There's already deleteFull() built into mudlet, which does the exact same as what Omei suggested.
  • edited February 2014
    What! What is this madness.

    Ohhhhh, it's not listed in the official API. No wonder I've never heard of it. Very handy, though. Definitely recommend using deleteFull(), it appears to set up a temporary trigger to delete the next prompt based on the isPrompt() function, so it'll work with any system.
    image

    i am rapture coder
    ElyniVeovis
  • @Elyni and @Omei I <3 you both now for your help :)

    Omei
Sign In or Register to comment.