Difference between revisions of "List of all event conditions"

From VCMI Project Wiki
Jump to: navigation, search
(Win/Loss conditions)
(Win/Loss conditions)
Line 6: Line 6:
 
{{todo}}
 
{{todo}}
  
=== have (pickable objects) ===
+
=== have_0 (pickable objects) ===
 
Have artifacts or resources
 
Have artifacts or resources
  
Line 14: Line 14:
 
* value - amount
 
* value - amount
  
=== have ===
+
=== have_0 ===
 
Any player must control smth
 
Any player must control smth
  
Line 23: Line 23:
 
* object - optional, instance id, if set defines particular object
 
* object - optional, instance id, if set defines particular object
  
===haveBuilding===
+
===haveBuilding_0===
 
Player must control certain building, also includes H3 "build Grail" condition
 
Player must control certain building, also includes H3 "build Grail" condition
 
* position - town in which this structure must be built, optional
 
* position - town in which this structure must be built, optional
Line 31: Line 31:
 
Note: if position is not set - building can be built in any town
 
Note: if position is not set - building can be built in any town
  
===destroy===
+
===destroy_0===
 
Covers objectives where player must remove from map certain object(s). This covers defeating hero, creature or even something like "collect all treasure chests"
 
Covers objectives where player must remove from map certain object(s). This covers defeating hero, creature or even something like "collect all treasure chests"
 
* position - position of object to destroy, optional
 
* position - position of object to destroy, optional
Line 38: Line 38:
 
* object - optional, instance id
 
* object - optional, instance id
 
* value - optional, default all, amount of object to destroy
 
* value - optional, default all, amount of object to destroy
===daysPassed===
+
===daysPassed_0===
 
Player must survive or win in certain number of days
 
Player must survive or win in certain number of days
 
* position - N/A
 
* position - N/A
Line 45: Line 45:
  
 
Note: covers both "win in X days" as well as "survive for X days" conditions, depending on block in which this objective will be placed.
 
Note: covers both "win in X days" as well as "survive for X days" conditions, depending on block in which this objective will be placed.
===isHuman===
+
===isHuman_0===
 
Helper condition to allow ai-only or human-only conditions
 
Helper condition to allow ai-only or human-only conditions
 
* value - 0 will trigger this objective for AI players, 1 will trigger it for humans
 
* value - 0 will trigger this objective for AI players, 1 will trigger it for humans
  
===standardWin===
+
===standardWin_0===
 
Standard win condition - defeat all enemies
 
Standard win condition - defeat all enemies
  
===daysWithoutTown===
+
===daysWithoutTown_0===
 
Standard lose condition - stay for X days without towns
 
Standard lose condition - stay for X days without towns
 
* value - number of days to survive, 0 = player dies on the next day.
 
* value - number of days to survive, 0 = player dies on the next day.
Line 58: Line 58:
 
Note: if this condition is not present, player can be eliminated only by defeating all his heroes and capturing all his towns.
 
Note: if this condition is not present, player can be eliminated only by defeating all his heroes and capturing all his towns.
  
===constValue===
+
===constValue_0===
 
Constant value that can not be changed
 
Constant value that can not be changed
 
* value - evaluates to false if set to 0 and to true when set to 1
 
* value - evaluates to false if set to 0 and to true when set to 1

Revision as of 17:09, 22 February 2016

Win/Loss conditions

version 1.0

These are event conditions that can be used in triggered events that control win/loss.

[Todo]

have_0 (pickable objects)

Have artifacts or resources

  • position - optional, if set work like transport item or have on particular hero
  • type - object type ("resource", "artifact", "creature")
  • subtype - object subtype
  • value - amount

have_0

Any player must control smth

  • position - optional, if set defines particular object
  • type - object type
  • subtype - object subtype
  • value - optional, default all objects
  • object - optional, instance id, if set defines particular object

haveBuilding_0

Player must control certain building, also includes H3 "build Grail" condition

  • position - town in which this structure must be built, optional
  • type - building ID to construct
  • value - N/A

Note: if position is not set - building can be built in any town

destroy_0

Covers objectives where player must remove from map certain object(s). This covers defeating hero, creature or even something like "collect all treasure chests"

  • position - position of object to destroy, optional
  • type - type of object to destroy
  • subtype - type of object to destroy
  • object - optional, instance id
  • value - optional, default all, amount of object to destroy

daysPassed_0

Player must survive or win in certain number of days

  • position - N/A
  • type - N/A
  • value - number of days for this objective to trigger

Note: covers both "win in X days" as well as "survive for X days" conditions, depending on block in which this objective will be placed.

isHuman_0

Helper condition to allow ai-only or human-only conditions

  • value - 0 will trigger this objective for AI players, 1 will trigger it for humans

standardWin_0

Standard win condition - defeat all enemies

daysWithoutTown_0

Standard lose condition - stay for X days without towns

  • value - number of days to survive, 0 = player dies on the next day.

Note: if this condition is not present, player can be eliminated only by defeating all his heroes and capturing all his towns.

constValue_0

Constant value that can not be changed

  • value - evaluates to false if set to 0 and to true when set to 1

Win/Loss conditions (old)

version 0.0

These are event conditions that can be used in triggered events that control win/loss.

haveArtifact

Any player hero must hold an artifact

  • position - N/A
  • type - required artifact ID
  • value - N/A

Possible changes: position that indicates object to which artifact must be transported (town or hero)

haveCreatures

Player must control certain number of creatures

  • position - N/A
  • type - creature ID to collect
  • value - required amount of creatures

haveResources

Player must have certain amount of resources

  • position - N/A
  • type - resource ID
  • value - required amount of resource

haveBuilding

Player must control certain building, also includes H3 "build Grail" condition

  • position - town in which this structure must be built, optional
  • type - building ID to construct
  • value - N/A

Note: if position is not set - building can be built in any town

control

Covers all conditions that require certain object(s) to be controlled by player

  • position - position of object to control, optional
  • type - type of object to control.
  • value - N/A

Note: If position is not set - all objects of this type must be captured

destroy

Covers objectives where player must remove from map certain object(s). This covers defeating hero, creature or even something like "collect all treasure chests"

  • position - position of object to destroy, optional
  • type - type of object to destroy
  • value - N/A

Note: If position is not set - all objects of this type must be destroyed

transport

Transport artifact in certain town

  • position - town to which this artifact must be transported
  • type - artifact ID to transport
  • value - N/A

Possible changes: merge transport into haveArtifact

daysPassed

Player must survive or win in certain number of days

  • position - N/A
  • type - N/A
  • value - number of days for this objective to trigger

Note: covers both "win in X days" as well as "survive for X days" conditions, depending on block in which this objective will be placed.

isHuman

Helper condition to allow ai-only or human-only conditions

  • position - N/A
  • type - N/A
  • value - 0 will trigger this objective for AI players, 1 will trigger it for humans

standardWin

Standard win condition - defeat all enemies

  • position - N/A
  • type - N/A
  • value - N/A

daysWithoutTown

Standard lose condition - stay for X days without towns

  • position - N/A
  • type - N/A
  • value - number of days to survive, 0 = player dies on the next day.

Note: if this condition is not present, player can be eliminated only by defeating all his heroes and capturing all his towns.

constValue

Constant value that can not be changed

  • position - N/A
  • type - N/A
  • value - evaluates to false if set to 0 and to true when set to 1