bugBattle for Wesnoth - Bugs: bug #8813, Allow filtering for valid/invalid...

 
 
Show feedback again

bug #8813: Allow filtering for valid/invalid targets in [attack]

Submitted by:  Lari Nieminen <zookeeper>
Submitted on:  Wed 28 Mar 2007 04:36:26 PM UTC  
 
Category: Feature RequestSeverity: 2 - Minor
Priority: 5 - NormalItem Group: WML
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: trunkOperating System: all

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed 28 Mar 2007 04:36:26 PM UTC, original submission:

I'd like to be able to write filter(s) in [attack] with which the attack could be made unusable against some units (or usable only against some units) as well as usable or unusable when the user itself matches arbitrary conditions.

More specifically:

1. Allow a [filter] (a SUF) to be written inside [attack]. When opening the attack menu, the attack will only be available and listed if the filter matches the target unit. If the filter doesn't match, the attack won't be available (note: this shouldn't affect just the UI, but for example the AI as well, so the attack must be unusable, not just invisible).

2. Allow a [filter_self] (a SUF) as well, that filters on this unit using the attack. Again, when opening the attack menu, this attack would only be listed and available if the filter matches this unit (of course, assuming that the [filter], if present, matched).

Alternatively (sounds like a very viable alternative to me), a weapon special tag for disabling the attack could be implemented (something like [disable_attack]): this weapon special would render the whole attack unusable if it is active, and whether it's active or inactive would be determined in the same way as for other weapon specials. This would most likely be simpler code-wise, since the weapon special mechanisms for filtering for the target and self exist already as well as the concepts of active and inactive.

Lari Nieminen <zookeeper>
Project Member

 

(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 zookeeper (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