scripting:ems
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
scripting:ems [2019/06/28 19:58] – madshadow | scripting:ems [2022/01/11 23:27] (aktuell) – madshadow | ||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
===== Verwendung ===== | ===== Verwendung ===== | ||
Folgendes Skript kann ins Mapskript kopiert werden: | Folgendes Skript kann ins Mapskript kopiert werden: | ||
- | <code lua>-- ################################################################################################## | + | <code lua> |
- | -- # # | + | -- ################################################################################################### |
- | -- # # | + | |
- | -- # | + | |
-- # # | -- # # | ||
- | -- # | ||
-- # # | -- # # | ||
-- # | -- # | ||
Zeile 60: | Zeile 57: | ||
-- ******************************************************************************************** | -- ******************************************************************************************** | ||
Version = 1, | Version = 1, | ||
+ | |||
+ | -- ******************************************************************************************** | ||
+ | -- * Debug Mode | ||
+ | -- * Activates the ems debug mode if set to true. | ||
+ | -- * This will enable key bindings to achieve some common debug tasks. | ||
+ | -- * Ingame a button with the text " | ||
+ | -- * (Default: false) | ||
+ | -- ******************************************************************************************** | ||
+ | ActivateDebug = true, | ||
+ | |||
+ | -- ******************************************************************************************** | ||
+ | -- * Custom debug functions | ||
+ | -- * If ActivateDebug is set to true, these two debug methods can be called by pressing N or M | ||
+ | -- * _fromPlayer - the id of the player that pressed the key | ||
+ | -- * _targetPlayerId1 - a player id between 1-8 (or 16 on cnetwork), that the caller wants to target | ||
+ | -- * _targetPlayerId2 - a second player id | ||
+ | -- * _x, _y - the position of the callers mouse at the time of pressing the key | ||
+ | -- * Example content: | ||
+ | -- * SetFriendly(_targetPlayerId1, | ||
+ | -- * Logic.CreateEntity(Entities.PU_Serf, | ||
+ | -- ******************************************************************************************** | ||
+ | CustomDebugFunc1 = function(_fromPlayer, | ||
+ | Logic.CreateEntity(Entities.PU_Serf, | ||
+ | end, | ||
+ | CustomDebugFunc2 = function(_fromPlayer, | ||
+ | Logic.CreateEntity(Entities.PU_Serf, | ||
+ | end, | ||
-- ******************************************************************************************** | -- ******************************************************************************************** | ||
Zeile 66: | Zeile 90: | ||
-- * Similar use to FirstMapAction/ | -- * Similar use to FirstMapAction/ | ||
-- ******************************************************************************************** | -- ******************************************************************************************** | ||
- | |||
Callback_OnMapStart = function() | Callback_OnMapStart = function() | ||
AddPeriodicSummer(60); | AddPeriodicSummer(60); | ||
Zeile 113: | Zeile 136: | ||
Callback_GameModeSelected = function(_gamemode) | Callback_GameModeSelected = function(_gamemode) | ||
end, | end, | ||
- | |||
- | --[[ | ||
- | Ressources | ||
- | You can specify the ressources for a player in one of the tables Normal, FastGame, SpeedGame | ||
- | by adding a key entry with the playerId containing 6 entries which either contain a number | ||
- | or a function that returns a number as amount for the respective ressource | ||
- | If a player is not specified, he will get the ressources of player 1 | ||
- | So if you want to give the same amount of ressources to all players, just specify player 1 | ||
- | ]] | ||
-- ******************************************************************************************** | -- ******************************************************************************************** | ||
Zeile 199: | Zeile 213: | ||
-- ******************************************************************************************** | -- ******************************************************************************************** | ||
DisableStandardVictoryCondition = false, | DisableStandardVictoryCondition = false, | ||
- | + | ||
+ | -- ******************************************************************************************** | ||
+ | -- * NeedsCppLogic | ||
+ | -- * If true, the script will check if all players have mcbs CppLogic dll loaded | ||
+ | -- * Set to true if you use function of CppLogic | ||
+ | -- * (default: false) | ||
+ | -- ******************************************************************************************** | ||
+ | NeedsCppLogic = false, | ||
+ | |||
+ | -- ******************************************************************************************** | ||
+ | -- * NeedsS5CommunityLib | ||
+ | -- * If true, the script will check if all players have the same version of the S5CommunityLib | ||
+ | -- * Set to true if you use function of the S5CommunityLib | ||
+ | -- * (default: false) | ||
+ | -- ******************************************************************************************** | ||
+ | NeedsS5CommunityLib = false, | ||
-- ******************************************************************************************** | -- ******************************************************************************************** | ||
-- * Units | -- * Units | ||
Zeile 223: | Zeile 253: | ||
-- * Buildings | -- * Buildings | ||
Bridge = 1, | Bridge = 1, | ||
+ | |||
-- * Markets | -- * Markets | ||
- | -- * 0 = Building markets is forbidden | + | -- * -1 = Building markets is forbidden |
- | -- * 1 = Building markets is allowed | + | -- * 0 = Building markets is allowed |
- | -- * greater then one = Markets are allowed and limited to the number given | + | -- * >0 = Markets are allowed and limited to the number given |
Markets = 0, | Markets = 0, | ||
Zeile 250: | Zeile 281: | ||
WeatherChangeLockTimer = 3, | WeatherChangeLockTimer = 3, | ||
+ | -- * Enables chaning to a specific weather with the weather tower | ||
MakeSummer = 1, | MakeSummer = 1, | ||
MakeRain | MakeRain | ||
Zeile 258: | Zeile 290: | ||
-- * HQRush | -- * HQRush | ||
- | -- * If set to true, Headquarters are invulernerable as long the player still has village centers | + | -- * If set to 1, Headquarters are invulernerable as long the player still has village centers |
- | HQRush | + | AntiHQRush |
+ | |||
+ | -- * If set to 1, Players can't abuse blessing and overtime in combination for unlimited work | ||
BlessLimit = 1, | BlessLimit = 1, | ||
+ | |||
+ | -- * if set to true, Players are not able to lose their Headquarter. | ||
+ | InvulnerableHQs = false, | ||
-- * Heroes | -- * Heroes | ||
+ | -- * NumberOfHeroesForAll sets the number of heroes every player can pick | ||
+ | -- * 1 behind each hero defines if the hero is allowed; 0 for forbidden | ||
+ | NumberOfHeroesForAll = 2, | ||
Dario | Dario | ||
Pilgrim | Pilgrim |
scripting/ems.1561751881.txt.gz · Zuletzt geändert: 2021/09/18 19:00 (Externe Bearbeitung)