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.
I haven't read the whole script, but I saw a salient mistake. Try this template, here:
crystalism_table = {
reverberation = { --name of vibe// as a side note, reverberation
vibe_set = { --auto-vibe table// is added to the defup table
combat = false, --combat vibes// by default. So there is no
basic = false, --basic vibes// reason to change these values.
full = false, --full vibes
},
},
},
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.
Comments