Adding Equipment Slots

Status
Not open for further replies.

JamesCalibur

Villager
Member
Joined
Jul 24, 2013
Messages
7
Reaction score
0
First Language
English
Primarily Uses
Hello, I was following what Fomar has told us so far but I'm unable to change my equipment type to one of my custom equipments, when i click on the drop box to pick what i want to set my armor as it just shows, shield, head, body, accessory. none of which are my customs, this is what the code looks like.

module Extra_Slots

 

  Slots = []

 

  Slots[5] = "Armwear"

  Slots[6] = "Legwear"

  Slots[7] = "Footwear"

 

 def equip_slots

    return [0,0,2,3,5,6,7,4,4] if dual_wield?

    return [0,1,2,3,5,6,7,4,4]

  end

end

 the rest of the code is set as default,

to summarize i can only equip armour to the preprogrammed slots. note I'm also new to the program, only had it for a week.
 

JamesCalibur

Villager
Member
Joined
Jul 24, 2013
Messages
7
Reaction score
0
First Language
English
Primarily Uses
@Tsukihime I tried that script doesn't work for me. I keep getting error reports, when i go to start a playtest i get this error

Script 'Extra_slots' line 318: NoMethodError occurred.

undefined method '[]' for nil:NilClass

so unless you know how to fix this  error and any that may follow it I will stick with Fomar's script, i just need to learn how to set it so the player can equip "gloves" as hand armour rather than accessory, or any of the rest.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
There is nothing on line 318 of yanfly's script.
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
JamesCalibur don't necro-post nor hijack someone else's topic. Please create your own.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top