Hey folks!
I have been trying for some hours to make something I thought would be possible with NESS...
1. NPC spawn at waypoint A at dawn.
2. NPC move to waypoint B
3. NPC shout "Vegetables" every heartbeat
4. NPC move to waypoint A at dusk.
5. NPC despawn.
How can I set up this in a smart way? I think it's possible, but I have stared myself blind on it now... :/
Thanks!
Possible with NESS?
Débuté par
YeOlde
, févr. 15 2012 03:04
#1
Posté 15 février 2012 - 03:04
#2
Posté 15 février 2012 - 03:57
Of course it is. But you will have to use custom scripts in conjunction with it.
Do you have the documentation for NESS? That should have everything you need to know to get this to work. If not, I can figure out a way to post it up here.
Do you have the documentation for NESS? That should have everything you need to know to get this to work. If not, I can figure out a way to post it up here.
#3
Posté 15 février 2012 - 04:19
I have the documentation, yeah. But I am a bit unsure about the parameters I shall use. 
I suppose I shall do it like this...
1. Spawn the NPC at a waypoint, using the "Spawn at Day" (Simulating he leaves his home)
2. Let it walk to another waypoint with patrol (Simulating he walks to the market)
3. Run a Heartbeat Script (Spawn_sc_hbeat) at the waypoint at the market
4. Let it check for night every HB, and when that is true, send him back to his home.
Maybe I am doing it too complicated or too simple. My current problem is, that it won't fire any HB script at all - nothing happens.
Edit: Ok, found out that I can't use the HB event on patrol routes
I suppose I shall do it like this...
1. Spawn the NPC at a waypoint, using the "Spawn at Day" (Simulating he leaves his home)
2. Let it walk to another waypoint with patrol (Simulating he walks to the market)
3. Run a Heartbeat Script (Spawn_sc_hbeat) at the waypoint at the market
4. Let it check for night every HB, and when that is true, send him back to his home.
Maybe I am doing it too complicated or too simple. My current problem is, that it won't fire any HB script at all - nothing happens.
Edit: Ok, found out that I can't use the HB event on patrol routes
Modifié par YeOlde, 15 février 2012 - 04:25 .
#4
Posté 15 février 2012 - 05:19
*Scratches head*
Can someone hint me in the right direction. Which is the best method to use to have the above effect - using NESS. :/
Can someone hint me in the right direction. Which is the best method to use to have the above effect - using NESS. :/
Modifié par YeOlde, 15 février 2012 - 05:21 .
#5
Posté 15 février 2012 - 06:52
SP_DOD_EX01
is what you need to use to spawn/despawn and also have it return to waypoint EX01 as it's "exit point" - so you'd place this WP near the location you want it to spawn/despawn.
Alter your NPC's heartbeat to handle the shouting, ness does not do that. Likewise movement when desired.
Hope this helps.
is what you need to use to spawn/despawn and also have it return to waypoint EX01 as it's "exit point" - so you'd place this WP near the location you want it to spawn/despawn.
Alter your NPC's heartbeat to handle the shouting, ness does not do that. Likewise movement when desired.
Hope this helps.
Modifié par ehye_khandee, 15 février 2012 - 06:53 .
#6
Posté 15 février 2012 - 07:39
This worked very good, only problem is that the SF (face waypoint) doesn't work with EE01(EX01)
#7
Posté 16 février 2012 - 01:35
SF ... Set Facing?
Are you sure? I've never run into that, tho I may have just missed that combo. I'll try it in my next update to test it here also. NOTE the facing they intend is that of the NESS WAYPOINT not the EX01 waypoint.
Are you sure? I've never run into that, tho I may have just missed that combo. I'll try it in my next update to test it here also. NOTE the facing they intend is that of the NESS WAYPOINT not the EX01 waypoint.
Modifié par ehye_khandee, 16 février 2012 - 01:36 .
#8
Posté 16 février 2012 - 09:20
ehye_khandee: Yeah, it doesn't work on the NESS waypoint
SP_DOD_EE05_SF is the NESS waypoint (the market)
EE05 is the spawn and despawn waypoint (edge of area)
SP_DOD_EE05_SF is the NESS waypoint (the market)
EE05 is the spawn and despawn waypoint (edge of area)
#9
Posté 16 février 2012 - 11:37
EE specifies 'entry' location and will likely conflict with SF for that reason - both being entry settings, one must come last and take control. I thought you were using the EX for exit?
#10
Posté 16 février 2012 - 12:24
Alright, if I set up SP_DOD_EE05_EX05_SF at the market and
two waypoints (EE05 for entry and EX05 for exit) at the edge of the area, along with a heartbeat script that tells the NPC to shout "Vegetables" then the NPC will...
1. Spawn at EE05
2. Shout "Vegetables" all the way to the NESS Waypoint
3. Not face the direction of the Waypoint
4. Continue to shout "Vegetables" until dusk
5. Go back to EX05 and shout "Vegetables" all the way
6. Despawn at EX05
I want it to
1. Spawn at EE05
2. Be quiet while he walks to the market
3. Face the direction of the waypoint and start to shout "Vegetables" until dusk.
4. Be quiet while he walks back at EX05
5. Despawn at EX05
two waypoints (EE05 for entry and EX05 for exit) at the edge of the area, along with a heartbeat script that tells the NPC to shout "Vegetables" then the NPC will...
1. Spawn at EE05
2. Shout "Vegetables" all the way to the NESS Waypoint
3. Not face the direction of the Waypoint
4. Continue to shout "Vegetables" until dusk
5. Go back to EX05 and shout "Vegetables" all the way
6. Despawn at EX05
I want it to
1. Spawn at EE05
2. Be quiet while he walks to the market
3. Face the direction of the waypoint and start to shout "Vegetables" until dusk.
4. Be quiet while he walks back at EX05
5. Despawn at EX05
#11
Posté 16 février 2012 - 02:01
Provide a condition for the shouting of "vegetables" in the heartbeat script. When the creature reaches the waypoint run a script which activates the "vegetable" condition, and sets its facing to be equal to the waypoint. Deactivate the condition at dusk.
Using the same tags that you have, you could do this with a userdefined heartbeat script.
You could also do this with different NESS tags. Perhaps using a patrol route would be better since you can associate scripts with the waypoints in the route.
Using the same tags that you have, you could do this with a userdefined heartbeat script.
You could also do this with different NESS tags. Perhaps using a patrol route would be better since you can associate scripts with the waypoints in the route.
#12
Posté 17 février 2012 - 11:18
I have solves my issues.
I have a NESS waypoint that looks like this: SP3_SF_DOD_EE04_HB083
An an entry point that looks like this: EE04
The HB083 pokes in the spawn_sc_hbeat script and checks for day, dusk, dawn and night and performs different tasks depending on the time of the day.
My only problem now is that when an NPC collide with a PC (or another NPC), they stop walking to the waypoint, stops and starts to perform the Heartbeat script where it got blocked (and stopped) instead.
How do I turn of collision?
Thanks for the help!
I have a NESS waypoint that looks like this: SP3_SF_DOD_EE04_HB083
An an entry point that looks like this: EE04
The HB083 pokes in the spawn_sc_hbeat script and checks for day, dusk, dawn and night and performs different tasks depending on the time of the day.
My only problem now is that when an NPC collide with a PC (or another NPC), they stop walking to the waypoint, stops and starts to perform the Heartbeat script where it got blocked (and stopped) instead.
How do I turn of collision?
Thanks for the help!
#13
Posté 17 février 2012 - 01:20
Why not check in the heartbeat script whether they need to keep walking to their destination?
#14
Posté 17 février 2012 - 04:00
You guys make everything sound so easy.. 
I'll try and do my best - thanks
I'll try and do my best - thanks
Modifié par YeOlde, 17 février 2012 - 04:00 .
#15
Posté 18 février 2012 - 02:46
You've been doing very well. All you need is to be shown the right path, as has been made clear by your successes so far.
#16
Posté 18 février 2012 - 08:30
Thank you. I can't script, but I struggle forward with Lilac Soul, trial & error and copying present scripts. And yeah, I appreciate this instead of the solution. I have learned alot since the start.





Retour en haut






