View Single Post
Re: Basic FritzBot Map Tools Info
Old
  (#9)
Maleficus
Member
 
Maleficus's Avatar
 
Status: Offline
Posts: 1,054
Join Date: May 2004
Location: Planet Earth
Default Re: Basic FritzBot Map Tools Info - 13-07-2005

NEW FEATURE:

There are now two new conditionals for your scripting pleasure:

if_obj_home_true

and

if_obj_home_false


Use these ONLY with actions that are ACTION_STEAL - ANY other action and the conditional statements will be ignored as well as whatever cmd you issued. The script system will display a warning then exit script compilation when the game starts.

ex: lets say that action 15 is the docs on ICE. There is a special action you want activated that you ONLY want to activate if the docs are stolen and you want it deactivated if docs are returned.

You would then do this:

Code:
action 15
{
   if_obj_home_false 15
	 activate_action 32 // special camp action!

   if_obj_home_true 15
	 deactivate_action 32
}

NOTE: DON'T just use this for everything! The goal system will automatically update itself and increment when the docs are stolen or returned. Normally you should just number actions you want done when the docs are taken to exactly 1 group ID higher than the doc action itself (look at BEACH as being the example).

ONLY use this for oddball maps like ROCKET or ICE where its possible to grab the docs before any of the walls are blown - this way you can guarentee the bots will do what you need them to do, no matter what.

Other than the limitation listed above, it works just like any of the other conditionals.


Dum Spiro Spero



Last edited by Maleficus; 15-07-2005 at 11:13..