through plugin command i send : the command | the id (args 0) Int | clothing1 (args 1) string | clothing2 (args 2) string
Should return;
0: null
1: Object
enabled: true
name: "a1b3b"
2: Object
enabled: true
name: "a1b3d"
When using console.log($gameActors._data[clothingactorid]._clothingGloves
);
then i just call
_clothingGloves[0] is used to load a specific image layer.. so by default i set it to 0..
when i want to display the gloves nbr 1 on that layered image i set the index to 1
when i want to display the gloves nbr 2 on that layered image i set the index to 2
and to remove the gloves from that layer i set index to 0
doing the push line repeats the the args 1 and 2 over and over.. while i only need 2 as the args length = 2
but if i comment it and uncomment the line above... i lose the option to add name: args but it stops at 2 (the number of args i need to add)
Im not sure how to make the push line works.. (as i do need more than just index:args)
Code:
this._clothingGloves = [null];
var clothingactorid = args[0];
var x = 1;
var y = 1;
for (var i = 0; i < args.length-1; i++) {
//$gameActors._data[clothingactorid]._clothingGloves[x]=args[y];
$gameActors._data[clothingactorid]._clothingGloves.push({ name: args[y], enabled: true});
x=x+1
y=y+1
}
Should return;
0: null
1: Object
enabled: true
name: "a1b3b"
2: Object
enabled: true
name: "a1b3d"
When using console.log($gameActors._data[clothingactorid]._clothingGloves
);
then i just call
_clothingGloves[0] is used to load a specific image layer.. so by default i set it to 0..
when i want to display the gloves nbr 1 on that layered image i set the index to 1
when i want to display the gloves nbr 2 on that layered image i set the index to 2
and to remove the gloves from that layer i set index to 0
doing the push line repeats the the args 1 and 2 over and over.. while i only need 2 as the args length = 2
but if i comment it and uncomment the line above... i lose the option to add name: args but it stops at 2 (the number of args i need to add)
Im not sure how to make the push line works.. (as i do need more than just index:args)