[RESOLVED] how to stop to armor from being displayed in the normal equip menu.

Started by Ryex, July 04, 2008, 06:58:30 pm

Previous topic - Next topic

Ryex

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]
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Blizzard

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]

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Ryex

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />