Mudlet Vibing Script

I have a vibing script that only works some of the time, and I cannot figure out why. Unfortunately, I have no idea how to combine files and post them here, so I'm going to do it the hard way with a bunch of copy/pasting! If anyone has any idea why this does not work a majority of the time, I'd appreciate it. 



Comments

  • NizarisNizaris The Holy City of Mhaldor
    I haven't read the whole script, but I saw a salient mistake. Try this template, here:

    1. crystalism_table = {
    2.   reverberation = { --name of vibe// as a side note, reverberation
    3.     vibe_set = { --auto-vibe table// is added to the defup table
    4.       combat = false, --combat vibes// by default. So there is no
    5.       basic = false, --basic vibes// reason to change these values.
    6.       full = false, --full vibes
          },
        },
    7. },

    • Table keys should not be made into strings in Lua. No need for the quotes or brackets. 
    • Use curly braces to mark the end of each sub-table. 
    Also, just as a style note: not sure if it's an artefact of copying/pasting, but do be sure to use indentation in your tables to make your code easier to read and make edits to later. You'll be happy that you did.
    image
Sign In or Register to comment.