okay after hours of try and fail, and fail and try.
I did something not really wonderful but at least, it works !
at :
pack\pack_tentacle_dreams\init\stories\tentacle_dreams\chars\saiko\brain\code\ref\run0_ref.datinsert at bottom
Code:
cloth.wear.you.set =
{
talk.s = "Ok, time to change !";
talk.dur = 1000;
//PICK HERE COLORS FROM \pack\pack_tentacle_dreams\init\std\base\char\brain\code\ref\setting_ref.dat
//This is for ["Transparent"]
loc.color.r = 255;
loc.color.g = 255;
loc.color.b = 255;
loc.color.a = 64;
loc.sc.spec_shiny = 0.0;
loc.sc.spec_power = 0.0;
loc.sc.tex = "#";
//end color
loc.sc.item = 0; //item 0 = dress
loc.sc.color = loc.color;
SetClothColor(loc.sc); //apply texture in game
//some fun with custom colors (transparent black top)
loc.color.r = 0;
loc.color.g = 0;
loc.color.b = 0;
loc.color.a = 64;
loc.sc.item = 1 ; // item = 1 for bra /top
loc.sc.color = loc.color;
loc.sc.spec_shiny = 0.0;
loc.sc.spec_power = 0.0;
loc.sc.tex = "";
SetClothColor(loc.sc);
// transparent black panties
// no need to rewrites all variables, same colors /alpha as top
loc.sc.item = 2 ; // item = 2 for panties
SetClothColor(loc.sc);
}
Do exactly the same at :
\pack\pack_tentacle_dreams\init\stories\tentacle_dreams\chars\saiko\brain\code\ref\run2_ref.dat######################
say "
wear cloth" and that's all.
I used already coded words so no need to modify other files with special commands..
It don't work when she's on the toilets, and you have to say "wear cloth" each time you go back to her room (works when she's asleep too)
you can use custom textures by specifying them ( loc.sc.tex = "scenes\textures\cloth\my_custom_texture.dds"; )
Note for other modders, I tried to simulate un event, like with the GUI in the dungeon... but without succed
Code:
loc.be.obj = SAIKO;
loc.be.id = "me";
loc.be.action = "set_cloth_color";
loc.be.par = 0; //obj2
loc.be.par2 = "Transparent"; //val
SendBaseEvent(loc.be);
if you have an idea....
edit : add preview