[Done for V0.39] Making monsters follow a pre-defined path
Posted: Tue Apr 25, 2006 11:26 am
Not directly associated with attack/sense abilities but something that appears to be needed in some way.
A FLOORITEM_PATH could be handy.
Give each a number 0 to last one. 0 is the starting point adn would require to be triggered to initiate the path sequence.
Give each tile a direction to tell the pathed monster which way to face from this tile to the next in the sequence. Overriding normal forward facing walking.
Give each tile a time, the time it takes to arrive at the next tile. (either have a wait or use multiple tiles in one space)
Path Item 0 would require a monster (pref cloned) which would appear at path 0 when triggered.
Paths could be places adjacent:
making for "lower strain" on the engine.
Could be used to script events such as guards running for reinforcements or a guide to show you to a location.
Some of this can be done with lots of telepoters and monsters with altered facing images, but I think some sort of dedicated pathing system might be more appropriate now.
Something for the future that has actually arrived.
A FLOORITEM_PATH could be handy.
Give each a number 0 to last one. 0 is the starting point adn would require to be triggered to initiate the path sequence.
Give each tile a direction to tell the pathed monster which way to face from this tile to the next in the sequence. Overriding normal forward facing walking.
Give each tile a time, the time it takes to arrive at the next tile. (either have a wait or use multiple tiles in one space)
Path Item 0 would require a monster (pref cloned) which would appear at path 0 when triggered.
Paths could be places adjacent:
Code: Select all
0X000000
00000000
00000000
00000000
00000000
0X00X000
00000000
0000X000
Could be used to script events such as guards running for reinforcements or a guide to show you to a location.
Some of this can be done with lots of telepoters and monsters with altered facing images, but I think some sort of dedicated pathing system might be more appropriate now.
Something for the future that has actually arrived.
