The Sporum - The Official Spore Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to forum index 
[Login] Login 
Advanced AI Tip: Using FOLLOW BUILDING to implement multiple MOVE TO  XML
Forum Index » Spore Galactic Adventures
Author Message
DVDMaster


Civilized Sporeon

Joined: 05/12/2009 22:00:32
Messages: 2139
Offline

In programming advanced AI, you can have multiple move to commands, but they all must go to the same locations.

To get around this, use FOLLOW and specific a building or other static item to get different paths.
For example:
FOLLOW BUILDING ONE if I'M CARRYING OBJECT ONE
FOLLOW BUILDING TWO if I'M CARRYING OBJECT TWO
FOLLOW BUILDING THREE if AWARE of OBJECT THREE
FOLLOW BUILDING FOUR if HEALTH <100
PATROL ALWAYS


One limitation of this method is that the NPC will not stop on jump pads, teleporters, or go through gates (even if holding the key) as part of the FOLLOW BUILDING rule.

[WWW]
 
Forum Index » Spore Galactic Adventures
Go to:   
 
Powered by JForum 2.1.8 © ( EA Dev Build 2012-06-21 14:10:20 ) JForum Team