bugBattle for Wesnoth - Bugs: bug #20188, Event-based abilities

 
 
Show feedback again

bug #20188: Event-based abilities

Submitted by:  Dugi <mrdarkunknown>
Submitted on:  Thu 20 Sep 2012 11:17:42 AM UTC  
 
Category: Feature RequestSeverity: 1 - Wish
Priority: 5 - NormalItem Group: WML
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: 1.11Operating System: Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 20 Sep 2012 11:17:42 AM UTC, original submission:

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]

Dugi <mrdarkunknown>

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mrdarkunknown (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup