core.components.event.conditions.combat module

class core.components.event.conditions.combat.Combat[source]

Bases: object

combat_started(game, condition)[source]

Checks to see if combat has been started or not.

Parameters:
  • game (core.control.Control) – The main game object that contains all the game’s variables.
  • condition (Dictionary) – A dictionary of condition details. See core.components.map.Map.loadevents() for the format of the dictionary.
Return type:

Boolean

Returns:

True or False

Valid Parameters: None

Examples:

>>> condition
{'action_id': '9',
 'id': 9,
 'operator': 'is_not',
 'parameters': '',
 'type': 'combat_started',
 'x': 1,
 'y': 11}