Quote:
|
Originally Posted by excaliber7388
Excelent  I also plan to script one, I hope you don't mind me using this as a base 
|
Ofcourse you can use that as base! Just change player.weapons to an array with weapons you actually want to draw. Something that could make a selection of weapons that you'd like to draw / not to draw:
PHP Code:
temp.wlist.clear();
temp.disabled = { "-", "+"};
for ( i: player.weapons) {
for ( j: temp.disabled) {
if ( !i.name.starts( j))
temp.wlist.add( { i.name, i.image});
}
}
for ( i = 0; i < temp.wlist.size(); i ++) {
with ( findImg( 200 + i)) {
image = temp.wlist[ i][ 1];
x = start x + ( space_between_items_horizontal + 32 * ( i % ammount_of_items_horizontal));
y = start y + ( space_between_items_vertical + 32 * int( i / ammount_of_items_horizontal));
layer = 4;
}
}
Good luck with it! If you have any questions, feel free to ask.