xmoonproductions.org https://www.xmoonproductions.org/ |
|
Clothing References https://www.xmoonproductions.org/viewtopic.php?f=28&t=5476 |
Page 1 of 2 |
Author: | CruzCoda [ Sun Jun 24, 2018 7:10 pm ] |
Post subject: | Clothing References |
I'm doing some modding to the Tentacle Dreams story, and currently have my sights set on the opening dream sequence with Monica. When the scene opens, Monica's dress eventually starts to unzip itself, before the dream ends and the story shifts to reality. My question is in concern to finding out how to manipulate more of the clothing. For instance, to have Monica's panties start falling as well. More so, where can I find, either on a wiki or in the scripts, references to the object related events available? Thanks. |
Author: | Eskarn [ Mon Jun 25, 2018 12:44 am ] |
Post subject: | Re: Clothing References |
there is not alot of wiki infomation but i do remember most of it If you want an example check out the code download viewtopic.php?f=27&t=4472 init\stories\tentacle_dreams\chars\saiko\brain\code\run\run0_state.dat ZIPPERS Code: loc.oz.item = 0;//The clothing item, the number is found in their init file under cloth items loc.oz.open = true; // if the zipper is open or closed and can be manipulated loc.oz.d = 0.003;// how much to open the zipper by OpenClothZipper(loc.oz);//execute the above BUTTONS Code: loc.ob.item = 0; // Cloth item loc.ob.id = 0; // Button id OpenClothButton(loc.ob);//open buttons FORCE CLOTH DOWN Code: loc.cs.item = 0; loc.cs.dir = 10; //force to apply down SetClothState(loc.cs); after loc.cs.item = 0; loc.cs.dir = 0; //set back to 0 so it does not fly away? SetClothState(loc.cs); PANTIES Code: loc.cs.item = 2; loc.cs.dir = 10; loc.cs.hand = true; SetClothState(loc.cs); SetGesture(PULL_PANTIES);//needs the gesture to dislodge the panties loc.cs.item = 2; loc.cs.dir = 2; SetClothState(loc.cs); SetGesture(NONE); loc.cs.item = 2; loc.cs.dir = 0; //set back to 0 after done SetClothState(loc.cs); SetGesture(NONE);//set gesture to none after done |
Author: | CruzCoda [ Mon Jun 25, 2018 6:48 am ] |
Post subject: | Re: Clothing References |
Much appreciated for the reply. I'll give the code a try in a little bit (still unfuzzing my brain from all the earlier programming.) =) Update - Worked like a charm. Was exactly what I was looking for. Thanks again! |
Author: | CruzCoda [ Sun Jul 01, 2018 1:41 am ] |
Post subject: | Re: Clothing References |
Running into a new issue. In Monica's Run00 story file, the following method is used for dropping the zipper, then progressing the story based on a match (edited for my mod) Code: loc.oz.item = 0; loc.oz.open = true; loc.oz.d = 0.01; OpenClothZipper(loc.oz); loc.closed = GetClothZipperIsClosed(loc.oz); [loc.closed < 11] return; However, whenever I attempt to use the same code, during her first office scene, the zipper falls, but never progresses when it completely opens. I added debug text to check the loc.closed val, but it always comes up as 3. I'm obviously missing something. Or, is there another Get function I can call that will give me the current value of the zipper? |
Author: | Eskarn [ Sun Jul 01, 2018 2:55 am ] |
Post subject: | Re: Clothing References |
Hm can you post the code your using here or PM me with it and ill see if i can figure it out |
Author: | CruzCoda [ Sun Jul 01, 2018 3:05 am ] |
Post subject: | Re: Clothing References |
Here's the method in full, for what I have currently. Code: [ZIPPER_OPEN] { //Open zipper loc.oz.item = 0; loc.oz.open = true; loc.oz.d = 0.05; OpenClothZipper(loc.oz); loc.closed = GetClothZipperIsClosed(loc.oz); [loc.closed < 11] return; talk.s = "Oh shoot, this damn zipper never stays closed."; talk.s.dur = "1000"; do_set_timer(10); state.dyn.me.do.state2 = ZIPPERTALK0; } Currently, the zip does open completely, but then it never seems to go beyond that and continue with the rest of the method. One thing of note, is that in the office scene she is wearing cloth_type CASUAL, where as in the dream, she is wearing cloth_type SLUTTY. Not sure if there's a difference between the two. |
Author: | CruzCoda [ Sun Jul 01, 2018 10:18 am ] |
Post subject: | Re: Clothing References |
CruzCoda wrote: Code: [ZIPPER_OPEN] { //Open zipper loc.oz.item = 0; loc.oz.open = true; loc.oz.d = 0.05; OpenClothZipper(loc.oz); loc.closed = GetClothZipperIsClosed(loc.oz); [loc.closed < 11] return; talk.s = "Oh shoot, this damn zipper never stays closed."; talk.s.dur = "1000"; do_set_timer(10); state.dyn.me.do.state2 = ZIPPERTALK0; } I figured out my problem. This is why I shouldn't code on three hours of sleep. state.dyn.me.do.state2 = ZIPPERTALK0; should have been state.dyn.me.do.state2 = ZIPPER_TALK0; It's aaaaaalways something small and stupid. LoL Everything else was working correctly, though. Thanks for taking a look, Eskarn. -shakes head at self- |
Author: | Eskarn [ Sun Jul 01, 2018 10:53 am ] |
Post subject: | Re: Clothing References |
yep it always is |
Author: | CruzCoda [ Sun Jul 01, 2018 11:37 am ] |
Post subject: | Re: Clothing References |
Alright, I take it back. It HAD been working when doing a test scenario. But decided that it didn't want to work after I tried to plug things back in to make it work. Monica Run0 The specific state I'm having issues with, is [ZIPPER_OPEN]. |
Author: | Eskarn [ Sun Jul 01, 2018 1:11 pm ] |
Post subject: | Re: Clothing References |
Try something like this I think i ran into issues where it did not update without refreshing If it still does not work then ill test it out tomorrow Code: [ZIPPER_OPEN] { loc.oz.item = 0; loc.oz.open = true; loc.oz.d = 0.05; OpenClothZipper(loc.oz); state.dyn.me.do.state2 = ZIPPERCHECK; //do_set_timer(0.1);//if you need it to go slower } [ZIPPERCHECK] { //loc.ts = GetTs(); //[loc.ts < state.dyn.me.do.ts] return; loc.closed = GetClothZipperIsClosed(loc.oz); state.dyn.me.do.state2 = ZIPPER_OPEN; [loc.closed < 11] { state.dyn.me.do.state2 = ZIPPER_TALK; } } |
Page 1 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |