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

Example: Customizable responses
https://www.xmoonproductions.org/viewtopic.php?f=28&t=809
Page 4 of 5

Author:  TheMohawkNinja [ Tue Nov 04, 2014 6:35 pm ]
Post subject:  Re: Example: Customizable responses

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();

Author:  xpadmin [ Tue Nov 04, 2014 10:24 pm ]
Post subject:  Re: Example: Customizable responses

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.

Author:  manliocercato [ Sun Dec 07, 2014 9:40 pm ]
Post subject:  Re: Example: Customizable responses

I'd like to know how to user the code you list.
Is there a console? what I have to do?
Thanks

Author:  xpadmin [ Sun Dec 07, 2014 9:52 pm ]
Post subject:  Re: Example: Customizable responses

@manliocercato

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

Author:  ooomegooo [ Sun Dec 07, 2014 10:00 pm ]
Post subject:  Re: Example: Customizable responses

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?

Author:  burning [ Sun Dec 07, 2014 10:44 pm ]
Post subject:  Re: Example: Customizable responses

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.

Author:  hardyhar [ Mon Dec 08, 2014 6:35 am ]
Post subject:  Re: Example: Customizable responses

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.

Author:  hardyhar [ Tue Dec 09, 2014 10:23 am ]
Post subject:  Re: Example: Customizable responses

No one? Is this not possible yet?

Author:  xpadmin [ Tue Dec 09, 2014 10:50 am ]
Post subject:  Re: Example: Customizable responses

@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"

:)

Author:  hardyhar [ Wed Dec 10, 2014 11:12 am ]
Post subject:  Re: Example: Customizable responses

@xpadmin
Perfect! This is exactly what I wanted and more. I'm going to have a field day with this!

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