Lawful Evil


Fully customizable reaction system, applying actions and custom scripts during various events with filters. Players, admins can propose, pass, and revoke laws. The mod is suitable for changing gameplay of game, providing automatic protection system against griefers, rewards for certain actions etc. Has support of mods, especially economic ones. Author: Luke Perkin. Modified by ZwerOxotnik and pliesveld. Anyone can translate the mod on Crowdin.

Utilities
8 months ago
0.17 - 1.1
659

Changelog

Version: 0.11.6
Date: 2023-08-18
  Bugfixes:
    - Fixed errors when the mod tried to add/remove negative and zero items
Version: 0.11.5
Date: 2023-06-07
  Bugfixes:
    - Fixed missing buttons
    - GUI is more stable
Version: 0.11.4
Date: 2023-02-12
  Locale:
    - Added Ukrainian translation (thanks to @Met_en_Bouldry on crowdin)
Version: 0.11.3
Date: 2022-09-24
  Bugfixes:
    - Fixed possible crush due to incorrect linked law deletion (https://mods.factorio.com/mod/m-lawful-evil/discussion/632f0aa787e8c9054a0cfef6)
Version: 0.11.1
Date: 2021-12-22
  Changes:
    - Ignore messages from server
Version: 0.11.0
Date: 2021-12-22
  Changes:
    - Moved the button into player's inventory
    - Made UIs moveable
Version: 0.10.0
Date: 2021-12-22
  Changes:
    - Remade the button fully at data stage (adds full customization for other mods)
Version: 0.9.0
Date: 2021-12-21
  Changes:
    - Changed on_configuration_changed event
    - Refactored slightly
Version: 0.8.3
Date: 2021-10-08
  Changes:
    - Optimized slightly
Version: 0.8.2
Date: 2021-10-07
  Features:
    - Players can't add law with admin effects anymore
Version: 0.8.1
Date: 2021-10-07
  Bugfixes:
    - Fixed GUI of effects
Version: 0.8.0
Date: 2021-10-07
  Changes:
    - Changed style for the button
    - Slightly optimized
  Bugfixes:
    - Fixed localization
    - Fixed creation of law
Version: 0.7.3
Date: 2021-09-28
  Bugfixes:
    - Sligthly optimized
Version: 0.7.2
Date: 2021-09-01
  Bugfixes:
    - Fixed some events
Version: 0.7.1
Date: 2021-09-01
  Changes:
    - Optimized
    - Fixed some bugs
  Notes:
    - Some laws doesn't work properly
Version: 0.7.0
Date: 2021-08-30
  Changes:
    - EasyAPI is optional instead of "Multiplayer Trading" mod
Version: 0.6.2
Date: 2021-08-24
  Changes:
    - Changed button
Version: 0.6.1
Date: 2021-05-25
  Changes:
    - This mod doesn't affect campaigns anymore
Version: 0.6.0
Date: 27. 03. 2021
  Major Features:
    - Added custom scripts in laws
  Changes:
    - Changed style for laws
  Bugfixes:
    - Fixed some events in editor mode
  Notes:
    - This update for Factorio 1.1 and updated by ZwerOxotnik
Version: 0.5.1
Date: 27. 03. 2021
  Bugfixes:
    - Fixed changelog
    - Fixed event when a player mines tiles
  Notes:
    - This update for Factorio 1.1 and updated by ZwerOxotnik
Version: 0.3.33
Date: 23. 05. 2020
  Features:
    - Added new trigger clause. Laws can be triggered on player spawn now
    - Added notification about a new added law during the voting stage
  Notes:
    - This update for Factorio 0.18 and updated by pliesveld
Version: 0.3.32
Date: 23. 05. 2020
  Features:
    - Added new trigger clause. Laws can be triggered on player spawn now
    - Added notification about a new added law during the voting stage
  Notes:
    - This update for Factorio 0.17 and updated by pliesveld
Version: 0.3.31
Date: 21. 05. 2020
  Features:
    - Added new law type to make laws like guests
  Notes:
    - This update for Factorio 0.18 and updated by pliesveld
Version: 0.3.30
Date: 21. 05. 2020
  Features:
    - Added new law type to make laws like guests
  Notes:
    - This update for Factorio 0.17 and updated by pliesveld
Version: 0.3.29
Date: 16. 05. 2020
  Bugfixes:
    - Proper calling of laws during on_entity_damaged
  Notes:
    - This update for Factorio 0.18 and updated by pliesveld
Version: 0.3.28
Date: 16. 05. 2020
  Bugfixes:
    - Proper calling of laws during on_entity_damaged
  Notes:
    - This update for Factorio 0.18 and updated by pliesveld
Version: 0.3.27
Date: 12. 05. 2020
  Bugfixes:
    - Proper calling of laws during on_entity_died
  Notes:
    - This update for Factorio 0.18 and updated by pliesveld and ZwerOxotnik
Version: 0.3.26
Date: 12. 05. 2020
  Bugfixes:
    - Proper calling of laws during on_entity_died
  Notes:
    - This update for Factorio 0.17 and updated by pliesveld and ZwerOxotnik
Version: 0.3.25
Date: 10. 05. 2020
  Bugfixes:
    - Reusing group if already created (https://github.com/ZwerOxotnik/m-lawful-evil/pull/2/commits/17bd0e2b6a2562367595e0435dd84c820444f870)
  Notes:
    - This update for Factorio 0.18 and updated by pliesveld (https://github.com/ZwerOxotnik/m-lawful-evil/commits?author=pliesveld)
Version: 0.3.24
Date: 10. 05. 2020
  Bugfixes:
    - Reusing group if already created (https://github.com/ZwerOxotnik/m-lawful-evil/pull/2/commits/17bd0e2b6a2562367595e0435dd84c820444f870)
  Notes:
    - This update for Factorio 0.17 and updated by pliesveld (https://github.com/ZwerOxotnik/m-lawful-evil/commits?author=pliesveld)
Version: 0.3.17
Date: 09. 11. 2019
  Bugfixes:
    - Fixed on_research_started event (https://mods.factorio.com/mod/m-multiplayertrading/discussion/5dc6b6f7ac6472000db91e5c)
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.16
Date: 09. 11. 2019
  Bugfixes:
    - Fixed interactions with Multiplayer Trading
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.15
Date: 09. 11. 2019
  Bugfixes:
    - Fixed revoking
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.14
Date: 08. 11. 2019
  Changes:
    - Improved localization
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.13
Date: 08. 11. 2019
  Changes:
    - Updated info
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.12
Date: 08. 11. 2019
  Changes:
    - Changed user interface
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.11
Date: 08. 11. 2019
  Bugfixes:
    - Fixed linked laws
    - Fixed deleting of laws
  Changes:
    - Improved localization
    - Changed user interface
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.10
Date: 07. 11. 2019
  Changes:
    - Updated mod description
    - Improved localization
    - Each law has id
    - Refactoring
    - Optimization
    - The mod doesn't store revoked laws!
    - Changed functions of the mod interface
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.9
Date: 07. 11. 2019
  Features:
    - Added interface "lawful-evil" with functions "get_event_name", "get_law_by_index", "GetNewLaw", "InsertNewLaw", "RevokeLaw"
    - Added custom events "on_pre_revoke_law", "on_passed_law"
  Bugfixes:
    - Fixed passing laws
  Changes:
    - Improved ru locale
    - Updated mod description
    - Changed dependencies
    - Refactoring
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.8
Date: 07. 11. 2019
  Changes:
    - Improved localization
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.7
Date: 07. 11. 2019
  Changes:
    - Improved localization
    - Fixed revoking of laws
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.6
Date: 06. 11. 2019
  Changes:
    - Updated ru locale
    - Changed dependencies
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.5
Date: 06. 11. 2019
  Bugfixes:
    - Fixed lost button in saves without the mod
  Changes:
    - Refactoring
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.4
Date: 06. 11. 2019
  Bugfixes:
    - Fixed related to revoking laws
    - Fixed on_entity_died, on_entity_damaged events
  Changes:
    - Refactoring
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.3
Date: 06. 11. 2019
  Bugfixes:
    - Fixed bugs related to desync
    - Fixed offences
  Changes:
    - Improved localization
    - Counts votes in minutes instead of seconds
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.2
Date: 06. 11. 2019
  Features:
    - Improved localization
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.1
Date: 06. 11. 2019
  Features:
    - Added Russian locale
  Changes:
    - Votes in minutes instead of seconds (default: 5 minutes, min: 1, max: 720)
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.3.0
Date: 05. 11. 2019
  Notes:
    - This update for Factorio 0.17 and updated by ZwerOxotnik
    - I need much more tests etc
Version: 0.2.0
Date: 22. 01. 2019
  Features:
    - Link laws so they are all passed as one. Useful for preventing build then mine exploits.
    - "If fine fails" effect, that is triggered if a previous fine has failed to execute.
    - "If nth offence" effect, useful for only triggering effects after multiple offences.
    - "When player tiles" and "When player mines tiles" clause types.
Version: 0.1.1
Date: 18. 01. 2019
  Bugfixes:
    - "similar entity type" option now works as intended
Version: 0.1.0
Date: 18. 01. 2019
  Features:
    - Released