Need some help with a script

TreydenTreyden AlabamaMember Posts: 34
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

  • OmeiOmei Member Posts: 751 Immortal
    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
  • TreydenTreyden AlabamaMember Posts: 34
    Oh @Omei, you have just made me so happy, thank you.

  • SetneSetne The Grand Tyrant Member Posts: 835 ✭✭✭✭✭
    Treyden said:
    Oh @Omei, you have just made me so happy, thank you.
    That's what they all say.
    Love gaming? Love gaming stuff? Sign up for Lootcrate and get awesome gaming items. Accompanying video.

    Ingram said:
    "Oh my arms are suddenly lubed"
    RiluoTreyden
  • ElyniElyni New ZealandMember Posts: 147 ✭✭✭
    Little known fact...


    There's already deleteFull() built into mudlet, which does the exact same as what Omei suggested.
  • OmeiOmei Member Posts: 751 Immortal
    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
  • TreydenTreyden AlabamaMember Posts: 34
    @Elyni and @Omei I <3 you both now for your help :)

    Omei
Sign In or Register to comment.