Changes between Version 6 and Version 7 of Triggers
- Timestamp:
- Jun 23, 2014, 10:19:27 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Triggers
v6 v7 136 136 ||= Event name =||= Accepted data format =||= Returned data format =||= Notes =|| 137 137 || `OnStructureBuilt` || `{"enabled": bool}` || `{"building": constructedBuilding}` || Happens when a foundation gets finished or a building gets completely repaired || 138 || `OnConstructionStarted` || `{"enabled": bool}` || TODO ||138 || `OnConstructionStarted` || `{"enabled": bool}` || `{"foundation": entityId, "template": this.templateName}` || Happens when the building of the foundation starts || 139 139 || `OnTrainingFinished` || `{"enabled": bool}` || `{"entities": [entityId], "owner": playerId, "metadata": metadata}` || Happens when training of some units is finished || 140 || `OnTrainingQueued` || `{"enabled": bool}` || TODO|| ||141 || `OnResearchFinished` || `{"enabled": bool}` || TODO|| ||142 || `OnResearchQueued` || `{"enabled": bool}` || TODO|| ||140 || `OnTrainingQueued` || `{"enabled": bool}` || `{"playerid": playerId, "unitTemplate": templateName, "count": number, "metadata": metadata, "trainerEntity": entityId}` || || 141 || `OnResearchFinished` || `{"enabled": bool}` || `{"player": playerId, "tech": templateName}` || || 142 || `OnResearchQueued` || `{"enabled": bool}` || `{"playerid": playerId, "technologyTemplate": templateName, "researcherEntity": entityId}` || || 143 143 || `OnPlayerCommand` || `{"enabled": bool}` || ''TODO: make separate table for the huge number of possible commands'' || Any command a player sends. || 144 144 || `OnInterval` || `{"delay": number, "interval": number, "enabled": bool}` || TODO || ||