[Constants]
global persist $var1 = 0
global persist $var2 = 0
global persist $var3 = 0
global persist $var4 = 0
global persist $var5 = 0
global persist $var6 = 0
global persist $var7 = 0
global persist $var8 = 0
global persist $var9 = 0
global persist $var10 = 0
global persist $var11 = 0
global persist $var12 = 0
global persist $var13 = 0
global $mod_active = 0

[Present]
post $mod_active = 0

[KeySwitchVar1]	
condition = $mod_active == 1
Key = ctrl no_shift no_alt 1
type = cycle
$var1 = 0,1,2,3,4

[KeySwitchVar2]
condition = $mod_active == 1
Key = ctrl no_shift no_alt 2
type = cycle
$var2 = 0,1,2,3

[KeySwitchVar3]
condition = $mod_active == 1
Key = ctrl no_shift no_alt 3
type = cycle
$var3 = 0,1,2

[KeySwitchVar4]
condition = $mod_active == 1
Key = ctrl no_shift no_alt 4
type = cycle
$var4 = 0,1

[KeySwitchVar5]
condition = $mod_active == 1
Key = ctrl no_shift no_alt 5
type = cycle
$var5 = 0,1,2

[KeySwitchVar6]
condition = $mod_active == 1
Key = ctrl no_shift no_alt 6
type = cycle
$var6 = 0,1

[KeySwitchVar7]
condition = $mod_active == 1
Key = ctrl no_shift no_alt 7
type = cycle
$var7 = 0,1

[KeySwitchVar8]
condition = $mod_active == 1
Key = no_ctrl shift no_alt 1
type = cycle
$var8 = 0,1,2,3,4,5,6,7

[KeySwitchVar9]
condition = $mod_active == 1
Key = no_ctrl shift no_alt 5
type = cycle
$var9 = 0,1,2

[KeySwitchVar10]
condition = $mod_active == 1
Key = no_ctrl shift no_alt 6
type = cycle
$var10 = 0,1,2

[KeySwitchVar11]
condition = $mod_active == 1
Key = no_ctrl shift no_alt 2
type = cycle
$var11 = 0,1,2,3,4,5,6,7

[KeySwitchVar12]
condition = $mod_active == 1
Key = no_ctrl shift no_alt 3
type = cycle
$var12 = 0,1,2,3,4,5,6,7

[KeySwitchVar13]
condition = $mod_active == 1
Key = no_ctrl shift no_alt 4
type = cycle
$var13 = 0,1,2,3,4,5,6,7

; Bra *****************************
[TextureOverrideBra01]
hash = b521b761
match_first_index = 41979
handling = skip
if $var1 < 4
	vb0 = ResourceBra1VB
	ib = ResourceBra1IB
	run = CommandListChangeColor1
	drawindexed = auto
endif
if $var1 < 3
	vb0 = ResourceBra8VB
	ib = ResourceBra8IB
	run = CommandListChangeColor1
	drawindexed = auto
endif
if $var5 < 1
	vb0 = ResourceNeck1VB
	ib = ResourceNeck1IB
	run = CommandListChangeColor1
	drawindexed = auto
endif

[TextureOverrideBra02]
hash = 77d24938
match_first_index = 0
handling = skip
if $var1 < 1
	vb0 = ResourceBra2VB
	ib = ResourceBra2IB
	run = CommandListChangeColor1
	drawindexed = auto
endif

[TextureOverrideBra03]
hash = 77d24938
match_first_index = 1791
handling = skip
if $var1 < 1
	vb0 = ResourceBra3VB
	ib = ResourceBra3IB
	run = CommandListChangeColor1
	drawindexed = auto
endif

[TextureOverrideBra04]
hash = ae1bab6b
match_first_index = 0
handling = skip
if $var1 < 2
	vb0 = ResourceBra4VB
	ib = ResourceBra4IB
	run = CommandListChangeColor1
	drawindexed = auto
endif

[TextureOverrideBra06]
hash = b521b761
match_first_index = 53922
handling = skip
if $var1 < 3
	vb0 = ResourceBra6VB
	ib = ResourceBra6IB
	run = CommandListChangeColor1
	drawindexed = auto
endif

[TextureOverrideBra07]
hash = b521b761
match_first_index = 36105
handling = skip
if $var1 < 3
	vb0 = ResourceBra7VB
	ib = ResourceBra7IB
	run = CommandListChangeColor1
	drawindexed = auto
endif
if $var6 < 1
	vb0 = ResourceNeck2VB
	ib = ResourceNeck2IB
	run = CommandListChangeColor1
	drawindexed = auto
endif

[TextureOverrideBra08]
hash = b521b761
match_first_index = 52680
handling = skip

[TextureOverrideBra09]
hash = 1cd55ca1
match_first_index = 0
handling = skip

[TextureOverrideBra10]
hash = ae1bab6b
match_first_index = 792
handling = skip
ResourceBakNVS = ref vs-cb2
if $var7 == 1
	handling = skip
	vs-cb2 = ref ResourceBakVS
	vb0 = ResourceFlower5VB
	ib = ResourceFlower5IB
	run = CommandListChangeColor2
	drawindexed = auto
endif
vs-cb2 = ref ResourceBakNVS

; Skirt *****************************
[TextureOverrideSkirt01];Down Line
hash = cbb83837
match_first_index = 0
handling = skip
if $var2 < 1
	vb0 = ResourceSkirt6VB
	ib = ResourceSkirt6IB
	run = CommandListChangeColor8
	run = CommandListDrawCostume1
endif

[TextureOverrideSkirt02];Down back
hash = cbb83837
match_first_index = 900
handling = skip
if $var2 < 1
	vb0 = ResourceSkirt3UVB
	ib = ResourceSkirt3UIB
	run = CommandListChangeColor8
	run = CommandListDrawCostume1
endif

[TextureOverrideSkirt03];Down
hash = cbb83837
match_first_index = 155193
handling = skip
if $var2 < 1
	vb0 = ResourceSkirt3VB
	ib = ResourceSkirt3IB
	run = CommandListChangeColor8
	run = CommandListDrawCostume1
endif

[TextureOverrideSkirt04];Chain
hash = cbb83837
match_first_index = 4974
if $var2 > 2
	handling = skip
endif

[TextureOverrideSkirt05];Up Line
hash = cbb83837
match_first_index = 4164
handling = skip
if $var2 < 3
	vb0 = ResourceSkirt5VB
	ib = ResourceSkirt5IB
	run = CommandListChangeColor8
	run = CommandListDrawCostume1
endif

[TextureOverrideSkirt06];Leaf
hash = cbb83837
match_first_index = 66240
run = CommandListChangeColor1
if $var2 > 2
	handling = skip
endif

[TextureOverrideSkirt07];Jwel
hash = cbb83837
match_first_index = 66576
if $var2 > 2
	handling = skip
endif

[TextureOverrideSkirt08];Flower1
hash = cbb83837
match_first_index = 76896
if $var2 > 0
	handling = skip
endif

[TextureOverrideSkirt09];Flower2
hash = cbb83837
match_first_index = 77226
handling = skip
if $var2 < 1
	vb0 = ResourceFlower1VB
	ib = ResourceFlower1IB
	run = CommandListChangeColor1
	drawindexed = auto
	vb0 = ResourceFlower2VB
	ib = ResourceFlower2IB
	run = CommandListChangeColor1
	drawindexed = auto
	vb0 = ResourceFlower3VB
	ib = ResourceFlower3IB
	run = CommandListChangeColor1
	drawindexed = auto
else if $var2 < 2
	vb0 = ResourceFlower2VB
	ib = ResourceFlower2IB
	run = CommandListChangeColor1
	drawindexed = auto
	vb0 = ResourceFlower3VB
	ib = ResourceFlower3IB
	run = CommandListChangeColor1
	drawindexed = auto
else if $var2 < 3
	vb0 = ResourceFlower3VB
	ib = ResourceFlower3IB
	run = CommandListChangeColor1
	drawindexed = auto
endif

[TextureOverrideSkirt10];Belt
hash = cbb83837
match_first_index = 142188
run = CommandListChangeColor3
handling = skip
if $var2 < 3
	vb0 = ResourceBelt1VB
	ib = ResourceBelt1IB
	run = CommandListChangeColor3
	run = CommandListDrawCostume2
endif

[TextureOverrideSkirt11];Center
hash = cbb83837
match_first_index = 147261
handling = skip
if $var2 < 2
	vb0 = ResourceSkirt2VB
	ib = ResourceSkirt2IB
	run = CommandListChangeColor7
	run = CommandListDrawCostume2
else if $var2 < 3
	vb0 = ResourceSkirt4VB
	ib = ResourceSkirt4IB
	run = CommandListChangeColor7
	run = CommandListDrawCostume2
endif

[TextureOverrideSkirt12];Up
hash = cbb83837
match_first_index = 143850
handling = skip
if $var2 < 3
	vb0 = ResourceSkirt1VB
	ib = ResourceSkirt1IB
	run = CommandListChangeColor3
	run = CommandListDrawCostume2
endif

[TextureOverrideSkirt13];Down Line Back
hash = cbb83837
match_first_index = 154293
if $var2 > 0
	handling = skip
endif

[TextureOverrideSkirt14];UpU
hash = cbb83837
match_first_index = 150072
if $var2 > 2
	handling = skip
endif

; Hand *****************************
[TextureOverrideHand01];Hand Back
hash = 2b2da425
match_first_index = 0
run = CommandListChangeColor9
if $var5 > 0
	handling = skip
endif

[TextureOverrideHand02];Hand
hash = 2b2da425
match_first_index = 59190
run = CommandListChangeColor9
if $var5 > 0
	handling = skip
endif

[TextureOverrideHand03]
hash = 2b2da425
match_first_index = 45504
if $var5 > 0
	handling = skip
endif

[TextureOverrideHand04];Hand & Back
hash = 2b2da425
match_first_index = 57432
run = CommandListChangeColor4
if $var5 > 0
	handling = skip
endif

[TextureOverrideHand05];Hand Chain
hash = 2b2da425
match_first_index = 6180
run = CommandListChangeColor5
if $var6 > 0
	handling = skip
endif

[TextureOverrideHand06]
hash = 2b2da425
match_first_index = 32184
run = CommandListChangeColor5
if $var6 > 0
	handling = skip
endif

[TextureOverrideHand07]
hash = 09eec12e
match_first_index = 5748
if $var5 > 0
	handling = skip
endif

[TextureOverrideHand08]
hash = 09eec12e
match_first_index = 6168
if $var5 > 0
	handling = skip
endif

[TextureOverrideHand09]
hash = 09eec12e
match_first_index = 0
if $var6 > 0
	handling = skip
endif

[TextureOverrideHand10]
hash = 34479f1f
if $var5 > 1
	handling = skip
endif

; Belt *****************************
[TextureOverrideBelt01]
hash = 2b2da425
match_first_index = 1242
run = CommandListChangeColor5
if $var6 > 0
	handling = skip
endif

[TextureOverrideBelt02];Belt
hash = 2b2da425
match_first_index = 30264
run = CommandListChangeColor5
if $var6 > 0
	handling = skip
endif

; Back *****************************
[TextureOverrideBack01];Back Diamond
hash = b521b761
match_first_index = 1674
if $var6 > 0
	handling = skip
endif

[TextureOverrideBack02];Back Gold
hash = 2b2da425
match_first_index = 4848
if $var6 > 0
	handling = skip
endif

[TextureOverrideBack03];Back Gold
hash = 2b2da425
match_first_index = 5946
if $var6 > 0
	handling = skip
endif

[TextureOverrideBack04];Back Diamond
hash = 2b2da425
match_first_index = 31944
if $var6 > 0
	handling = skip
endif

[TextureOverrideBack05];Back Blue
hash = 7c2dc680
match_first_index = 0
if $var6 > 0
	handling = skip
endif

; Shoes *****************************
[TextureOverrideShoes01]
hash = 2b2da425
match_first_index = 28824
if $var4 > 0
	handling = skip
endif

[TextureOverrideShoes02]
hash = 2b2da425
match_first_index = 29304
if $var4 > 0
	handling = skip
endif

[TextureOverrideShoes03]
hash = 2b2da425
match_first_index = 35064
if $var4 > 0
	handling = skip
endif

[TextureOverrideShoes04]
hash = 2b2da425
match_first_index = 48624
if $var4 > 0
	handling = skip
endif

[TextureOverrideShoes05]
hash = 2b2da425
match_first_index = 54102
if $var4 > 0
	handling = skip
endif

[TextureOverrideShoes06]
hash = 2b2da425
match_first_index = 56370
if $var4 > 0
	handling = skip
endif

; Nail *****************************
[TextureOverrideNail1]
hash = 1cd55ca1
if $var4 > 0
	handling = skip
endif

; Panty *****************************
[TextureOverridePanty01]
hash = b521b761
match_first_index = 55692
handling = skip
ResourceBakNVS = ref vs-cb2
if $var3 < 1
	vs-cb2 = ref ResourceBakVS
	vb0 = ResourcePanty1VB
	ib = ResourcePanty1IB
	run = CommandListChangeColor4
	run = CommandListDrawCostume2
else if $var3 == 1
	handling = skip
	vs-cb2 = ref ResourceBakVS
	vb0 = ResourceFlower4VB
	ib = ResourceFlower4IB
	run = CommandListChangeColor1
	drawindexed = auto
endif
vs-cb2 = ref ResourceBakNVS

[TextureOverridePanty02]
hash = b521b761
match_first_index = 57276
handling = skip
ResourceBakNVS = ref vs-cb2
if $var3 < 1
	vs-cb2 = ref ResourceBakVS
	vb0 = ResourcePanty2VB
	ib = ResourcePanty2IB
	run = CommandListChangeColor4
	run = CommandListDrawCostume2
endif
vs-cb2 = ref ResourceBakNVS

[TextureOverridePanty03]
hash = b521b761
match_first_index = 306
handling = skip
ResourceBakNVS = ref vs-cb2
if $var3 < 1
	vs-cb2 = ref ResourceBakVS
	vb0 = ResourcePanty3VB
	ib = ResourcePanty3IB
	run = CommandListChangeColor4
	run = CommandListDrawCostume2
endif
vs-cb2 = ref ResourceBakNVS

[TextureOverridePanty04]
hash = b521b761
match_first_index = 0
handling = skip
ResourceBakNVS = ref vs-cb2
if $var3 < 1
	vs-cb2 = ref ResourceBakVS
	vb0 = ResourcePanty4VB
	ib = ResourcePanty4IB
	run = CommandListChangeColor6
	run = CommandListDrawCostume2
endif
vs-cb2 = ref ResourceBakNVS

; Neck *****************************
[TextureOverrideNeck01]
hash = b521b761
match_first_index = 41583
run = CommandListChangeColor5
if $var6 > 0
	handling = skip
endif

[TextureOverrideNeck02]
hash = 0ec26a8f
match_first_index = 36090
if $var6 > 0
	handling = skip
endif

[TextureOverrideNeck03]
hash = 0ec26a8f
match_first_index = 41094
if $var6 > 0
	handling = skip
endif

[TextureOverrideNeck04]
hash = 0ec26a8f
match_first_index = 54909
if $var6 > 0
	handling = skip
endif

; Foot *****************************
[TextureOverrideFoot01]
hash = b521b761
match_first_index = 2049
handling = skip
if $var6 < 1
	vb0 = ResourceFoot1VB
	ib = ResourceFoot1IB
	drawindexed = auto
endif
if $var6 < 1
	vb0 = ResourceChain1VB
	ib = ResourceChain1IB
	drawindexed = auto
endif

[TextureOverrideFoot02]
hash = b521b761
match_first_index = 36795
handling = skip
if $var6 < 1
	vb0 = ResourceFoot2VB
	ib = ResourceFoot2IB
	drawindexed = auto
endif
if $var6 < 1
	vb0 = ResourceChain2VB
	ib = ResourceChain2IB
	drawindexed = auto
endif

[TextureOverridePanty10];???
hash = 0ec26a8f
match_first_index = 41334
if $var6 > 0
	handling = skip
endif

; Body *****************************
[TextureOverrideBody01]
hash = 0851f95f
match_first_index = 0
$mod_active = 1
handling = skip
ResourceBakVS = ref vs-cb2
vb0 = ResourceBodyUVB
ib = ResourceBodyUIB
ps-t0 = ResourceBody_T
drawindexed = auto
vb0 = ResourceBodyMVB
ib = ResourceBodyMIB
ps-t0 = ResourceBody_T
drawindexed = auto
if $var4 > 0
	vb0 = ResourceBodyLVB
	ib = ResourceBodyLIB
	ps-t0 = ResourceBody_T
	drawindexed = auto
else if $var4 < 1
	vb0 = ResourceBodyL2VB
	ib = ResourceBodyL2IB
	ps-t0 = ResourceBody_T
	drawindexed = auto
endif
vs-cb2 = ref ResourceBakVS
if $var3 > 1
	vb0 = ResourceHair1VB
	ib = ResourceHair1IB
	ps-t0 = ResourcePubicHair_T
	drawindexed = auto
	vb0 = ResourceHair2VB
	ib = ResourceHair2IB
	ps-t0 = ResourcePubicHair_T
	drawindexed = auto
endif

[TextureOverrideNail01]
hash = 1cd55ca1
match_first_index = 0
if $var4 > 0
	handling = skip
	vb0 = ResourceNailVB
	ib = ResourceNailIB
	ps-t0 = ResourceNails_T
	drawindexed = auto
endif

[ResourceBakVS]
[ResourceVSA]
[ResourceBakNVS]

; Resource
; Resource
[ResourceBodyUVB]
type = buffer
stride = 80
filename = resources\Nagisa\upper1.vb
[ResourceBodyUIB]
type = buffer
format = R16_UINT
filename = resources\Nagisa\upper1.ib

[ResourceBodyMVB]
type = buffer
stride = 80
filename = resources\Nagisa\mid1.vb
[ResourceBodyMIB]
type = buffer
format = R16_UINT
filename = resources\Nagisa\mid1.ib

[ResourceBodyLVB]
type = buffer
stride = 80
filename = resources\Nagisa\lower1.vb
[ResourceBodyLIB]
type = buffer
format = R16_UINT
filename = resources\Nagisa\lower1.ib

[ResourceBodyL2VB]
type = buffer
stride = 80
filename = resources\Nagisa\lower2.vb
[ResourceBodyL2IB]
type = buffer
format = R16_UINT
filename = resources\Nagisa\lower2.ib

[ResourceNailVB]
type = buffer
stride = 76
filename = resources\Nagisa\nails.vb
[ResourceNailIB]
type = buffer
format = R16_UINT
filename = resources\Nagisa\nails.ib

[ResourceHair1VB]
type = buffer
stride = 80
filename = resources\Nagisa\Nagisa_Hair01.vb
[ResourceHair1IB]
type = buffer
format = R16_UINT
filename = resources\Nagisa\Nagisa_Hair01.ib

[ResourceHair2VB]
type = buffer
stride = 80
filename = resources\Nagisa\Nagisa_Hair02.vb
[ResourceHair2IB]
type = buffer
format = R16_UINT
filename = resources\Nagisa\Nagisa_Hair02.ib

[ResourceBody1VB]
type = buffer
stride = 80
filename = resources\Marie_Body01.vb
[ResourceBody1IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Body01.ib

[ResourceBody2VB]
type = buffer
stride = 80
filename = resources\Marie_Body02.vb
[ResourceBody2IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Body02.ib

[ResourceBra1VB]
type = buffer
stride = 76
filename = resources\Marie_Bra01.vb
[ResourceBra1IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Bra01.ib

[ResourceBra2VB]
type = buffer
stride = 76
filename = resources\Marie_Bra02.vb
[ResourceBra2IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Bra02.ib

[ResourceBra3VB]
type = buffer
stride = 76
filename = resources\Marie_Bra03.vb
[ResourceBra3IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Bra03.ib

[ResourceBra4VB]
type = buffer
stride = 76
filename = resources\Marie_Bra04.vb
[ResourceBra4IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Bra04.ib

[ResourceBra5VB]
type = buffer
stride = 76
filename = resources\Marie_Bra05.vb
[ResourceBra5IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Bra05.ib

[ResourceBra6VB]
type = buffer
stride = 76
filename = resources\Marie_Bra06.vb
[ResourceBra6IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Bra06.ib

[ResourceBra7VB]
type = buffer
stride = 76
filename = resources\Marie_Bra07.vb
[ResourceBra7IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Bra07.ib

[ResourceBra8VB]
type = buffer
stride = 76
filename = resources\Marie_Bra08.vb
[ResourceBra8IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Bra08.ib

[ResourceSkirt1VB]
type = buffer
stride = 76
filename = resources\Marie_Skirt01.vb
[ResourceSkirt1IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Skirt01.ib

[ResourceSkirt2VB]
type = buffer
stride = 76
filename = resources\Marie_Skirt02.vb
[ResourceSkirt2IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Skirt02.ib

[ResourceSkirt3VB]
type = buffer
stride = 76
filename = resources\Marie_Skirt03.vb
[ResourceSkirt3IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Skirt03.ib

[ResourceSkirt3UVB]
type = buffer
stride = 76
filename = resources\Marie_Skirt03U.vb
[ResourceSkirt3UIB]
type = buffer
format = R16_UINT
filename = resources\Marie_Skirt03U.ib

[ResourceSkirt4VB]
type = buffer
stride = 76
filename = resources\Marie_Skirt04.vb
[ResourceSkirt4IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Skirt04.ib

[ResourceSkirt5VB]
type = buffer
stride = 76
filename = resources\Marie_Skirt05.vb
[ResourceSkirt5IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Skirt05.ib

[ResourceSkirt6VB]
type = buffer
stride = 76
filename = resources\Marie_Skirt06.vb
[ResourceSkirt6IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Skirt06.ib

[ResourceBelt1VB]
type = buffer
stride = 76
filename = resources\Marie_Belt01.vb
[ResourceBelt1IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Belt01.ib

[ResourcePanty1VB]
type = buffer
stride = 76
filename = resources\Marie_Panty01.vb
[ResourcePanty1IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Panty01.ib

[ResourcePanty2VB]
type = buffer
stride = 76
filename = resources\Marie_Panty02.vb
[ResourcePanty2IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Panty02.ib

[ResourcePanty3VB]
type = buffer
stride = 76
filename = resources\Marie_Panty03.vb
[ResourcePanty3IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Panty03.ib

[ResourcePanty4VB]
type = buffer
stride = 76
filename = resources\Marie_Panty04.vb
[ResourcePanty4IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Panty04.ib

[ResourceNeck1VB]
type = buffer
stride = 76
filename = resources\Marie_Neck01.vb
[ResourceNeck1IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Neck01.ib

[ResourceNeck2VB]
type = buffer
stride = 76
filename = resources\Marie_Neck02.vb
[ResourceNeck2IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Neck02.ib

[ResourceFlower1VB]
type = buffer
stride = 76
filename = resources\Marie_Flower01.vb
[ResourceFlower1IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Flower01.ib

[ResourceFlower2VB]
type = buffer
stride = 76
filename = resources\Marie_Flower02.vb
[ResourceFlower2IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Flower02.ib

[ResourceFlower3VB]
type = buffer
stride = 76
filename = resources\Marie_Flower03.vb
[ResourceFlower3IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Flower03.ib

[ResourceFlower4VB]
type = buffer
stride = 76
filename = resources\Marie_Flower04.vb
[ResourceFlower4IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Flower04.ib

[ResourceFlower5VB]
type = buffer
stride = 76
filename = resources\Marie_Flower05.vb
[ResourceFlower5IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Flower05.ib

[ResourceFlower6VB]
type = buffer
stride = 76
filename = resources\Marie_Flower06.vb
[ResourceFlower6IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Flower06.ib

[ResourceFoot1VB]
type = buffer
stride = 76
filename = resources\Marie_Foot01.vb
[ResourceFoot1IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Foot01.ib

[ResourceFoot2VB]
type = buffer
stride = 76
filename = resources\Marie_Foot02.vb
[ResourceFoot2IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Foot02.ib

[ResourceChain1VB]
type = buffer
stride = 76
filename = resources\Marie_Chain01.vb
[ResourceChain1IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Chain01.ib

[ResourceChain2VB]
type = buffer
stride = 76
filename = resources\Marie_Chain02.vb
[ResourceChain2IB]
type = buffer
format = R16_UINT
filename = resources\Marie_Chain02.ib

; Command
[CommandListChangeColor1]
ps-t1 = ResourceColorAO
;ps-t2 = ResourceColorAN
ps-t0 = ResourceColorA1

[CommandListChangeColor2]
ps-t1 = ResourceColorBO
ps-t2 = ResourceColorBN
ps-t0 = ResourceColorB1

[CommandListChangeColor3]
ps-t1 = ResourceColorCO
if $var8 == 0
	ps-t0 = ResourceColorC1
else if $var8 == 1
	ps-t0 = ResourceColorC2
else if $var8 == 2
	ps-t0 = ResourceColorC3
else if $var8 == 3
	ps-t0 = ResourceColorC4
else if $var8 == 4
	ps-t0 = ResourceColorC5
else if $var8 == 5
	ps-t0 = ResourceColorC6
else if $var8 == 6
	ps-t0 = ResourceColorC7
	ps-t2 = ResourceColorCN1
else if $var8 == 7
	ps-t0 = ResourceColorC8
	ps-t2 = ResourceColorCN1
endif

[CommandListChangeColor4]
ps-t1 = ResourceColorDO
if $var8 == 0
	ps-t0 = ResourceColorD1
else if $var8 == 1
	ps-t0 = ResourceColorD2
else if $var8 == 2
	ps-t0 = ResourceColorD3
else if $var8 == 3
	ps-t0 = ResourceColorD4
else if $var8 == 4
	ps-t0 = ResourceColorD5
else if $var8 == 5
	ps-t0 = ResourceColorD6
else if $var8 == 6
	ps-t0 = ResourceColorD7
	ps-t2 = ResourceColorDN1
else if $var8 == 7
	ps-t0 = ResourceColorD8
	ps-t2 = ResourceColorDN1
endif

[CommandListChangeColor5]
ps-t1 = ResourceColorFO
ps-t2 = ResourceColorFN
ps-t0 = ResourceColorF1

[CommandListChangeColor6]
ps-t1 = ResourceColorGO
ps-t2 = ResourceColorGN
ps-t0 = ResourceColorG1

[CommandListChangeColor7]
ps-t1 = ResourceColorCO
if $var11 == 0
	ps-t0 = ResourceColorC1
else if $var11 == 1
	ps-t0 = ResourceColorC2
else if $var11 == 2
	ps-t0 = ResourceColorC3
else if $var11 == 3
	ps-t0 = ResourceColorC4
else if $var11 == 4
	ps-t0 = ResourceColorC5
else if $var11 == 5
	ps-t0 = ResourceColorC6
else if $var11 == 6
	ps-t0 = ResourceColorC7
	ps-t2 = ResourceColorCN1
else if $var11 == 7
	ps-t0 = ResourceColorC8
	ps-t2 = ResourceColorCN1
endif

[CommandListChangeColor8]
ps-t1 = ResourceColorCO
if $var12 == 0
	ps-t0 = ResourceColorC1
else if $var12 == 1
	ps-t0 = ResourceColorC2
else if $var12 == 2
	ps-t0 = ResourceColorC3
else if $var12 == 3
	ps-t0 = ResourceColorC4
else if $var12 == 4
	ps-t0 = ResourceColorC5
else if $var12 == 5
	ps-t0 = ResourceColorC6
else if $var12 == 6
	ps-t0 = ResourceColorC7
	ps-t2 = ResourceColorCN1
else if $var12 == 7
	ps-t0 = ResourceColorC8
	ps-t2 = ResourceColorCN1
endif

[CommandListChangeColor9]
ps-t1 = ResourceColorDO
if $var13 == 0
	ps-t0 = ResourceColorD1
else if $var13 == 1
	ps-t0 = ResourceColorD2
else if $var13 == 2
	ps-t0 = ResourceColorD3
else if $var13 == 3
	ps-t0 = ResourceColorD4
else if $var13 == 4
	ps-t0 = ResourceColorD5
else if $var13 == 5
	ps-t0 = ResourceColorD6
else if $var13 == 6
	ps-t0 = ResourceColorD7
	ps-t2 = ResourceColorDN1
else if $var13 == 7
	ps-t0 = ResourceColorD8
	ps-t2 = ResourceColorDN1
endif

; Nagisa
[ResourceBody_T]
filename = resources\Nagisa\nagisa_body_t0_0_0.dds
[ResourceFace_Nagisa_T]
filename = resources\Nagisa\nagisa_face_t0_0_0.dds
[ResourceFace_Marie_T]
filename = resources\Nagisa\marie_face_t0_0_0.dds
[ResourceNails_T]
filename = resources\Nagisa\nailst0.dds
[ResourcePubicHair_T]
filename = resources\Nagisa\pubichair.dds

[ResourceColorAO]
filename = resources\texture\colorAO.dds
[ResourceColorAN]
filename = resources\texture\colorAN.dds
[ResourceColorA1]
filename = resources\texture\colorA01.dds

[ResourceColorBO]
filename = resources\texture\colorBO.dds
[ResourceColorBN]
filename = resources\texture\colorBN.dds
[ResourceColorB1]
filename = resources\texture\colorB01.dds

[ResourceColorCO]
filename = resources\texture\colorCO.dds
[ResourceColorCN]
filename = resources\texture\colorCN.dds
[ResourceColorCN1]
filename = resources\texture\colorCN1.dds
[ResourceColorC1]
filename = resources\texture\colorC01.dds
[ResourceColorC2]
filename = resources\texture\colorC02.dds
[ResourceColorC3]
filename = resources\texture\colorC03.dds
[ResourceColorC4]
filename = resources\texture\colorC04.dds
[ResourceColorC5]
filename = resources\texture\colorC05.dds
[ResourceColorC6]
filename = resources\texture\colorC06.dds
[ResourceColorC7]
filename = resources\texture\colorC07.dds
[ResourceColorC8]
filename = resources\texture\colorC08.dds

[ResourceColorDO]
filename = resources\texture\colorDO.dds
[ResourceColorDN]
filename = resources\texture\colorDN.dds
[ResourceColorDN1]
filename = resources\texture\colorDN1.dds
[ResourceColorD1]
filename = resources\texture\colorD01.dds
[ResourceColorD2]
filename = resources\texture\colorD02.dds
[ResourceColorD3]
filename = resources\texture\colorD03.dds
[ResourceColorD4]
filename = resources\texture\colorD04.dds
[ResourceColorD5]
filename = resources\texture\colorD05.dds
[ResourceColorD6]
filename = resources\texture\colorD06.dds
[ResourceColorD7]
filename = resources\texture\colorD07.dds
[ResourceColorD8]
filename = resources\texture\colorD08.dds

[ResourceColorFO]
filename = resources\texture\colorFO.dds
[ResourceColorFN]
filename = resources\texture\colorFN.dds
[ResourceColorF1]
filename = resources\texture\colorF01.dds

[ResourceColorGO]
filename = resources\texture\colorGO.dds
[ResourceColorGN]
filename = resources\texture\colorGN.dds
[ResourceColorG1]
filename = resources\texture\colorG01.dds

; Transparenc
[CommandListDrawCostume1]
if $var9 == 1
	run = CustomShaderTransparency1
else if $var9 == 2
	run = CustomShaderTransparency2
else
	drawindexed = auto
endif

[CommandListDrawCostume2]
if $var10 == 1
	run = CustomShaderTransparency1
else if $var10 == 2
	run = CustomShaderTransparency2
else
	drawindexed = auto
endif

[CustomShaderTransparency1]
blend[0] = ADD BLEND_FACTOR INV_BLEND_FACTOR
blend_factor[0] = 0.7
blend_factor[1] = 0.7
blend_factor[2] = 0.7
blend_factor[3] = 1
drawindexed = auto

[CustomShaderTransparency2]
blend[0] = ADD BLEND_FACTOR INV_BLEND_FACTOR
blend_factor[0] = 0.4
blend_factor[1] = 0.4
blend_factor[2] = 0.4
blend_factor[3] = 1
drawindexed = auto

[CustomShaderTransparency3]
blend[0] = ADD BLEND_FACTOR INV_BLEND_FACTOR
blend_factor[0] = 1
blend_factor[1] = 1
blend_factor[2] = 1
blend_factor[3] = 1
drawindexed = auto