Still not possible to go outside wearing an outfit.
The only way this works is if there is a bit of code somewhere (which I cannot find) that adds the "bottom" and "top" tags to the currently worn outfit.
Or you could change the if statement's logic:
alternatively:
or:
also:
(
Code:
<<Clothes>>
<<if _gag or !_top or !_bottom or (!_outfit and !_top and !_bottom)>><span class="You">"I can't go out like this!"</span>
Code:
<<widget "Clothes">>
<<set _top = setup.playerCode.isWearingItemWithTags('Top')>>
<<set _bottom = setup.playerCode.isWearingItemWithTags('Bottom')>>
<<set _shoes = setup.playerCode.isWearingItemWithTags('Shoes')>>
<<set _gag = setup.playerCode.isWearingItemWithTags('Gag')>>
<<set _outfit = setup.playerCode.isWearingItemWithTags('Outfit')>>
<</widget>>
Code:
isWearingItemWithTags: (...tags) =>
setup.playerCode.itemWornWithTags(...tags).id !== 'None',
Code:
itemWornWithTags: (...tags) =>
State.variables.playerClothing
.map(id => setup.items.find(item => item.id === id))
.find(item => tags.every(tag => item.tags.includes(tag)))
|| { id: 'None', image: 'Images/Hair/None.png' },
The only way this works is if there is a bit of code somewhere (which I cannot find) that adds the "bottom" and "top" tags to the currently worn outfit.
Or you could change the if statement's logic:
<<if _gag or (!_outfit and (!_top or !_bottom))>>
alternatively:
<<if _gag or !(_outfit or !(_top and _bottom))>>
or:
<<if !(!_gag and (_outfit or !(_top and _bottom)))>>
also:
<<if !(!_gag and (_outfit or (!_top or !_bottom)))>>
(
You must be registered to see the links
are fun)
Last edited: