View unanswered posts | View active topics It is currently Thu Mar 28, 2024 12:30 pm



Reply to topic  [ 46 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
 Example: Customizable responses 
Author Message
Rank 16
Rank 16

Joined: Thu Feb 13, 2014 3:54 pm
Posts: 379
Location: United States
I've been studying up on the Saiko BJ script to get ready for 3.0, and I have a question.

What does the 'v' stand for in lines like:

loc.ms.v = 0.01;

and

loc.v = GetFocusMode();


Tue Nov 04, 2014 6:35 pm
Profile
Site Admin
Site Admin

Joined: Thu Feb 07, 2013 11:16 am
Posts: 1865
TheMohawkNinja wrote:
I've been studying up on the Saiko BJ script to get ready for 3.0, and I have a question.

What does the 'v' stand for in lines like:

loc.ms.v = 0.01;

and

loc.v = GetFocusMode();


It is simply a way of creating a local variable.

You could also do:

loc.z = GetFocusMode();

or

loc.gfm.var1 = GetFocusMode();

The "loc" means the value is local so it is remove when out of scope.

The part after 'loc' is the variable name itself.

Return values of a function start with 'res' and parameters of a function start with 'par'.

Global variables do not start with either loc,par,res.


Tue Nov 04, 2014 10:24 pm
Profile
Rank 10
Rank 10

Joined: Wed Oct 01, 2014 6:10 am
Posts: 60
I'd like to know how to user the code you list.
Is there a console? what I have to do?
Thanks


Sun Dec 07, 2014 9:40 pm
Profile
Site Admin
Site Admin

Joined: Thu Feb 07, 2013 11:16 am
Posts: 1865
@manliocercato

Use the filemanager to unpck the bin pack and edit the files using a text editor.


Sun Dec 07, 2014 9:52 pm
Profile
Rank 6
Rank 6

Joined: Wed Sep 25, 2013 3:19 am
Posts: 23
xpadmin wrote:
@manliocercato

Use the filemanager to unpck the bin pack and edit the files using a text editor.

I found out, that there`s a four packs. but after unpacking _test and _tentacle_dreams, I ve not found for changes in game. What is that packs?


Sun Dec 07, 2014 10:00 pm
Profile
Rank 16
Rank 16

Joined: Thu Jul 31, 2014 2:29 pm
Posts: 351
ooomegooo wrote:
xpadmin wrote:
@manliocercato

Use the filemanager to unpck the bin pack and edit the files using a text editor.

I found out, that there`s a four packs. but after unpacking _test and _tentacle_dreams, I ve not found for changes in game. What is that packs?


That should be pretty clear - pack_tentacle_dreams is the story, pack_tentacle_fast is the fast sex where you recreate certain scenes, and pack_dungeon is the dungeon fast sex.


Sun Dec 07, 2014 10:44 pm
Profile
Rank 12
Rank 12
User avatar

Joined: Tue Oct 14, 2014 6:00 am
Posts: 92
So I just went through and changed most of the responses for the fast sex dungeon to my liking :)

I have a question though... how can I change the commands that execute responses? For example, say I want the girl to give a blowjob anytime I say the word cheese. I can't find where to modify this.


Mon Dec 08, 2014 6:35 am
Profile
Rank 12
Rank 12
User avatar

Joined: Tue Oct 14, 2014 6:00 am
Posts: 92
No one? Is this not possible yet?


Tue Dec 09, 2014 10:23 am
Profile
Site Admin
Site Admin

Joined: Thu Feb 07, 2013 11:16 am
Posts: 1865
@hardyhar

1)
In the file:

"init\std\template\char\brain\code\ref\basic_ref_command.dat"

You will see all the dungeon commands.

For example:

me.blowjob.you.set (read backwards as: you.blowjob.me) results in a blowjob.

2)
Let say you want: "I like cheese" to make her give you a blowjob.

First you have to add the word "cheese" to the NLP:

Open the file:
"ai\nlp\nlp_object.txt"

and add:

...
#object_item = <poles> : pole
#object_item = <cheese> : cheese // << add here
#object_item = <cheeses> : cheese // << add here

3)
Now enable brain debug in the settings.ini file:

start_mode = FAST; // Start automatically in fast scene (so you skip splash screen for convenience)
debug_brain = ENABLED; // Debug brain to trace.txt file

This will trace all brain events to the 'trace.txt' file

4)
Start XStoryPlayer and say to Saiko in the dungeon:
"I like cheese".

Press F9 to quit XStoryPlayer directly and open the 'trace.txt' file.

Here you now will see:
...cheese.like.me.info (meaning, I give info: me.like.cheese)

5)
Now all you have to do is add:

...
suck.you.if = me.blowjob.you.set;
cheese.like.me.info = me.blowjob.you.set; // << Add it here

to the file:
"init\std\template\char\brain\code\ref\basic_ref_command.dat"

6)
Try again and she should give blowjob when you say:
"I like cheese"

:)


Tue Dec 09, 2014 10:50 am
Profile
Rank 12
Rank 12
User avatar

Joined: Tue Oct 14, 2014 6:00 am
Posts: 92
@xpadmin
Perfect! This is exactly what I wanted and more. I'm going to have a field day with this!


Wed Dec 10, 2014 11:12 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 46 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

Who is online

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