Gobligine/doc/trigger.txt
2003-07-03 16:48:48 +00:00

81 lines
3.6 KiB
Text

_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
(C) Copyright 2002-2003 by The Stratagus Project. Distributed under the GPL.
$Id$
******************************** ATTENTION ***********************************
*
* THIS FILE ONLY CONTAINS SUGGESTIONS FOR FUTURE TRIGGERS. FOR DOCUMENTATION
* ON TRIGGERS SEE doc/ccl/triggers.html.
*
******************************************************************************
-- resource
(if-resource-least <player> <op> <quantity> <resource>)
o player has the least quantity of resources
This condition is used to specify how many or how little resources
(gold, oil, lumber) a player must have at least for the action.
(if-resource-most <player> <op> <quantity> <resource>)
o player the most quantity of resources
This condition is used to specify how many or how little resources
(gold, oil, lumber) a player must have at most for the action.
-- unit
(if-near <player> <op> <quantity> <unit> <location>)
o player has the quantity of unit-type near to location
Which unit and how many units must the player have near to a location
for the action.
(if-unit-least <player> <op> <quantity> <unit>)
o player has the least quantity of unit-type
Which unit and how many units must control the player at least for
the action.
(if-near-least <player> <op> <quantity> <unit> <location>)
o player has the least quantity of unit-type near to location
Which unit and how many units must the player at least have near to a
location for the action.
(if-near-unit-least <player> <op> <quantity> <unit> <location>)
o player has the least quantity of unit-type near to unit-type
Which unit and how many units must the player at least have near to
an other unit for the action.
(if-unit-most <player> <op> <quantity> <unit>)
o player has the most quantity of unit-type
Which unit and how many units must control the player at most for
the action.
(if-near-most <player> <op> <quantity> <unit> <location>)
o player has the most quantity of unit-type near to location
Which unit and how many units must the player at most have near to a
location for the action.
(if-near-unit-most <player> <op> <quantity> <unit> <unit>)
o player has the most quantity of unit-type near to unit-type
Which unit and how many units must the player at most have near to
an other unit for the action.
(if-deaths <player> <op> <unit>)
o player has quantity of unit dies
Which quantity of the unit must be lost by the player for the
action.
(if-kills-least <player> <op> <unit>)
o player has the least quantity of unit-type killed
The player has killed the quantity of the unit at least for the
action.
(if-kills-most <player> <op> <unit>)
o player has the most quantity of unit killed
The player has killed the quantity of the unit at most for the action.
The most are needed if a player should win for a number kills, but must have
more kills than all other players.
The least are needed if a special action should be done for the weakest
player.