URL:
  <http://gna.org/bugs/?20188>

                 Summary: Event-based abilities
                 Project: Battle for Wesnoth
            Submitted by: mrdarkunknown
            Submitted on: Thu 20 Sep 2012 11:17:42 AM GMT
                Category: Feature Request
                Severity: 1 - Wish
                Priority: 5 - Normal
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.11
        Operating System: Linux

    _______________________________________________________

Details:

I would be pleased if it was allowed to place [event]s into the subtags of
[abilities] and [specials] and [set_specials], like [leadership], [slows], or
[damage] (or [dummy]). These events would have the same effect as if they were
in [unit_type]. Too many UMC coders fail to understand the [+tag] use syntax,
suggest dumb things on the forums, claim that it is not possible to add things
like feeding with [object]s... it is generally hard to understand it, and the
whole usage of event based abilities/weapon specials is very clumsy (other
macros needed when it's added with advancements, other when added with objects
(and the event is not passed on into next scenarios)).

I mean something like this:
    [dummy]
        id=feeding
        name= _ "feeding"
        female_name= _ "female^feeding"
        description=_ "Feeding:
This unit gains 1 hitpoint added to its maximum whenever it kills a living
unit."
         [event]
            id=ability_feeding_die #Preferably, id and first_time_only=no 
should be
added automatically, id according to the id of the ability
            name=die
            first_time_only=no
            [filter]
                [not]
                    [filter_wml]
                        [status]
                            not_living="yes"
                        [/status]
                    [/filter_wml]
                [/not]
            [/filter]

            [filter_second]
                ability=feeding
            [/filter_second]

            [unstore_unit]
                variable=second_unit
                {COLOR_HEAL}
                text= _ "+1 max HP"
                find_vacant=no
            [/unstore_unit]

            [object]
                silent=yes
                duration=forever

                [filter]
                    x,y=$x2,$y2
                [/filter]

                [effect]
                    apply_to=hitpoints
                    increase_total=1
                    increase=1
                [/effect]
            [/object]
        [/event]
    [/dummy]




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?20188>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to