Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 1990

Faction & Era Development • Re: Rashy Era

$
0
0

Code:

diff --git a/data/RE_data/abilities_recruit_black_lich.cfg b/data/RE_data/abilities_recruit_black_lich.cfgindex 457bf52b..a0d34a82 100644--- a/data/RE_data/abilities_recruit_black_lich.cfg+++ b/data/RE_data/abilities_recruit_black_lich.cfg@@ -19,18 +19,18 @@ #define        AE_RHY_EVENT_RECRUIT_BLACKLICH     [event]         name=side turn-        [if]+        id=AE_RHY_recruitblacklich_event+        [filter_condition]             [have_unit]                 ability=AE_RHY_recruitblacklich             [/have_unit]-            [then]-                {AE_RHY_RECRUIT_MENU_BLACK_LICH}-            [/then]-        [/if]+        [/filter_condition]+        {AE_RHY_RECRUIT_MENU_BLACK_LICH}     [/event]-    # the rest is just in case something changes when recruiting/advancing a unit+    # the rest is just in case something changes when recruiting/advancing a unit (state change during turn)     [event]         name=recruit+        id=AE_RHY_recruitblacklich_event         [filter]             ability=AE_RHY_recruitblacklich         [/filter]@@ -38,6 +38,7 @@     [/event]     [event]         name=post_advance+        id=AE_RHY_recruitblacklich_event         [filter]             ability=AE_RHY_recruitblacklich         [/filter]
Different events should use different id. In this case since the events all do the same they can be

Code:

    [event]        name=side_turn,recruit,post_advance        id=AE_RHY_recruitblacklich_event        [filter_condition]            [have_unit]                ability=AE_RHY_recruitblacklich            [/have_unit]        [/filter_condition]        {AE_RHY_RECRUIT_MENU_BLACK_LICH}    [/event]

Statistics: Posted by Ravana — 43 minutes ago



Viewing all articles
Browse latest Browse all 1990

Trending Articles