Expression Sets
Expression Sets define available MetaPed Expressions from Expression Dictionaries (YED) via expression_sets.xml
(EXPRESSION_SETS_FILE
). Expressions here will impact things such as a dress/skirt moving/flowing appropriately. Expression Sets are then referenced via MetaPed base definition, Assets, etc., as seen above in metapeds.ymt
with ExpressionSetName
expr_set_mp_bcustom_female
for mp_female
. Here’s an example of their reference in MetaPed Assets:
Here’s an example (stream-metadata.zip (5.7 KB)) of a new Expression Set expr_set_MP_BCustom_Female_02
that combines expr_set_MP_BCustom_Female
and expr_set_A_MaryLinton
:
I’ll then copy mp_female
in metapeds.ymt
to a new MetaPed definition mp_female_02
and reference expr_set_mp_bcustom_female_02
as the ExpressionSetName
:
Then we’ll add at least one MetaPed Outfit preset for mp_female_02.ymt
, which will be streamed. We’ll use the second MetaPed Outfit from cs_marylinton.ymt
. We’ll go over MetaPed Outfits and MetaPed Assets in the next section.
The end result is mp_female_02
with the default outfit preset, which looks like cs_marylinton
but with all the other mp_female
metadata (it’s also possible to set the skirt asset, e.g. drawable irnjabdb_0x8bd3c9ad
, via native _SET_META_PED_TAG
). More importantly, the dress/skirt moves and isn’t static. expr_set_A_MaryLinton
contains Component_Dress
related expressions and those move the dress/skirt properly. Therefore our custom expr_set_MP_BCustom_Female_02
also contains those since we merged the Expression Sets: