I am working on another wonderful script that uses the following:
tChar.WalkTo( 1468, 1711, 1000 );
If the path is more than the listed 1000, does tChar walk off 1000 paces and then stop or does tChar just say screw it and stay in place?
(I didnt try to walk it off and see, but I guess thats one way to figure it)
If tChar comes to a door, how can I get tChar to walk through the door?
(I think at this point if the path is blocked, tChar says screw it and stays put)
And I left the client running so I could see where tChar ended up and somehow tChar is standing on top of a barrel. Which is not where any of the x,y should leave tChar.
Thanks!
She told me to walkto this way..
-
Mindless Automaton
- UOX3 Apprentice
- Posts: 189
- Joined: Wed May 10, 2006 3:48 am
- Has thanked: 0
- Been thanked: 1 time
- Contact:
She told me to walkto this way..
Mindless Automaton
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
-
Maarc
- Developer
- Posts: 576
- Joined: Sat Mar 27, 2004 6:22 am
- Location: Fleet, UK
- Has thanked: 0
- Been thanked: 0
- Contact:
Couple of things.
Firstly, do you have advanced pathfinding on? That'll make your life a little easier. Slower, but more accurate in the way it finds things.
Secondly, with the door, it'll depend. If it's not locked, it should be able to go in. But it might get stuck if it really shouldn't be in there
Thirdly, not sure if maxSteps is taken into account for advanced pathfinding (yes, I recognise the irony in me suggesting it). Notably, advancedPathfinding has a maxSteps of 1000 already
If what you specify is too far for maxSteps, then it'll get as close as it can then stop, would be my guess. Trying to use 1000 steps is a lot though, and might be a real performance killer. Is it not possible to, I guess, try and break it down into smaller paths? More like 50 or so at a time? Just make it in the right general direction, and use the AI event to determine if you're nearing the end of the walk path and need to kick off a new walk segment.
Just a thought.
Firstly, do you have advanced pathfinding on? That'll make your life a little easier. Slower, but more accurate in the way it finds things.
Secondly, with the door, it'll depend. If it's not locked, it should be able to go in. But it might get stuck if it really shouldn't be in there
Thirdly, not sure if maxSteps is taken into account for advanced pathfinding (yes, I recognise the irony in me suggesting it). Notably, advancedPathfinding has a maxSteps of 1000 already
If what you specify is too far for maxSteps, then it'll get as close as it can then stop, would be my guess. Trying to use 1000 steps is a lot though, and might be a real performance killer. Is it not possible to, I guess, try and break it down into smaller paths? More like 50 or so at a time? Just make it in the right general direction, and use the AI event to determine if you're nearing the end of the walk path and need to kick off a new walk segment.
Just a thought.
-
Mindless Automaton
- UOX3 Apprentice
- Posts: 189
- Joined: Wed May 10, 2006 3:48 am
- Has thanked: 0
- Been thanked: 1 time
- Contact:
Well if 1 = true, then it is on!Firstly, do you have advanced pathfinding on? That'll make your life a little easier. Slower, but more accurate in the way it finds things.
Unfortunately, it didn't work. He was stopped by a dumb dog.
http://eldritch.darktech.org/HellHed%20 ... _21.58.jpg
I moved the dog and set it to 0 and my boy just walked around the building trying to get in.
Also, if I run ahead and jump in his path, he stops.
Mindless Automaton
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
-
Mindless Automaton
- UOX3 Apprentice
- Posts: 189
- Joined: Wed May 10, 2006 3:48 am
- Has thanked: 0
- Been thanked: 1 time
- Contact:
Perhaps I am using walkto in error.
Although at game time 5:00 he does walk to the docks. The only issue was if any dynamics get in the way, he stops until its time to walk somewhere else.
Code: Select all
if ( curr_time == "5:00" )
{
tChar.WalkTo( 1484, 1768, 1000 ); //walk to docks
tChar.TextMessage( "Time for some fishin'." );
}
Mindless Automaton
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
-
Mindless Automaton
- UOX3 Apprentice
- Posts: 189
- Joined: Wed May 10, 2006 3:48 am
- Has thanked: 0
- Been thanked: 1 time
- Contact:
Just wanted to add that Pathfinding for PCs seems to function as expected.
I either walk around the dog or Being fully rested, I shove the dog out of the way.
I either walk around the dog or Being fully rested, I shove the dog out of the way.
Mindless Automaton
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)