Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : Imperative Brained Pathfinding
New Topic New Poll Post Reply
Poster Message
navithmastero
Level: Master Delver
Avatar
Rank Points: 220
Registered: 01-03-2012
IP: Logged
icon Imperative Brained Pathfinding (0)  
It may sound scary, but it would be nice to be able to select Brained pathfinding as a movement imperative for scripted characters. I'm a little surprised this isn't already a thing to be honest.
05-01-2017 at 05:02 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
superluminal
Level: Delver
Rank Points: 55
Registered: 05-26-2016
IP: Logged
icon Re: Imperative Brained Pathfinding (0)  
Is Imperative: Pathfinding not what you're looking for? Just pair it up with Move to Player and you have a character that follows you around as if it was brained.

____________________________
spacelike
05-01-2017 at 08:36 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
navithmastero
Level: Master Delver
Avatar
Rank Points: 220
Registered: 01-03-2012
IP: Logged
icon Re: Imperative Brained Pathfinding (0)  
Imperative: pathfinding is what stalwarts use, it's not the same as the Brained pathfinding.
05-01-2017 at 10:37 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
superluminal
Level: Delver
Rank Points: 55
Registered: 05-26-2016
IP: Logged

File: Pathfinding.hold (1021 bytes)
Downloaded 2 times.
License: Public Domain
icon Re: Imperative Brained Pathfinding (0)  
Not true. Attached is a hold proving that stalwart movement operates differently from brained movement, while brained movement and Imperative Pathfinding movement are identical.

____________________________
spacelike
05-01-2017 at 11:02 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Nuntar
Level: Smitemaster
Avatar
Rank Points: 3101
Registered: 02-20-2007
IP: Logged
icon Re: Imperative Brained Pathfinding (+1)  
And that's just not true either. The most noticeable difference is that brained movement has a list of what it considers "brain-invisible obstacles", which are treated as open floor spaces, and "brain-visible obstacles", which are treated as walls. (Monsters are brain-invisible, because in general, they may have moved by the time the path-following monster reaches them. Force arrows are brain-visible because handling them correctly would complicate things too much.) Imperative Pathfinding considers only what tiles the pathfinding NPC can actually step on, so it goes around monsters, paths across force arrows, etc.

As a corollary, brained monsters have a complex set of rules for what to do if the brain instructs them to make a move they can't actually make. This situation never arises with Imperative Pathfinding.

Other differences can be noticed. If a brained monster can't reach its target, it will move like an unbrained monster. An NPC with Imperative Pathfinding can actually path around obstacles to bring it closer to its target, even if it can't reach it. (An NPC with Imperative Pathfinding (open only) will stay put in that situation -- it won't even make a beelining move towards its target.)

Imperative Pathfinding isn't identical to stalwart movement either. The most noticeable difference there is that a stalwart will path to the closest monster in terms of number of steps, whereas Imperative Pathfinding followed by "Move to Monster" will seek out the nearest monster in absolute distance.

* * *

Getting back the original FR, there is the issue that the brain pathmap targets the player only, whereas "Imperative Brained Pathfinding" could be followed by "Move to" with any target. So it would be better as a command: "Move brained", with "Single step" as an option. Also, it could be used as a condition, so the scripter could check whether a brained move is open, and decide how the NPC should behave if not.

____________________________
50th Skywatcher
05-02-2017 at 02:32 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : Imperative Brained Pathfinding
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.