Update RELEASE_NOTES
Since the looping tags are a pretty significant change.
This commit is contained in:
parent
98863f41f3
commit
040a44d214
1 changed files with 5 additions and 1 deletions
|
@ -88,7 +88,11 @@ A new tag [resource] was introduced which can contain [event] and [lua] similar
|
|||
[/rasection]
|
||||
|
||||
[rasection="New $other_unit variable for some filters"]
|
||||
A new [tt]$other_unit[/tt] variable is accessible in some unit filters. This can be used in [tt]filter_adjacent[/tt] and similar contexts to create filters that are relative to the main unit. The backstab and leadership abilities have been rewritten to take advantage of this feature, which allows leadership to be implemented by a single macro, [tt]{ABILITY_LEADERSHIP}[/tt]. Although the old [tt]{ABILITY_LEADERSHIP_LEVEL_3}[/tt] etc macros are still available, they merely point to the new one. As a result, anyone who used a leadership level not matching the unit's level (for example, level 4 leadership on a level 3 unit) will find that this no longer works as expected.
|
||||
A new [tt]$other_unit[/tt] variable is accessible in some unit filters. This can be used in [tt][filter_adjacent][/tt] and similar contexts to create filters that are relative to the main unit. The backstab and leadership abilities have been rewritten to take advantage of this feature, which allows leadership to be implemented by a single macro, [tt]{ABILITY_LEADERSHIP}[/tt]. Although the old [tt]{ABILITY_LEADERSHIP_LEVEL_3}[/tt] etc macros are still available, they merely point to the new one. As a result, anyone who used a leadership level not matching the unit's level (for example, level 4 leadership on a level 3 unit) will find that this no longer works as expected.
|
||||
[/rasection]
|
||||
|
||||
[rasection="New looping and flow control tags"]
|
||||
A number of new WML tags have been added for different types of loops as well as loop flow control. The new looping tags are [tt][for][/tt], [tt][foreach][/tt], and [tt][repeat][/tt], while the flow control tags are [tt][continue][/tt], [tt][break][/tt], and [tt][return][/tt]. The [tt]{FOREACH}[/tt] and [tt]{REPEAT}[/tt] macros have been altered to make use of these new loops, which fixes an issue whereby the [tt]{REPEAT}[/tt] macro would not work correctly if nested in itself.
|
||||
[/rasection]
|
||||
|
||||
==========
|
||||
|
|
Loading…
Add table
Reference in a new issue