Berserker
Posts: 16637
|
Обновление: https://dropmefiles.com/ExWs8
Code:
[+] Added new constants to "Era Erm Framework" mod:
- ARG_SYNTAX_GET, ARG_SYNTAX_SET, ARG_SYNTAX_ADD for FU:S argument syntax types.
[+] Added new events to "Era Erm Framework" mod:
- "OnAfterBattleSetup", occuring right after "OnBeforeBattle" and "OnBeforeBattleUniversal" events.
New event allows to to be sure, that basic battle parameters (heroes, quick battle, coordinates) are set up.
- "OnBeforeBattle" and "OnBeforeBattleUniversal" events were improved, storing most of prebattle parameters in global variables.
i^battle_isQuick^: (TRUE) if quick battle is enabled, (FALSE) otherwise
i^battle_x^: Battle x-coordinate
i^battle_y^: Battle y-coordinate
i^battle_z^: Battle z-coordinate
i^battle_owner_0^: Left side owner or (NO_OWNER)
i^battle_owner_1^: Right side owner or (NO_OWNER)
i^battle_hero_0^: Left side hero or (NO_HERO)
i^battle_hero_1^: Right side hero or (NO_HERO). Any negative value is normalized into (NO_HERO)
i^battle_ai_0^: (TRUE) if left side is controlled by AI, (FALSE) otherwise.
i^battle_ai_1^: (TRUE) if right side is controlled by AI, (FALSE) otherwise.
i^battle_human_0^: (TRUE) if left side is controlled by human, (FALSE) otherwise.
i^battle_human_1^: (TRUE) if right side is controlled by human, (FALSE) otherwise.
i^battle_remote_0^: (TRUE) if left side is controlled by remote human, (FALSE) otherwise.
i^battle_remote_1^: (TRUE) if right side is controlled by remote human, (FALSE) otherwise.
i^battle_local_0^: (TRUE) if left side is controlled by local human or AI, (FALSE) otherwise.
i^battle_local_1^: (TRUE) if right side is controlled by local human or AI, (FALSE) otherwise.
i^battle_localHuman_0^: (TRUE) if left side is controlled by local human, (FALSE) otherwise.
i^battle_localHuman_1^: (TRUE) if right side is controlled by local human, (FALSE) otherwise.
i^battle_hasHuman^: (TRUE) if least one side is controlled by human, (FALSE) otherwise.
i^battle_humanOnly^: (TRUE) if all sides are controlled by humans, (FALSE) otherwise.
i^battle_aiOnly^: (TRUE) if all sides are controlled by AI, (FALSE) otherwise.
i^battle_isVisible^: (TRUE) if at least one side is human and quick battle is off, (FALSE) otherwise.
i^battle_isNetwork^: (TRUE) if it's network human vs human battle, (FALSE) otherwise.
i^battle_type^: Battle type bit mask: a collection of BATTLE_TYPE_FLAG_XXX constants.
[+] The following improvements were introduced in "Era Erm Framework" mod:
- i^battle_round^ keeps current valid round (same as in OnBattleRound event) and can be used throughout battle triggers
and in OnBattleRound condition like !?FU(OnBattleRound)&i^battle_round^=0 instead of v997.
[+] Added the following functions to "Era Erm Framework" mod:
!?FU(NewIntArray);
; Creates and returns trigger local array of integers.
; Alternative function arguments:
; (?result) The result array will have 0 items.
; (size)/(?result) The result array will have (size) items with 0 value.
; (size)/(fillValue)/(?result) The result array will have (size) items will (fillValue) value
; You may optionally specify (storageType) parameter after (?result) argument with value like M_STORED or M_TEMP.
!?FU(NewStrArray);
; Creates and returns trigger local array of strings.
; Alternative function arguments:
; (?result) The result array will have 0 items.
; (size)/(?result) The result array will have (size) items with ^^ value.
; (size)/(fillValue)/(?result) The result array will have (size) items will (fillValue) value
; You may optionally specify (storageType) parameter after (?result) argument with value like M_STORED or M_TEMP.
Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
|
|
24.10.2020 01:32 |
|