Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Ryex on July 04, 2008, 06:58:30 pm

Title: [RESOLVED] how to stop to armor from being displayed in the normal equip menu.
Post by: Ryex on July 04, 2008, 06:58:30 pm
How do I STOP certain armor ID's from being displayed in in the Equip Item window in the equip scene?

I know how to make ONLY certain armors in a menu

I just use a loop like this right?
for i in [armor ID's that I want to display here]
Title: Re: how to stop to armor from being displayed in the normal equip menu.
Post by: Blizzard on July 05, 2008, 07:22:46 am
There is a better alternative. This piece of code:

for i in 1...$data_armors.size


You need to change it to:

for i in (1...$data_armors.size).to_a - [IDs that you want REMOVED from display]

Title: Re: how to stop to armor from being displayed in the normal equip menu.
Post by: Ryex on July 13, 2008, 05:38:17 pm
IT'S THAT SIMPLE?  :o


Wow thanks bliz