Archer30
Posts: 1175
|
|
09.04.2021 14:09 |
|
Berserker
Posts: 16657
|
|
11.04.2021 16:59 |
|
Archer30
Posts: 1175
|
|
11.04.2021 19:19 |
|
Berserker
Posts: 16657
|
It's a useful wrapper over IF:G. You can build your dialog by steps (not in a single call) or using loops. You can check result Value, not item flag. You get item index as result and not bitset. You can select item by its associated value and not by bitmask or position. For instance, for a choice of resources you may set
Item "Gold" = (RES_GOLD), "Ore" = (RES_ORE) and get final result without complex logic. Just try an example from docs.
You can even assign some tag like global variable name to each item and determine the tag of selected item later.
Simple example: select of 4 heroes or Cancel. Assign 4 hero names to items and value will be hero ID. If result value >= 0, then it's hero ID. Fast and simple:
Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
|
|
11.04.2021 21:54 |
|
daemon_n
Posts: 4343
|
|
12.04.2021 00:17 |
|
Berserker
Posts: 16657
|
|
12.04.2021 03:23 |
|
daemon_n
Posts: 4343
|
|
12.04.2021 07:54 |
|
Archer30
Posts: 1175
|
|
12.04.2021 12:01 |
|
daemon_n
Posts: 4343
|
|
12.04.2021 13:32 |
|
Archer30
Posts: 1175
|
Thanks daemon_n, now I get it
________
Berserker, I wonder if you are interested in fixing (optimizing) an aged issue. - The default option of Warlord's Banner dialogue isn't saved.
For example, you chose attack bonus for your pikeman stack, and then you open its warlord's banner dialogue again, it has the health bonus (first item) selected instead of attack bonus. This is confusing sometimes
Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 12.04.2021 19:43 by Archer30.)
|
|
12.04.2021 13:41 |
|