Equipment Slots Questions

Ok...  Since the question was asked before, I read through this post.  I tried both of the scripts that were referenced there, but I got errors when trying to playtest with either of them loaded into the script editor...

This tells me that I am probably doing something wrong.  Especially since other people have been able to successfully use both scripts.

I named the script Extra_Equipment and pasted the code, unaltered.

With the Fomar script, the error reads:

Script 'Extra_Equipment' line 44: NameError occurred.

uninitialized constant Object::Game_Battler

With the Yanfly script, the error reads:

Script 'Extra_Equipment' line 352: NameError occurred.

undefined method 'load_database' for class 'Module'

Now, just because I like the way it is laid out, I would prefer to use the Yanfly script.  However, I am sure whatever I am doing incorrectly, I am doing incorrectly on both scripts.  SOOOOO.....  any help would be appreciated :-D
In both cases, those errors can only occur if either:


- a required additional script is missing


- something was cut off and you didn't copy the entire script into your script editor


- an incompatibility with another script you're already using.


- the script was added at the wrong place in the script editor.


Try testing if the same happens in a completely new script, and give us a list of the scripts already installed into your game as well as a screenshot of your script editor window with the currently installed script selected.
Yes...  I think it was an issue of knowing where to place the script...  I didn't see anything instructing me to place it under Materials.  I actually found another script (that just wasn't what I wanted) that told me where to place the scripting...

So, I tried that with both the scripts listed above and it loaded.  So, it appears that my issue was the 4th one listed :-D

Thanks for the help!  

**********EDIT**********

Next issue...

Using the Yanfly script, and the information below...  I put the areas I am referring to in Red.

I want to change "Headgear" to "Helmet", which is defaulted as item #2.  When I change it in slot #2 to say "Helmet", it still shows up as "Headgear".  If I remove item #2 from the default list and add in a new item (#5) to read helmet, I get helmet to display in the equipment screen, but even after changing the item association in notes to <equip type: 5> , I cannot select the item that is in my players inventory...

So, the problem I have is this...  I either have to use the default name, or list the default items in order to get my custom names to work properly.  

    

 

DEFAULT_BASE_SLOTS = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11]
# This hash adjusts the new equip types (past 4+). Adjust them to match
    # their names properly. You can choose to allow certain types of equipment
    # be removable or not, or whether or not optimize will affect them.
    TYPES ={
    # TypeID => ["Type Name", Removable?, Optimize?],
           0 => [   "Weapon",      true,      true],
           1 => [   "Shield",      true,      true],
           2 => [   "Headgear",    true,      true],
           3 => [   "Bodygear",    true,      true],
           4 => [   "Accessory",   true,      true],

           5 => [   "Helmet",      true,      true],
           6 => [   "Armor",       true,      true],
           7 => [   "Ring",        true,      true],
           8 => [   "Gloves",      true,      true],
           9 => [   "Boots",       true,      true],
           10 => [  "Necklace",    true,      true],
           11 => [  "Pet",         true,      true]  
    } # Do not remove this.
For some reason yanfly draws the first 5 slot names from the database terms tab.
So, if I rename these slots in Terms, it should fix the problem...

AWESOME!

Its funny that sometimes the answer is in the simplest place...  But hey, its all a learning process right?
I've moved this thread to script support. Please be sure to post your threads in the correct forum next time. Thank you.


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/equipment-slots-questions.16639/