View unanswered posts | View active topics It is currently Tue Mar 19, 2024 10:23 am



Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
 Clothing References 
Author Message
Rank 9
Rank 9

Joined: Tue May 15, 2018 10:44 am
Posts: 50
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.


Sun Jun 24, 2018 7:10 pm
Profile
Rank 17
Rank 17
User avatar

Joined: Fri Feb 27, 2015 2:06 pm
Posts: 682
Location: Australia
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

_________________
To install a mod

ESKARN'S TUTORIALS

Eskarn's Dungeon Mod(BETA)

Eskarn's puzzle map (story)


Mon Jun 25, 2018 12:44 am
Profile
Rank 9
Rank 9

Joined: Tue May 15, 2018 10:44 am
Posts: 50
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!


Mon Jun 25, 2018 6:48 am
Profile
Rank 9
Rank 9

Joined: Tue May 15, 2018 10:44 am
Posts: 50
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?


Sun Jul 01, 2018 1:41 am
Profile
Rank 17
Rank 17
User avatar

Joined: Fri Feb 27, 2015 2:06 pm
Posts: 682
Location: Australia
Hm can you post the code your using here or PM me with it and ill see if i can figure it out

_________________
To install a mod

ESKARN'S TUTORIALS

Eskarn's Dungeon Mod(BETA)

Eskarn's puzzle map (story)


Sun Jul 01, 2018 2:55 am
Profile
Rank 9
Rank 9

Joined: Tue May 15, 2018 10:44 am
Posts: 50
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.


Sun Jul 01, 2018 3:05 am
Profile
Rank 9
Rank 9

Joined: Tue May 15, 2018 10:44 am
Posts: 50
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-


Sun Jul 01, 2018 10:18 am
Profile
Rank 17
Rank 17
User avatar

Joined: Fri Feb 27, 2015 2:06 pm
Posts: 682
Location: Australia
yep it always is

_________________
To install a mod

ESKARN'S TUTORIALS

Eskarn's Dungeon Mod(BETA)

Eskarn's puzzle map (story)


Sun Jul 01, 2018 10:53 am
Profile
Rank 9
Rank 9

Joined: Tue May 15, 2018 10:44 am
Posts: 50
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].


Sun Jul 01, 2018 11:37 am
Profile
Rank 17
Rank 17
User avatar

Joined: Fri Feb 27, 2015 2:06 pm
Posts: 682
Location: Australia
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;
   }
}

_________________
To install a mod

ESKARN'S TUTORIALS

Eskarn's Dungeon Mod(BETA)

Eskarn's puzzle map (story)


Sun Jul 01, 2018 1:11 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group.
Designed by X-Moon Productions.