Changes between Version 7 and Version 8 of Triggers


Ignore:
Timestamp:
Jun 23, 2014, 10:32:04 AM (10 years ago)
Author:
sanderd17
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Triggers

    v7 v8  
    141141|| `OnResearchFinished`    || `{"enabled": bool}`                     || `{"player": playerId, "tech": templateName}` || ||
    142142|| `OnResearchQueued`      || `{"enabled": bool}`                     || `{"playerid": playerId, "technologyTemplate": templateName, "researcherEntity": entityId}` || ||
    143 || `OnPlayerCommand`       || `{"enabled": bool}`                     || ''TODO: make separate table for the huge number of possible commands'' || Any command a player sends. ||
     143|| `OnPlayerCommand`       || `{"enabled": bool}`                     || `{"player": playerId, "cmd": unitCommand}` || Any command a player sends. The "cmd" part of a command always have a type, and per type can have different other atributes. Check the documentation in the source file ([source:ps/trunk/binaries/data/mods/public/simulation/helpers/Commands.js Commands.js]) for documentation ||
    144144|| `OnInterval`            || `{"delay": number, "interval": number, "enabled": bool}` || TODO || ||
    145145|| `OnRange`               || `{"entities": [entityId], "players": [playerId], "minRange": number, "maxRange": number, "requiredComponent": componentId, "enabled": bool}` || `{"added": [entityId], "removed": [entityId], "currenctCollection": [entityId]}` ||  ||