Weakening attack?
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
-
- Posts: 984
- Joined: February 21st, 2006, 11:02 pm
- Location: 0x466C616D65
Weakening attack?
Is it possible to make, in WML, an attack special that when an enemy unit gets hit by this attack, its strength on all meele attacks goes down by a certain number? Basically like Slow, but effecting strength.
hey.
- Elvish_Pillager
- Posts: 8137
- Joined: May 28th, 2004, 10:21 am
- Location: Everywhere you think, nowhere you can possibly imagine.
- Contact:
It is possible to use WML events to achieve this effect in a particular scenario. It is not possible to implement this within a unit type.
It's all fun and games until someone loses a lawsuit. Oh, and by the way, sending me private messages won't work. :/ If you must contact me, there's an e-mail address listed on the website in my profile.
-
- Posts: 984
- Joined: February 21st, 2006, 11:02 pm
- Location: 0x466C616D65
I think you could make it for the whole campaign at once.
Code: Select all
#campaign infos...
#ifdef CAMPAIGN_SOMETHING
[event]
name=attack
first_time_only=no
[filter_second]
type=blocker
[/filter_second]
[object]
[filter]
[not]
description=unit
[/not]
[effect]
apply_to=attack
range=long,short
increase=-1
[/effect]
[/object]
[/event]
#don´t know how to switch back...:(
#endif
First read, then think. Read again, think again. And then post!
No, you could not. [event] must be inside [scenario]. Please, toms, learn more WML before speaking authoritatively on it.
Although this is not currently possible, it is rumored that it will be possible in 1.1.3. See this feature request for more info.
Although this is not currently possible, it is rumored that it will be possible in 1.1.3. See this feature request for more info.
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
And I hate stupid people.
The World of Orbivm
It is never explained anywhere, AKAIK. I just thought that things in the #ifdef are true as long as you play the campaign and it would be automatically inserted. It seems to be not true and would have to be defined and inserted into every scenario as a macro.turin wrote:No, you could not. [event] must be inside [scenario]. Please, toms, learn more WML before speaking authoritatively on it.
First read, then think. Read again, think again. And then post!