reskate.outfit puts items on the local skater, over the outfit the player chose: a tattoo where your plugin places it, moles, a pair of glasses. Every function needs the outfit permission, except stand_ins, which needs outfit.stand_ins; calling one without its permission raises an error. See permissions.
How it works
- Slots. An item goes in a slot of the skater’s outfit, by the slot’s name (
"tattoo_legl","moles","eyewear"). Only slots whose name holdstattoo,moles,eyewearorhandare allowed: the face and skin layers, eyewear, and hand wear (the game has no menu for hand wear: a camera or a glove your plugin puts in the hand goes there).reskate.outfit.slots()lists the skater’s slots. - One plugin a slot. A slot taken by one plugin is refused to the others until it clears it.
- Covers. By default an item goes only in an empty slot: where the player wears something of their own, the player’s item stays. With
covers = trueyour item goes over theirs. - Placement. A tattoo’s first parameters say where it sits.
placementwrites up to 8 numbers over them;slots()shows what the parameters are now. - Paid items. An item sold in the game’s store is refused, whoever owns it.
- Menus. While one of the game’s menus is up, the skater is given back its own outfit, because the menus change it. Your items go back on about a second after the menu closes.
- Skaters. After a respawn or a level change the new skater comes from the player’s profile; your items are put on it again.
reskate.outfit.set(slot, item, options)
Puts item in slot, over the skater’s outfit. The item is put on within a second or two; status() says how it went.
The slot’s name, at most 48 characters, any case. The first of the skater’s slots whose name contains it is used.
The item’s name, at most 200 characters.
find() turns the end of a name into the full one.Why not:
"only tattoo, moles, eyewear and hand wear slots", "<plugin> has that slot", "the paid items are not known yet; try again in a moment", "that is a paid store item", "a placement is at most 8 finite numbers" or "asked more than 4 times in a second".false and why.
Needs the
outfit permission. Shares the budget of 4 control calls a second with skater.noclip, boost, freeze, camera.follow, ai.spawn, animation.play and board.toss.reskate.outfit.clear(slot)
Takes this plugin’s items off.
Returns nothing. When nothing is worn any more, the skater has its own outfit again.
Needs the
outfit permission. When the plugin stops, its items are cleared whether or not it calls this.reskate.outfit.find(ending)
The installed item whose name ends in ending, any case. Use it to find an item’s full name from its end, which stays the same between installs.
Needs the
outfit permission.reskate.outfit.slots()
The skater’s outfit slots as they are now, with what is in each.
Needs the
outfit permission.reskate.outfit.status()
What the outfit service is doing now, for the player or your log.
Such as
"nothing worn", "2 item(s) worn", "a game menu is up: the outfit is the game's", or "waiting: " and why.Needs the
outfit permission.What the skater wears
What the player chose for their skater, read from the selected skater preset (the first one when none is selected). It is the player’s own outfit. Items your plugin puts on withset are not in it.
reskate.outfit.worn()
The skater’s clothes and accessories, from head to foot. The body, hair, tattoos, gestures and the board are left out.
Needs the
outfit permission.reskate.outfit.board()
The parts of the skater’s board, in this order: "Deck", "Grip tape", "Grip cutout", "Trucks", "Wheels". A part the board has none of is left out.
A list of
{slot, item, title}, as worn gives them, with the part’s name as slot. Empty when the preset cannot be read.Needs the
outfit permission.reskate.outfit.on_top(items)
Wears items on top of the outfit: more than one where the outfit has one, such as a second chain, rings on both hands, or five hats. Each goes into a slot the outfit leaves empty: its own kind’s when that one is free, else one of the accessory slots, then the tattoo and face slots. The item is given that slot’s category besides its own, in memory, for this run of the game, so the game builds it from there.
Not every item loads from every slot: a top in the left hand’s slot leaves the skater with no body. So an item never tried in a slot goes on alone, and if the game reports a failed load within 0.9 s, it comes off and the next slot is tried. What loads where is kept in ReSkate.layer_slots.txt beside Skate.exe, so it is not tried again.
Items’ names, as
find and an item grid’s keys give them, in the order they go on: at most 32, each at most 200 characters. It replaces your plugin’s list. nil or {} takes them all off.With
false: "<item> is a paid store item" for an item sold in the game’s store, whoever owns it; "the paid items are not known yet; try again in a moment"; or "asked more than 4 times in a second".Needs the
outfit permission. At most 4 calls a second, a budget shared with the plugin’s other control calls. Like set, the items go on the skater in the world: while one of the game’s menus is up the skater is the game’s own, and the menus’ preview skater never shows them. Other players do not see them, as their game holds items to their slots. When your plugin stops, its items come off.reskate.outfit.on_top_state()
How your items on top are doing.
Needs the
outfit permission.reskate.outfit.title(key)
An item’s name as the game shows it. It is the item’s title in the game’s catalog. A mod’s item has no catalog entry, so for one it is the title an item grid showed this session. Failing both, it is the key made readable: without an Own_ at its start, and with spaces for underscores.
Needs the
outfit permission.Stand-ins
Another player may wear an item from a cosmetics mod this PC does not have. The game cannot draw it, so something stands in for it: by default the game’s own default item for that slot, or nothing.reskate.outfit.stand_ins lets your plugin choose what stands in instead, from the items installed on this PC.
Only what this PC shows of other players changes. Nothing is sent, saved or owned, and the other player sees their own item. A paid store item never stands in, whatever your lists say.
reskate.outfit.stand_ins(policy)
With
false: "\"<plugin>\" chooses the stand-ins already" while another plugin holds the choice, or "asked more than 4 times in a second"."random" picks from the player’s whole outfit, the slot and the missing item as well as the seed. A player keeps the same stand-ins for as long as they wear the same outfit, so nothing flickers each time they put it on again, and different players and slots get different ones. Each PC with the same plugin, the same seed and the same items installed picks the same.
Where none of your items fits, the game’s own default for the slot stands in, unless exclude matches it.
*, and a seed out of range raise an error.
Needs the
outfit.stand_ins permission. One plugin holds the choice at a time. Every change dresses the players you see again, so stand_ins shares the budget of 4 calls a second with outfit.set and the other control calls. When your plugin stops, the game’s defaults come back.