Unit abilitiy
Posted: Mon Sep 17, 2012 4:41 pm
I managed to use several new abilities copying the work of others as many are doing, but I would like to understand how to do, how it works.
In Unit Ability Functions there are some descriptions on how to be done:
ALL_CHECK_<name>
UISETUP_ALL_<name>
ALL_<name>
Merr used this approach when doing the smoke
CHECK_ALL_INDIRECT_SMOKE
UISETUP_ALL_INDIRECT_SMOKE
ALL_INDIRECT_SMOKE
But as you see the ALL_CHECK as become CHECK_ALL.... which seems more logical following the convention of first the ALL_ or TILE_ or INIT_
And look at the Merge ability (using UNIT_ in place of ALL_ but also using CHECK_prefix_action, not prefix_CHECK_action:
CHECK_UNIT_MERGE
UISETUP_UNIT_MERGE
UNIT_MERGE
In Unit Ability Functions there are some descriptions on how to be done:
ALL_CHECK_<name>
UISETUP_ALL_<name>
ALL_<name>
Merr used this approach when doing the smoke
CHECK_ALL_INDIRECT_SMOKE
UISETUP_ALL_INDIRECT_SMOKE
ALL_INDIRECT_SMOKE
But as you see the ALL_CHECK as become CHECK_ALL.... which seems more logical following the convention of first the ALL_ or TILE_ or INIT_
And look at the Merge ability (using UNIT_ in place of ALL_ but also using CHECK_prefix_action, not prefix_CHECK_action:
CHECK_UNIT_MERGE
UISETUP_UNIT_MERGE
UNIT_MERGE