[event] My first event tagset... what am i doing wrong?

The place to post your WML questions and answers.

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.
Post Reply
absinthia
Posts: 10
Joined: June 3rd, 2021, 7:03 am

[event] My first event tagset... what am i doing wrong?

Post by absinthia »

I made the following event tagset:

Code: Select all

[event]
        name=new turn
                first_time_only=no
    [modification]         
        [effect]
            [filter]
                [status]
                    poisoned=yes
                [/status]
             [/filter]
                apply_to=hitpoints
                value=-72
            [/effect]
    [/modification]
[/event]    


, in order to make it so that at the start of a sides turn all units with the poisoned status get 72 dmg.... What am i doing and/or seeing false here?
Last edited by Pentarctagon on June 4th, 2021, 8:06 pm, edited 1 time in total.
Reason: add [code]
User avatar
Pentarctagon
Project Manager
Posts: 5526
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: [event] My first event tagset... what am i doing wrong?

Post by Pentarctagon »

[harm_unit] would be appropriate I'd say.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Celtic_Minstrel
Developer
Posts: 2166
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: [event] My first event tagset... what am i doing wrong?

Post by Celtic_Minstrel »

[modification] doesn't have any meaning inside [event]. You can substitute [modify_unit] and it will be valid (although it still may not work unless you also add a filter), but as Pentarctagon says, you probably actually want [harm_unit] instead.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
Post Reply