View unanswered posts | View active topics It is currently Sat Apr 27, 2024 4:28 pm



Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
 Just a small tease video to make the waiting more bearable 
Author Message
Rank 16
Rank 16

Joined: Thu Feb 13, 2014 3:54 pm
Posts: 379
Location: United States
So looking at this line:

Code:
loc.sp.waypoint = "#front:MAIN";


I have a couple of questions.

1. What does the value mean exactly? I'm assuming "front" refers to the front of the NPC, but what does "MAIN" refer to?
2. Since it is termed a "waypoint", are we going to be able to script NPCs to walk to certain locations, if not also follow the player?


Thu Nov 20, 2014 6:33 pm
Profile
Site Admin
Site Admin

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

Both are possible.

"#front:MAIN" means NPC walks to player (main character).
Other variants are "#back:MAIN" in which case the NPC walk towards player and turns her back to player.
Or "#turn:MAIN" in which case character only turns towards player.

You can also use "#front:SAIKO" in which case the character walk towards other NPC.

You can also use waypoint = "sit_bed" in which the character walks to static waypoint (at specific location).
The NPC automatically plans the path to avoids obstacles. In case of collision with player the NPC stops and tries again later.


Thu Nov 20, 2014 6:45 pm
Profile
Rank 14
Rank 14
User avatar

Joined: Fri Jun 27, 2014 2:57 pm
Posts: 169
xpadmin wrote:
@modderman

'tit.jiggle.you.set' is a function that is called by the NLP when you type in a sentence like "can you giggle your tits" or "please giggle your boobs".

When that function exists (like it does in this case), the code of that function is executed.
You could also add 'jiggle.you.set = tit.jiggle.you.set'. In that case also a sentence like "please jiggle" or "can you jiggle for me" results in activation of the same code.

Easiest is to read these 'functions' backwards, so 'tit.jiggle.you.set' becomes 'set.you.jiggle.tit' or less cave-hole english 'command:you.jiggle.your.tits'.

Okay, basically event handler for NLP. Can you pass a function by name instead of using the function literal?


Thu Nov 20, 2014 6:47 pm
Profile
Site Admin
Site Admin

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

You could use:

tit.jiggle.you.set =
{
start_jiggle();
}

//--------------------------------

<jiggle>

...... // code

</jiggle>


or even:

tit.jiggle.you.set =
{
loc.s = "start_";
loc.s += "jiggle"

<*loc.s>(); // Calls function with name of string loc.s
}


N.b.
The function 'tit.jiggle.you.set' is actually a variable with type code.
So you are able to execute variables when they are of type code.


Thu Nov 20, 2014 6:58 pm
Profile
Rank 14
Rank 14
User avatar

Joined: Fri Jun 27, 2014 2:57 pm
Posts: 169
Functions are not type code then? Can not do?
Code:
<jiggle>
...... // code
</jiggle>

tit.jiggle.you.set = jiggle

Also how does asterisk modify function names?


Thu Nov 20, 2014 7:48 pm
Profile
Site Admin
Site Admin

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

'tit.jiggle.you.set = jiggle', would assign a string value to the variable 'tit.jiggle.you.set'.
So the type of 'tit.jiggle.you.set' would become a string.

You could also do 'tit.jiggle.you.set = 10' in which case the type of 'tit.jiggle.you.set' would become an integer.

By doing tit.jiggle.you.set = {...} it would get type code and the variable would be able to be executed.

//-------------------------

The * ensures the value of loc.s is used instead of 'loc.s' itself.

So <tit.jiggle.you.set>(); will execute the code variable 'tit.jiggle.you.set' and
<*tit.jiggle.you.set>(); will call the a function that has the name of the value of variable 'tit.jiggle.you.set'.

But this is more advanced programming, only needed in special cases.


Thu Nov 20, 2014 7:59 pm
Profile
Rank 13
Rank 13

Joined: Sun Jul 20, 2014 11:58 pm
Posts: 115
aterrizando wrote:
:shock:

Amazing! 12 hours of programing are not enough. You must stop resting! :P

Quote:
2. What is that funnel-looking thingy on the table in the back? It caught my eye and I am intrigued.


We saw it being used

I'm sorry, when was this? and where?


Thu Nov 20, 2014 8:02 pm
Profile
Rank 14
Rank 14
User avatar

Joined: Sat Mar 30, 2013 8:43 pm
Posts: 164
I want to see Saiko jigglin', btw are there any swimsuits for Monica or Saiko?

_________________
Image


Thu Nov 20, 2014 8:28 pm
Profile
Site Admin
Site Admin

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

Sorry no swimsuits, only underwear. It is possible to make them using modding (not very difficult).


Thu Nov 20, 2014 8:50 pm
Profile
Rank 14
Rank 14
User avatar

Joined: Fri Jun 27, 2014 2:57 pm
Posts: 169
Possible to blend in some swaying like idle anim? She looking robotic.


Thu Nov 20, 2014 11:21 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 52 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

Who is online

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