Aller au contenu

Photo

Possible with NESS?


  • Veuillez vous connecter pour répondre
15 réponses à ce sujet

#1
YeOlde

YeOlde
  • Members
  • 37 messages
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!

#2
henesua

henesua
  • Members
  • 3 878 messages
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.

#3
YeOlde

YeOlde
  • Members
  • 37 messages
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

Modifié par YeOlde, 15 février 2012 - 04:25 .


#4
YeOlde

YeOlde
  • Members
  • 37 messages
*Scratches head*

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
ehye_khandee

ehye_khandee
  • Members
  • 855 messages
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.

Modifié par ehye_khandee, 15 février 2012 - 06:53 .


#6
YeOlde

YeOlde
  • Members
  • 37 messages
This worked very good, only problem is that the SF (face waypoint) doesn't work with EE01(EX01)

#7
ehye_khandee

ehye_khandee
  • Members
  • 855 messages
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.

Modifié par ehye_khandee, 16 février 2012 - 01:36 .


#8
YeOlde

YeOlde
  • Members
  • 37 messages
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)

#9
ehye_khandee

ehye_khandee
  • Members
  • 855 messages
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
YeOlde

YeOlde
  • Members
  • 37 messages
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

Posted Image

#11
henesua

henesua
  • Members
  • 3 878 messages
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.

#12
YeOlde

YeOlde
  • Members
  • 37 messages
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!

#13
henesua

henesua
  • Members
  • 3 878 messages
Why not check in the heartbeat script whether they need to keep walking to their destination?

#14
YeOlde

YeOlde
  • Members
  • 37 messages
You guys make everything sound so easy.. Posted Image
I'll try and do my best - thanks Posted Image

Modifié par YeOlde, 17 février 2012 - 04:00 .


#15
henesua

henesua
  • Members
  • 3 878 messages
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
YeOlde

YeOlde
  • Members
  • 37 messages
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. :)