
t was never defined, but tables return nil for undefined keys. Surprisingly (to some), this does not error. You access and assign table values with the operator, similar to many other languages. Lists can be explicitly declared using braces: list =. That's why it provides a few syntactic shorthands for dealing with such constructs, as well as functions dealing with issues regarding those subjects.
Fortunately, it's not that much of an issue, now that an innocent mistake doesn't crash POL anymore, but it would still help to know some tricks to getting around in this language.Īs many interpreted scripting languages, Lua has a focus on list management and string manipulation. well, odd, I thought I'd write up my experiences learning Lua to help others avoid some Lua beginner's mistakes. These lines should be towards the top of your script.Since Lua will be of interest to anyone with moderate programming skills, but at the same time has some oddities that programmers from other languages or environments will find.
For Windower, edit the /scripts/init.txt with the following two lines. These lines should be towards the top of your Addons section.
For Ashita, edit the /scripts/.txt (it’s usually called default.txt unless you’ve customized it) with the following two lines. These lines can be added anywhere in the file. Update your init script to automatically load the Renamer addon. Download the Nocturnal Souls NPC list (see below) and place it in the /addons/renamer/lists directory. For Windower, navigate into renamer-master/windower/Addons/renamer and copy the a from the zip file and place it into your /addons/renamer directory. For Ashita, navigate into renamer-master/ashita/v3 and copy the a from the zip file and place it into your /addons/renamer directory. Open the renamer.1.2.zip that you downloaded. v1.2 is the current version and works with Ashita v3 and Windower v4. Create a new directory in the /addons/renamer directory called lists. Create a new directory in the /addons directory of Windower or Ashita called renamer. Renamer works with both Windower and Ashita and installs just like any other add-on. Without it, everything that’s custom simply shows up as NPC… and that’s not very cool. Renamer is a handy addon that allows players to see the custom NPC names for custom content on Nocturnal Souls. Enabling the Renamer Addon What is Renamer?