Current time: 27.11.2024, 09:43 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Era Erm Framework
» Стандартная библиотека Эры
Author Message
Berserker Offline
Administrators

Posts: 16657
Post: #1
Кирпич 
Обновление: 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
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Era Erm Framework - Berserker - 24.10.2020 01:32
RE: Era Erm Framework - Berserker - 25.10.2020, 05:09
RE: Era Erm Framework - Bes - 25.10.2020, 20:05
RE: Era Erm Framework - Berserker - 25.10.2020, 21:44
RE: Era Erm Framework - Bes - 28.10.2020, 05:52
RE: Era Erm Framework - Berserker - 28.10.2020, 06:12
RE: Era Erm Framework - Bes - 28.10.2020, 06:24
RE: Era Erm Framework - slater777 - 28.10.2020, 21:14
RE: Era Erm Framework - Berserker - 29.10.2020, 00:38
RE: Era Erm Framework - daemon_n - 11.01.2021, 15:01
RE: Era Erm Framework - Berserker - 11.01.2021, 16:35
RE: Era Erm Framework - Berserker - 11.01.2021, 17:48
RE: Era Erm Framework - daemon_n - 09.02.2021, 12:14
RE: Era Erm Framework - XEPOMAHT - 09.02.2021, 12:24
RE: Era Erm Framework - daemon_n - 09.02.2021, 13:26
RE: Era Erm Framework - daemon_n - 07.09.2021, 23:28
RE: Era Erm Framework - Archer30 - 07.09.2021, 23:39
RE: Era Erm Framework - daemon_n - 08.09.2021, 03:03
RE: Era Erm Framework - Archer30 - 08.09.2021, 08:07
RE: Era Erm Framework - Berserker - 16.12.2021, 23:27
RE: Era Erm Framework - daemon_n - 17.12.2021, 00:19
RE: Era Erm Framework - XEPOMAHT - 17.12.2021, 10:19
RE: Era Erm Framework - igrik - 17.12.2021, 11:54
RE: Era Erm Framework - igrik - 17.12.2021, 07:12
RE: Era Erm Framework - SergOz - 17.12.2021, 10:54
RE: Era Erm Framework - daemon_n - 17.12.2021, 13:00
RE: Era Erm Framework - daemon_n - 17.12.2021, 22:52
RE: Era Erm Framework - igrik - 18.12.2021, 21:19
RE: Era Erm Framework - Bes - 18.12.2021, 21:49
RE: Era Erm Framework - daemon_n - 18.12.2021, 22:18
RE: Era Erm Framework - XEPOMAHT - 18.12.2021, 22:35
RE: Era Erm Framework - igrik - 18.12.2021, 22:45
RE: Era Erm Framework - Bes - 19.12.2021, 01:36
RE: Era Erm Framework - daemon_n - 19.12.2021, 02:42
RE: Era Erm Framework - daemon_n - 05.02.2022, 22:19
RE: ERA III - Archer30 - 07.09.2021, 21:14
RE: ERA III - daemon_n - 12.12.2021, 14:42
RE: ERA III - Berserker - 12.12.2021, 21:21
RE: ERA III - daemon_n - 16.12.2021, 18:11

Forum Jump:

Powered by MyBB Copyright © 2002-2024 MyBB Group