xmoonproductions.org
https://www.xmoonproductions.org/

how to make girls sleep
https://www.xmoonproductions.org/viewtopic.php?f=8&t=5832
Page 1 of 1

Author:  darkdays341 [ Thu Jun 27, 2019 5:50 pm ]
Post subject:  how to make girls sleep

tittle says everything viewtopic.php?f=2&t=5617 like this picture ?

Author:  Eskarn [ Fri Jun 28, 2019 12:04 am ]
Post subject:  Re: how to make girls sleep

You would need to add code like this to where you want them to sleep
http://wiki.xmoonproductions.org/index.php?title=Modding

Code:
[TIRED3]
  {
    loc.ts = GetTs(); 
     [loc.ts < state.dyn.me.do.ts] return;
 
    // Set sleep state
      loc.state.pose_type    = COMA;
      loc.state.pose_id      = 1;
      loc.state.ia_type      = BODY_TOP_LEGS_ARMS_SKIN_CLOTHALL_PRIVATE;
      loc.state.move_type    = NONE;
      loc.state.int2_type    = NONE;
      loc.state.scoll_type   = NONE;
      loc.state.coll_type    = BODY_TOP_LEGS_ARMS_BUTT;
      loc.state.cloth_type   = TORN;
      loc.state.hand_move    = false;
      loc.state.breath_id    = 1;
      loc.state.breath_speed = 0.9;
      loc.state.breath_scale = 0.2;
      loc.state.eye_state       = CLOSED;
      loc.state.eye_state_dur   = 0;
      loc.state.eye_state_scale = 1.0;
      loc.state.can_see         = true;
      loc.state.can_hear        = true;
      
      SetCharState(loc.state);
   
      loc.es.state = loc.state.eye_state;
      loc.es.dur   = loc.state.eye_state_dur;
      loc.es.scale = loc.state.eye_state_scale;
      SetEyeState(loc.es);
    

      SetCharState(loc.state);
      
      // Dont respond
      SetCanSee(false);
      SetCanHear(false);
      set_main_focus(NONE);
      set_main_exp(POLITE);

      // Sleep pose   
      loc.sp.pose_type = loc.state.pose_type;
      loc.sp.pose_id   = loc.state.pose_id;
      SetPose(loc.sp);
    
      SetIaType(loc.state.ia_type);
      SetMoveType(loc.state.move_type);
      SetInt2Type(loc.state.int2_type);
      SetSCollType(loc.state.scoll_type);
      SetCollType(loc.state.coll_type);
   
      SetHandMove(loc.state.hand_move);
      
      loc.sb.id    = loc.state.breath_id;
      loc.sb.speed = loc.state.breath_speed;
      loc.sb.scale = loc.state.breath_scale;
      SetBreath(loc.sb);
    

   
      do_set_timer(9);
      
      state.dyn.me.do.state2 = SLEEPING;
  }

Author:  darkdays341 [ Fri Jun 28, 2019 7:33 pm ]
Post subject:  Re: how to make girls sleep

Could you be more specific ı don't understand anything where do ı write these codes ?

Author:  prlumley1 [ Mon Jul 22, 2019 11:07 pm ]
Post subject:  Re: how to make girls sleep

in the film maker

Author:  darkdays341 [ Mon Aug 19, 2019 12:11 am ]
Post subject:  Re: how to make girls sleep

Stıll can't figure out how to make them sleep can you tell me step by step ?

Author:  Eskarn [ Mon Aug 19, 2019 12:53 am ]
Post subject:  Re: how to make girls sleep

Inside pack_tentacle_dreams\init\stories\tentacle_dreams\chars\saiko\brain\code\run there are a bunch of run.dats each of these run_states is a different part of the story if you open them up you will get some idea of where in the story, run2_state.dat is where Saiko goes to sleep.

These dat files control everything the NPCs do and editing them is pretty easy.
Each task is divided up into cases like the one shown below and when its called it will run that case.

Code:
[EVENT]
{//code goes here}


Set the current case with.

Code:
state.dyn.me.do.state2 = EVENT;


So if you were to add the [SLEEPING] code from above to one of the run files then call "state.dyn.me.do.state2 = SLEEPING;" Saiko would drop like a rock and go to sleep.
What part of the story you want her to sleep at is up to you.

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