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

Eyes Open/Close snippet
https://www.xmoonproductions.org/viewtopic.php?f=30&t=5131
Page 1 of 1

Author:  djiango [ Tue Jun 13, 2017 3:46 pm ]
Post subject:  Eyes Open/Close snippet

Hi guys. I just wanted to share a little code snippet, for opening and closing a characters eyes.
I had a little trouble getting it to work, so I hope it's the right way to do it.

Edit file - "/pack/yourpack/init/std/template/char/brain/code/ref/basic_ref_command.dat"

Add the code below, under the line: "face.close.you.if = face.close.you.set;"
Code:
//"Open your eyes" - Works after editing "ai/npl/nlp_object.txt" - ("eye & eyes to "eyes", instead of "face")
eyes.open.you.set =
{
   SetEyeState(OPEN);
}
eyes.open.you.if = eyes.open.you.set;

//"Close your eyes" - Works after editing "ai/npl/nlp_object.txt" - ("eye & eyes to "eyes", instead of "face")
eyes.close.you.set =
{
   SetEyeState(CLOSED);
}
eyes.close.you.if = eyes.close.you.set;


Edit file - "/pack/yourpack/ai/nlp/nlp_object.txt"
Change the lines
Code:
#object_body = <eye>            : face
#object_body = <eyes>           : face


to

Code:
#object_body = <eye>            : eyes //Works with "eyes close/open" in - ("init/std/template/char/brain/code/ref/basic_ref_command.dat") (original value: face)
#object_body = <eyes>           : eyes //Works with "eyes close/open" in - ("init/std/template/char/brain/code/ref/basic_ref_command.dat") (original value: face)


Say: "Open your eyes" to open her eyes.
Say: "Close your eyes" to close her eyes.

Author:  riftporn [ Tue Jun 13, 2017 9:00 pm ]
Post subject:  Re: Eyes Open/Close snippet

Nice!

Author:  smithclub99 [ Sat Jun 17, 2017 11:10 am ]
Post subject:  Re: Eyes Open/Close snippet

Thanks djiango,
That works great.
Attachment:
screenshot.jpg
screenshot.jpg [ 54.8 KiB | Viewed 13394 times ]

This makes it a lot easier to do her makeup.
P.S. just typing “open eyes” works just as well.

Author:  djiango [ Tue Jun 20, 2017 3:23 pm ]
Post subject:  Re: Eyes Open/Close snippet

Thanks for the positive feedback, it's great that you like it. I'm currently on a modding spree (mostly textures and scripts), and will probably post more in the script section if I find any other interesting stuff.

Attachments:
screenshot58.jpg
screenshot58.jpg [ 280.26 KiB | Viewed 13281 times ]

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