View unanswered posts | View active topics It is currently Tue Oct 08, 2024 7:11 pm



Reply to topic  [ 6 posts ] 
 how to make girls sleep 
Author Message
Rank 2
Rank 2

Joined: Thu Jun 27, 2019 2:09 pm
Posts: 5
tittle says everything viewtopic.php?f=2&t=5617 like this picture ?


Thu Jun 27, 2019 5:50 pm
Profile
Rank 17
Rank 17
User avatar

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

_________________
To install a mod

ESKARN'S TUTORIALS

Eskarn's Dungeon Mod(BETA)

Eskarn's puzzle map (story)


Fri Jun 28, 2019 12:04 am
Profile
Rank 2
Rank 2

Joined: Thu Jun 27, 2019 2:09 pm
Posts: 5
Could you be more specific ı don't understand anything where do ı write these codes ?


Fri Jun 28, 2019 7:33 pm
Profile
Rank 15
Rank 15

Joined: Mon Jun 03, 2013 7:33 pm
Posts: 223
in the film maker


Mon Jul 22, 2019 11:07 pm
Profile
Rank 2
Rank 2

Joined: Thu Jun 27, 2019 2:09 pm
Posts: 5
Stıll can't figure out how to make them sleep can you tell me step by step ?


Mon Aug 19, 2019 12:11 am
Profile
Rank 17
Rank 17
User avatar

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

_________________
To install a mod

ESKARN'S TUTORIALS

Eskarn's Dungeon Mod(BETA)

Eskarn's puzzle map (story)


Mon Aug 19, 2019 12:53 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


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.