How do I use the "Background Variable" option?

I would like to use a different background for the Name Entry scene depending on what kind of event called it, and it looks like the "Background Variable" option is the way to do this, but I cannot figure out how I am supposed to work with this option.

I have added a "type 3" setting and also appended "_3" to the appropriate background picture's name (making its filename Name Entry Background_3), but I can't get this background to display, even when Variable 16 is set to 3 right before the Name Entry is called.  I copied the "Lunatic Backgrounds" add-on directly into my project, right above the 'Name Input' and 'Add-On Name Input' scripts.

I've copied the relevant portion of my configuration below.  Please tell me what I'm failing to do in order to make this work!

Code:
#---        :back_type    =>  2, # 0 - normal window, 1 - gradient, 2 - picture                              # from 0        :background_variable => 16, # Set a Variable to change Window                              # from 1                # BG Type 0 settings        :type_0     =>  {           :skin     => "Window",          :opacity  => 255,         },                  # BG Type 1 settings        :type_1     =>  {          :color1   =>  [0, 0, 0, 128],          :color2   =>  [0, 0, 0, 128],          :vertical =>  false,        },                  # BG Type 2 settings        :type_2     =>  {          :picture  =>  "Name Entry Background", # Graphics/System          :opacity  =>  255,          :offset_x =>  0,          :offset_y =>  0,        },                # For First Type of Name Entry        :type_3     =>  {          :picture  =>  "Name Entry Background_3", # Graphics/System          :opacity  =>  255,          :offset_x =>  0,          :offset_y =>  0,        },                # For Second Type of Name Entry        :type_4     =>  {          :picture  =>  "Name Entry Background_4", # Graphics/System          :opacity  =>  255,          :offset_x =>  0,          :offset_y =>  0,        },
You're using it wrong. Just a reminder, you can't add new configs unless you code them in the core.

5rhneOS.png


You can also do it this way:

c6Pmkip.png
Ah, so the variable needs to be set not to an index number, but to a string equal to the name of the picture!!  With that in mind I was able to get it working.

Thank you for the help, I certainly wouldn't have figured this wrinkle out on my own.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-use-the-background-variable-option.44444/