Author |
Message |
TheMohawkNinja
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 |
|
 |
xpadmin
Site Admin
Joined: Thu Feb 07, 2013 11:16 am Posts: 1930
|
@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 |
|
 |
modderman
Rank 14
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 |
|
 |
xpadmin
Site Admin
Joined: Thu Feb 07, 2013 11:16 am Posts: 1930
|
@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 |
|
 |
modderman
Rank 14
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 |
|
 |
xpadmin
Site Admin
Joined: Thu Feb 07, 2013 11:16 am Posts: 1930
|
@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 |
|
 |
Elfseeker
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! 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 |
|
 |
weipai
Rank 14
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?
_________________
|
Thu Nov 20, 2014 8:28 pm |
|
 |
xpadmin
Site Admin
Joined: Thu Feb 07, 2013 11:16 am Posts: 1930
|
@weipai
Sorry no swimsuits, only underwear. It is possible to make them using modding (not very difficult).
|
Thu Nov 20, 2014 8:50 pm |
|
 |
modderman
Rank 14
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 |
|
 |
|