So I'm looking for a way to modify specific member-based arrays, for example.
Clothing being used.
<<set $Dressed_clothes = {
top: ['White T-shirt']
}>>
List of top clothes available on inventory.
<<set $player_Tops = ['Black T-shirt', 'Black top']>>
And on the wardrobe menu.
Upper body:<<= $clothes.top[0]>>
Now the area of shirts and tops traversing the array of clothes of this class available, and setting them as used.
<<for _i, _tops range $player_Tops>>\
[[_tops|Closet]]<br>
<</for>>\
In that part I'm a little lost, it's done in some parts, first bring the used clothes to the array of available clothes removing it from the array, and then put the selected clothes in place of the used clothes, the same. I tried a push and shift scheme but they are not exact, maybe splice()? I'm still getting acquainted with JS.
Note: I would like to know this in JS as well.