Author Topic: Possible with NESS?  (Read 536 times)

Legacy_YeOlde

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
Possible with NESS?
« on: February 15, 2012, 03:04:32 pm »


               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!
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Possible with NESS?
« Reply #1 on: February 15, 2012, 03:57:50 pm »


               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.
               
               

               
            

Legacy_YeOlde

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
Possible with NESS?
« Reply #2 on: February 15, 2012, 04:19:50 pm »


               I have the documentation, yeah. But I am a bit unsure about the parameters I shall use. '<img'>

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 .
                     
                  


            

Legacy_YeOlde

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
Possible with NESS?
« Reply #3 on: February 15, 2012, 05:19:14 pm »


               *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 .
                     
                  


            

Legacy_ehye_khandee

  • Hero Member
  • *****
  • Posts: 1415
  • Karma: +0/-0
Possible with NESS?
« Reply #4 on: February 15, 2012, 06:52:43 pm »


               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 .
                     
                  


            

Legacy_YeOlde

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
Possible with NESS?
« Reply #5 on: February 15, 2012, 07:39:03 pm »


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

               
            

Legacy_ehye_khandee

  • Hero Member
  • *****
  • Posts: 1415
  • Karma: +0/-0
Possible with NESS?
« Reply #6 on: February 16, 2012, 01:35:35 am »


               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 .
                     
                  


            

Legacy_YeOlde

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
Possible with NESS?
« Reply #7 on: February 16, 2012, 09:20:44 am »


               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)
               
               

               
            

Legacy_ehye_khandee

  • Hero Member
  • *****
  • Posts: 1415
  • Karma: +0/-0
Possible with NESS?
« Reply #8 on: February 16, 2012, 11:37:55 am »


               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?
               
               

               
            

Legacy_YeOlde

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
Possible with NESS?
« Reply #9 on: February 16, 2012, 12:24:10 pm »


               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
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Possible with NESS?
« Reply #10 on: February 16, 2012, 02:01:22 pm »


               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.
               
               

               
            

Legacy_YeOlde

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
Possible with NESS?
« Reply #11 on: February 17, 2012, 11:18:46 am »


               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!
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Possible with NESS?
« Reply #12 on: February 17, 2012, 01:20:19 pm »


               Why not check in the heartbeat script whether they need to keep walking to their destination?
               
               

               
            

Legacy_YeOlde

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
Possible with NESS?
« Reply #13 on: February 17, 2012, 04:00:18 pm »


               You guys make everything sound so easy.. 'Posted
I'll try and do my best - thanks 'Posted
               
               

               


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


            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Possible with NESS?
« Reply #14 on: February 18, 2012, 02:46:01 am »


               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.