Pfhortran handles monsters with a great degree of control. thanks to Mark Levin. You can select a monster, tell it where to go, who to attack, who its friends are, who its enemies are, what its strengths and weaknesses are, and more. You can also tell a monster to attack another monster (even if that other monster is normally its friend.)
Before working with monsters, they must be indexed, or identified. To index an individual monster, you must tell Pfhortran a few things about it, including what kind of monster it is and the polygon on which it is standing.
After a monster has been indexed, it is from that point on identified by a number. Whenever you tell Pfhortran to do something involving a specific monster, you must pass Pfhortran that monster's index, so it knows what monster it is dealing with.
To learn the syntax of the monster-controlling commands, refer to the Monster Action Instructions and the Monster Property instructions.
You may also want to download Pfhortal Kombat, a truly great example of how Pfhortran can be made to control monsters. In this map, you select two monsters to pit against each other in an arena-style deathmatch. Once the combatants have been chosen, underlying Pfhortran commands tell the monsters exactly how to approach and engage each other.
Download Pfhortal Kombat
|
|