View unanswered posts | View active topics It is currently Wed May 23, 2018 9:01 am



Reply to topic  [ 1 post ] 
 Scene change with waypoint script 
Author Message
Rank 3
Rank 3
User avatar

Joined: Tue Jun 13, 2017 3:11 pm
Posts: 7
Here's how to change the scene and waypoint at once. (Fast sex option menu)
Probably featured in other mods, but I had trouble finding out how to do it, so here goes.

Edit file: - "/pack/yourpack/init/std/base/main/brain/code/event/gui_event.dat"
Add this code:
Code:
[SET_SCENE]
  {
     state.dyn.settings.main.scene_id = loc.val;
     state.dyn.settings.main.waypoint = loc.val2;
    
     state.dyn.settings.need_apply = true;
  }


beneath the code
Code:
[SET_WAYPOINT]
  {
     state.dyn.settings.main.waypoint = loc.val;
    
     state.dyn.settings.need_apply = true;
  }


Edit next file: - "/pack/yourpack/init/stories/nameofstory/settings/stat_(Your fast sex options).dat"

Add the code
Code:
s23
  {
   pos = 23;
   
   name = "Scene *";
   
   //Scenes
   v0 = "DUNGEON1"; //Dungeon
   v1 = "ROOM3B"; //Saikos Room
   v2 = "OFFICE0"; //Office Lobby
   v3 = "OFFICE16"; //Main Office
   v4 = "ROOM3"; //Outside
   
   //Waypoints
   vb0 = "in_wp"; //Inside dungeon
   vb1 = "waypoint"; //End of hallway
   vb2 = "waypoint"; //On the streets
   vb3 = "waypoint"; //Outside elevators
   vb4 = "waypoint4"; //On the roof (Needs christmas scene in pack)
   
   //Shown Names
   vn0 = "Basement";
   vn1 = "Saikos Room";
   vn2 = "Outside Work";
   vn3 = "Office";
   vn4 = "Santa";
   
   type = SET_SCENE;
  }

At the end of the file.

Change the "s23" and the "pos = 23;" to the next corresponding numbers, if needed.
Please note that you should have the scenes loaded in your pack before they'll work.


Tue Jun 20, 2017 4:13 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 0 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.