xmoonproductions.org
https://xmoonproductions.org/

Changeing Clothes in Story Mode
https://xmoonproductions.org/viewtopic.php?f=27&t=3571
Page 1 of 1

Author:  Tom [ Thu Jan 01, 2015 5:48 pm ]
Post subject:  Changeing Clothes in Story Mode

Does anyone know how it would be possible to change the clothes of Saiko and Monica in the Tentacle Story like you can do in the Dungeon?
I tried setting the clothes in the script files but either I was doing something wrong or in the wrong files - because it didn't work at all.

All I was able to do is change the texture for Saiko's dress but by changeing the texture file.

Anyone got any ideas?

Attachments:
File comment: Saiko Dress Color Change + "Can Touch This"
saiko2.jpg
saiko2.jpg [ 194.23 KiB | Viewed 22627 times ]

Author:  spsps18 [ Fri Jan 02, 2015 3:21 pm ]
Post subject:  Re: Changeing Clothes in Story Mode

Maybe that's contained in the "pack_tentacle_dreams\state\saiko" directory which would explain that you can't directly mod it

Author:  laissemoirire [ Sat Jan 03, 2015 1:27 am ]
Post subject:  Re: Changeing Clothes in Story Mode

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.dat
insert 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

Attachments:
screenshot3.jpg
screenshot3.jpg [ 62.04 KiB | Viewed 22250 times ]

Author:  spsps18 [ Sat Jan 03, 2015 10:11 am ]
Post subject:  Re: Changeing Clothes in Story Mode

Thanks I'll look into that too

Author:  manliocercato [ Sat Jan 03, 2015 1:10 pm ]
Post subject:  Re: Changeing Clothes in Story Mode

Very nice work, I hope you succed in simulate evente: I'll wait for.
only one thing: when she goes in the bathroom she change dress again.
bye

Author:  tomahawk308 [ Sat Jan 03, 2015 3:27 pm ]
Post subject:  Re: Changeing Clothes in Story Mode

@ laissemoirire nice :D

Author:  laissemoirire [ Sat Jan 03, 2015 7:03 pm ]
Post subject:  Re: Changeing Clothes in Story Mode

thanks =)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/