Missing Tag for Event

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
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Missing Tag for Event

Post by monochromatic »

I've been writing this scenario. When I try to test the scenario, the game tells me I am "missing tag for event". I looked up and down the WML, and I don't see any mistakes. I have attached the WML:

Code: Select all

#textdomain wesnoth-bts
[scenario]
    id=02_The_Northern_Guard
    name= _ "The Northern Guard"
    map_data="{@campaigns/By_the_Sword/maps/The_Northern_Guard}"

    {TURNS 32 28 24}

    {SCENARIO_MUSIC breaking_the_chains.ogg}
    {EXTRA_SCENARIO_MUSIC elvish-theme.ogg}
    {EXTRA_SCENARIO_MUSIC elf-land.ogg}

    {DEFAULT_SCHEDULE}

    next_scenario=03_The_Next_Day
    victory_when_enemies_defeated=yes

    [story]
        [part]
            background=story/bigmap.jpg
            show_title=yes
        [/part]
        [part]
            story=_ "Part I: The Awakening of a Hero"
        [/part]
        [part]
            story=_ "In the times after the Lord Kalenz restored peace to the elven race, the future was looking very bright. The elves were ready to defend themselves, so no surprise attacks would outwit them. The seemingly sense of peace came to fall over the entire race. The elves could now feel a peace of safety and assurance with Lord Kalenz's guidance."
            background=landscape-bridge_sun.png
        [/part]
        [part]
            story=_ "But soon after Lord Kalenz retired to a reconstituted council, dark times began again. Lord had set up in Wesmere and Northern Guard and Southern Tower to defend from any intruders trying to attack the Ka'lian. The effectiveness of these outposts were tested: orcs were sighted  at the northern border of the forest. The Northern Guard was crushed, but although it was regained later, priceless soldiers were lost."
            background=landscape-bridge.png
        [/part]
        [part]
            story=_ "For weeks the Northern Guard scouted the region and prepared itself for battle under Lord Tararang, but there were no signs of the orcs."
            background=landscape-bridge.png
        [/part]
    [/story]

    [side]
        side=1
        controller=human
        team_name=Good
        user_team_name= _ "Good"
        type=Elvish Fighter
        id=Elvorfil
        name=Elvorfil
        canrecruit=yes
        {GOLD 0 0 0}
        {INCOME -2 -2 -2}
    [/side]

    [side]
        side=2
        no_leader=yes
        team_name=Good
        [unit]
            type=Elvish Lord
            id=Tararang
            name=_ "Lord Tararang"
            canrecruit=yes
            x=23
            y=20
        [/unit]
        recruit=Elvish Fighter,Elvish Archer,Elvish Scout,Elvish Shaman
        {GOLD 200 150 100}
        {INCOME 8 6 4}
        [ai]
            caution=0.5
            passive_leader=yes
        [/ai]
    [/side]

    [side]
        side=3
        no_leader=yes
        team_name=Good
        [unit]
            type=Elvish Captain
            id=Ethel
            name=_ "Ethel"
            canrecruit=yes
            x=8
            y=18
        [/unit]
        recruit=Elvish Fighter,Elvish Archer,Elvish Scout,Elvish Shaman
        {GOLD 200 150 100}
        {INCOME 8 6 4}
        [ai]
            caution=0.5
            passive_leader=yes
        [/ai]
    [/side]

    [side]
        side=4
        no_leader=yes
        team_name=Bad
        recruit=Orcish Grunt,Orcish Crossbowman,Wolf Rider,Orcish Assassin
        gold=200
        income=0
        [ai]
            recruitment_ignore_bad_movement=yes
            simple_targeting=yes
            recruitment_pattern=fighter,archer,fighter,archer,scout
            aggression=0.75
            caution=-0.25
            passive_leader=yes
        [/ai]
    [/side]

    [side]
        side=5
        no_leader=yes
        team_name=Bad
        recruit=Troll,Troll Rocklobber
        gold=200
        income=0
        [ai]
            recruitment_ignore_bad_movement=yes
            simple_targeting=yes
            aggression=0.75
            caution=-0.25
            passive_leader=yes
        [/ai]
    [/side]
   
    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Defeat all enemy leaders"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Elvorfil"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ethel"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Tararang"
                condition=lose
            [/objective]
            [objective]
                description= _ "Turns run out"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    [event]
        name=prestart
        [store_unit]
            variable=elvorfil_store
            kill=yes
            [filter]
                id=Elvorfil
            [/filter]
        [/store_unit]
        [unit]
             type=Elvish Hero
             side=2
             x=15
             y=15
             id=Guard
             name=_ "Guard"
             ai_special=guardian
             [modifications]
                 {TRAIT_LOYAL}
                 {TRAIT_RESILIENT}
             [/modifications]
        [/unit]
        [unit]
             type=Elvish Hero
             side=3
             x=11
             y=15
             id=Guard
             name=_ "Guard"
             ai_special=guardian
             [modifications]
                 {TRAIT_LOYAL}
                 {TRAIT_RESILIENT}
             [/modifications]
        [/unit]
    [/event]

    [event]
        name=start
        [message]
            id=Ethel
            message= _ "Lord Tararang, why have our scouts not returned?"
        [/message]
        [message]
            id=Tararang
            message= _ "Maybe they are scouting the area further? I don't know."
        [/message]
        [message]
            id=Ethel
            message= _ "Well..."
        [/message]
        [delay]
            time=500
        [/delay]
        [move_unit_fake]
             type=Elvish Rider        
             hitpoints=5
             x=13,12,11,11,11,12,13,14,14,14,14,14,14,13,12,12,13,13,13,13,14,15,16,17,18,19,20,21,22
             y=1,1,2,3,4,4,5,5,6,7,8,9,10,11,11,12,13,14,15,16,16,16,16,17,17,18,18,19,19
             side=2
        [/move_unit_fake]
        [unit]
            type=Elvish Rider
            hitpoints=5
            x=22
            y=19
            id=Scout
            name= _ "Scout"
            side=2
        [/unit]
        [delay]
            time=500
        [/delay]
        [message]
            id=Tararang
            message= _ "What did you find? Why are you so late?"
        [/message]
        [message]
            id=Scout
            message= _ "Our...[pant]...group of scouts were ambushed by a group of orcs. We tried...[pant]...not to engage them in battle but...[pant]...ride quickly away, but we were caught by their wolves. Half our group perished and...[pant]..."
        [/message]
        [message]
            id=Ethel
            message= _ "[to himself] This is what I had guessed. [sigh]..."
        [/message]
        [message]
            id=Scout
            message= _ "...got away from battle. I rode as fast as I could...[pant]...to tell you. The last time I looked back, there was a large party of orcs...[pant]...and trolls coming...[pant]...and..."
        [/message]
        [kill]
            id=Scout
        [/kill]
        [delay]
            time=500
        [/delay]
        [message]
            speaker=narrator
            message= _ "...and the scout suddenly collapsed on the ground, dead."
        [/message]
        [message]
            id=Tararang
            message= _ "[in shock] How can this happen?! We need to assemble a war-party and head north engage them and battle and..."
        [/message]
        [message]
            id=Ethel
            message= _ "Uhh...Lord Tararang? First of all, we are short on troops and supplies."
        [/message]
        [message]
            id=Tararang
            message= _ "Oh yeah. Right. Forgot that."
        [/message]
        [message]
            id=Ethel
            message= _ "Second, look north now. There they are!"
        [/message]
        [move_unit_fake]
             type=Orcish Warlord
             x=1,2,3,4,4
             y=3,2,3,3,4
             side=4
        [/move_unit_fake]
        [unit]
             type=Orcish Warlord
             side=4
             x=4
             y=4
             id=T'kasun
             name=_ "T'kasun"
             canrecruit=yes
        [/unit]
        [delay]
            time=500
        [/delay]
        [message]
            id=T'kasun
            message= _ "We are here! After you stinky-flower-boys defeated us a while ago, we now come in unsurpassed strength! HAHAHA!"
        [/message]
        [delay]
            time=500
        [/delay]
        [message]
            id=T'kasun
            message= _ "Wait a second..."
        [/message]
        [delay]
            time=500
        [/delay]
        [message]
            id=T'kasun
            message= _ "WHERE ARE YOU, YOU FAT SLUG!!?!"
        [/message]
        [delay]
            time=500
        [/delay]
        [unit]
             type=Troll Warrior
             side=5
             x=27
             y=3
             id=Huggl
             name=_ "Huggl"
             canrecruit=yes
        [/unit]
        {MOVE_UNIT (id=Huggl) 26 3}
        [delay]
            time=500
        [/delay]
        {MOVE_UNIT (id=Huggl) 25 3}
        [delay]
            time=500
        [/delay]
        {MOVE_UNIT (id=Huggl) 24 3}
        [message]
            id=Huggl
            message= _ "...[pant]..."
        [/message]
        {MOVE_UNIT (id=Huggl) 23 4}
        [delay]
            time=500
        [/delay]
        {MOVE_UNIT (id=Huggl) 22 4}
        [message]
            id=Huggl
            message= _ "...[pant]..."
        [/message]
        {MOVE_UNIT (id=Huggl) 22 5}
        [delay]
            time=500
        [/delay]
        [message]
            id=Huggl
            message= _ "...[pant]...I...[pant]...no...[pant]...run...[pant]...fast...[pant]..."
        [/message]
        [message]
            id=T'kasun
            message= _ "GET TO WORK!"
        [/message]
        [message]
            id=Huggl
            message= _ "[grunt]"
        [/message]
        [message]
            id=Tararang
            message= _ "To arms! Elves, prepare for battle! Destory these beasts and leave no one alive!"
        [/message]
        [delay]
            time=1000
        [/delay]
        [move_unit_fake]
            type=$elvorfil_store.type
            side=1
            x=16,16,15
            y=22,22,21
        [/move_unit_fake]
        [unstore_unit]
            variable=elvorfil_store
        [/unstore_unit]
        {CLEAR_VARIABLE elvorfil_store}
        [redraw]
        [/redraw]
        [unit]
             type=Elvish Shaman
             id=Isithiel
             name=_ "Isithiel"
             unrenamable=yes
             side=1
             x=14
             y=21
             [modifications]
                 {TRAIT_INTELLIGENT}
                 {TRAIT_RESILIENT}
                 {TRAIT_LOYAL}
             [/modifications]
        [/unit]
        [unit]
             type=Elvish Scout
             id=Urondir
             name=_ "Urondir"
             unrenamable=yes
             side=1
             x=14
             y=20
             [modifications]
                 {TRAIT_STRONG}
                 {TRAIT_QUICK}
                 {TRAIT_LOYAL}
             [/modifications]
         [/unit]
         [unit]
             type=Elvish Archer
             id=Eowien
             name=_ "Eowien"
             unrenamable=yes
             side=1
             x=16
             y=20
             [modifications]
                 {TRAIT_DEXTROUS}
                 {TRAIT_STRONG}
                 {TRAIT_LOYAL}
             [/modifications]
        [/unit]
        [unit]
             type=Elvish Fighter
             id=Elorfil-Gar
             name=_ "Elorfil-Gar"
             unrenamable=yes
             side=1
             x=16
             y=21
             [modifications]
                 {TRAIT_STRONG}
                 {TRAIT_QUICK}
                 {TRAIT_LOYAL}
             [/modifications]
        [/unit]
        [message]
            id=Ethel
            message= _ "Elvorfil son of Andulias, why are you here?"
        [/message]
        [message]
            id=Elvorfil
            message= _ "Those filthy beasts took the life of my father. It's time for revenge!"
        [/message]
        [message]
            id=Ethel
            message= _ "Elvorfil, you should go back to the Ka'lian and finish your studies."
        [/message]
        [message]
            id=Tararang
            message= _ "No need. We need every elf we can get. Death to the orcs!"
        [/message]
        [message]
            id=Ethel
            message= _ "[sigh]...Take care, Elvorfil..."
        [/message]
    [/event]

    {HERO_DEATHS}

    [event]
        name=attack
        [filter]
            id=Elvorfil
        [/filter]
        [message]
            id=Elvorfil
            message= _ "Die, die, die!"
        [/message]
    [/event]

    [event]
        name=attack
        [filter_second]
            id=Elvorfil
        [/filter_second]
        [message]
            id=Elvorfil
            message= _ "Feel the wrath of my blade!"
        [/message]
    [/event]

    [event]
        name=die
        [filter_second]
            id=Elvorfil
        [/filter_second]
        [message]
            id=Elvorfil
            message= _ "Die you beast!"
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id=Ethel
            canrecruit=yes
        [/filter]
        [message]
            id=Tararang
            message=_ "What will become of the Northern Guard now?"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=die
        [filter]
            id=Tararang
            canrecruit=yes
        [/filter]
        [message]
            id=Ethel
            message=_ "What will become of the Northern Guard now?"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=die
        [filter]
            id=T'kasun
            canrecruit=yes
        [/filter]
        [message]
            id=T'kasun
            message=_ "Ughh...Curse you elves! You will never defeat us orcs! Our people will come and crush you! We..."
        [/message]
        [message]
            id=Elvorfil
            message=_ "Oh, just shut up and die you filthy orc."
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id=Huggl
            canrecruit=yes
        [/filter]
        [message]
            id=Huggl
            message=_ "Huggl die? Huggl never die before."
        [/message]
        [message]
            id=Elvorfil
            message=_ "Stop grunting and just die already!"
        [/message]
    [/event]

    [event]
        name=victory
        [message]
            id=Tararang
            message=_ "Men, we have won a rewarding victory today. Thank you Elvorfil for coming to our assistance."
        [/message]
        [unit]
            type=Orcish Slayer
            x=24
            y=15
            id=Assassin
            name= _ "Assassin"
            side=4
        [/unit]
        {MOVE_UNIT (id=Assassin) 24 19}
        [message]
            id=Elvorfil
            message=_ "You, foul orc!"
        [/message]
        {MOVE_UNIT (id=Elvorfil) 24 20}
        [message]
            id=Elvorfil
            message=_ "Stand back, Tararang! I'll deal with him."
        [/message]
        [animate_unit]
            flag=attack
            [filter]
                id=Assassin
            [/filter]
            [primary_attack]
                name=throwing knives
            [/primary_attack]
            hit=yes
            [facing]
                [filter]
                    id=Tararang
                [/filter]
            [/facing]
            [animate]
                flag=defend
                [filter]
                    id=Tararang
                [/filter]
                hit=yes
                [facing]
                    [filter]
                        id=Assassin
                    [/filter]
                [/facing]
            [/animate]
        [/animate_unit]
        [kill]
            id=Tararang
            animate=yes
        [/kill]
        [message]
            id=Assassin
            message=_ "Too late!"
        [/message]
        [animate_unit]
            flag=attack
            [filter]
                id=Elvorfil
            [/filter]
            [primary_attack]
                name=sword
            [/primary_attack]
            hit=yes
            [facing]
                [filter]
                    id=Assassin
                [/filter]
            [/facing]
            [animate]
                flag=defend
                [filter]
                    id=Assassin
                [/filter]
                hit=yes
                [facing]
                    [filter]
                        id=Elvorfil
                    [/filter]
                [/facing]
            [/animate]
        [/animate_unit]
        [kill]
            id=Assassin
            animate=yes
        [/kill]
        [message]
            id=Elvorfil
            message=_ "Al least the assassin is dead. Foul beast!"
        [/message]
        [message]
            id=Ethel
            message=_ "Let the orcs taste your blade. Here they come again!"
        [/message]
        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]
[/scenario]
Could someone help me spot the mistake?
Last edited by monochromatic on June 8th, 2010, 6:45 am, edited 2 times in total.
User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: Some help please!

Post by zookeeper »

User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: Some help please!

Post by Turuk »

Moved to the proper forum, and title edited in accordance with Posting Guidelines.
Thread Titles.
When making a thread, make sure that the title accurately conveys what the thread is about. Vague titles serve little purpose in attracting attention if you need help, have a question, or want an opinion on your work.
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
User avatar
TofuOgre
Posts: 23
Joined: April 25th, 2009, 12:25 am

Re: Missing Tag for Event

Post by TofuOgre »

Normally, you need a spreadsheet. Delete the leading spaces. Put a numbered column to the side. See if the closing tags match the number of opening tags.

BUT

I did this with yours. The problem are those [pant] You have to use something else like --pant-- or «pant»
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: Missing Tag for Event

Post by monochromatic »

I've updated the file, but it still has the same problem. Should a post it here so you guys could look at it?
User avatar
Turuk
Sithslayer
Posts: 5283
Joined: February 28th, 2007, 8:58 pm
Contact:

Re: Missing Tag for Event

Post by Turuk »

Yes.

Did you change [grunt] Too?
Mainline Maintainer: AOI, DM, NR, TB and THoT.
UMC Maintainer: Forward They Cried, A Few Logs, A Few More Logs, Start of the War, and Battle Against Time
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: Missing Tag for Event

Post by monochromatic »

Here it is...

Code: Select all

#textdomain wesnoth-bts
[scenario]
    id=02_The_Northern_Guard
    name= _ "The Northern Guard"
    map_data="{@campaigns/By_the_Sword/maps/The_Northern_Guard}"

    {TURNS 32 28 24}

    {SCENARIO_MUSIC breaking_the_chains.ogg}
    {EXTRA_SCENARIO_MUSIC elvish-theme.ogg}
    {EXTRA_SCENARIO_MUSIC elf-land.ogg}

    {DEFAULT_SCHEDULE}

    next_scenario=03_The_Next_Day
    victory_when_enemies_defeated=yes

    [story]
        [part]
            background=story/bigmap.jpg
            show_title=yes
        [/part]
        [part]
            story=_ "Part I: The Awakening of a Hero"
        [/part]
        [part]
            story=_ "In the times after the Lord Kalenz restored peace to the elven race, the future was looking very bright. The elves were ready to defend themselves, so no surprise attacks would outwit them. The seemingly sense of peace came to fall over the entire race. The elves could now feel a peace of safety and assurance with Lord Kalenz's guidance."
            background=landscape-bridge_sun.png
        [/part]
        [part]
            story=_ "But soon after Lord Kalenz retired to a reconstituted council, dark times began again. Lord had set up in Wesmere and Northern Guard and Southern Tower to defend from any intruders trying to attack the Ka'lian. The effectiveness of these outposts were tested: orcs were sighted  at the northern border of the forest. The Northern Guard was crushed, but although it was regained later, priceless soldiers were lost."
            background=landscape-bridge.png
        [/part]
        [part]
            story=_ "For weeks the Northern Guard scouted the region and prepared itself for battle under Lord Tararang, but there were no signs of the orcs."
            background=landscape-bridge.png
        [/part]
    [/story]

    [side]
        side=1
        controller=human
        team_name=Good
        user_team_name= _ "Good"
        type=Elvish Fighter
        id=Elvorfil
        name=Elvorfil
        canrecruit=yes
        {GOLD 0 0 0}
        {INCOME -2 -2 -2}
    [/side]

    [side]
        side=2
        no_leader=yes
        team_name=Good
        [unit]
            type=Elvish Lord
            id=Tararang
            name=_ "Lord Tararang"
            canrecruit=yes
            x=23
            y=20
        [/unit]
        recruit=Elvish Fighter,Elvish Archer,Elvish Scout,Elvish Shaman
        {GOLD 200 150 100}
        {INCOME 8 6 4}
        [ai]
            caution=0.5
            passive_leader=yes
        [/ai]
    [/side]

    [side]
        side=3
        no_leader=yes
        team_name=Good
        [unit]
            type=Elvish Captain
            id=Ethel
            name=_ "Ethel"
            canrecruit=yes
            x=8
            y=18
        [/unit]
        recruit=Elvish Fighter,Elvish Archer,Elvish Scout,Elvish Shaman
        {GOLD 200 150 100}
        {INCOME 8 6 4}
        [ai]
            caution=0.5
            passive_leader=yes
        [/ai]
    [/side]

    [side]
        side=4
        no_leader=yes
        team_name=Bad
        recruit=Orcish Grunt,Orcish Crossbowman,Wolf Rider,Orcish Assassin
        gold=200
        income=0
        [ai]
            recruitment_ignore_bad_movement=yes
            simple_targeting=yes
            recruitment_pattern=fighter,archer,fighter,archer,scout
            aggression=0.75
            caution=-0.25
            passive_leader=yes
        [/ai]
    [/side]

    [side]
        side=5
        no_leader=yes
        team_name=Bad
        recruit=Troll,Troll Rocklobber
        gold=200
        income=0
        [ai]
            recruitment_ignore_bad_movement=yes
            simple_targeting=yes
            aggression=0.75
            caution=-0.25
            passive_leader=yes
        [/ai]
    [/side]
   
    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Defeat all enemy leaders"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Elvorfil"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ethel"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Tararang"
                condition=lose
            [/objective]
            [objective]
                description= _ "Turns run out"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    [event]
        name=prestart
        [store_unit]
            variable=elvorfil_store
            kill=yes
            [filter]
                id=Elvorfil
            [/filter]
        [/store_unit]
        [unit]
             type=Elvish Hero
             side=2
             x=15
             y=15
             id=Guard
             name=_ "Guard"
             ai_special=guardian
             [modifications]
                 {TRAIT_LOYAL}
                 {TRAIT_RESILIENT}
             [/modifications]
        [/unit]
        [unit]
             type=Elvish Hero
             side=3
             x=11
             y=15
             id=Guard
             name=_ "Guard"
             ai_special=guardian
             [modifications]
                 {TRAIT_LOYAL}
                 {TRAIT_RESILIENT}
             [/modifications]
        [/unit]
    [/event]

    [event]
        name=start
        [message]
            id=Ethel
            message= _ "Lord Tararang, why have our scouts not returned?"
        [/message]
        [message]
            id=Tararang
            message= _ "Maybe they are scouting the area further? I don't know."
        [/message]
        [message]
            id=Ethel
            message= _ "Well..."
        [/message]
        [delay]
            time=500
        [/delay]
        [move_unit_fake]
             type=Elvish Rider        
             hitpoints=5
             x=13,12,11,11,11,12,13,14,14,14,14,14,14,13,12,12,13,13,13,13,14,15,16,17,18,19,20,21,22
             y=1,1,2,3,4,4,5,5,6,7,8,9,10,11,11,12,13,14,15,16,16,16,16,17,17,18,18,19,19
             side=2
        [/move_unit_fake]
        [unit]
            type=Elvish Rider
            hitpoints=5
            x=22
            y=19
            id=Scout
            name= _ "Scout"
            side=2
        [/unit]
        [delay]
            time=500
        [/delay]
        [message]
            id=Tararang
            message= _ "What did you find? Why are you so late?"
        [/message]
        [message]
            id=Scout
            message= _ "Our...(pant)...group of scouts were ambushed by a group of orcs. We tried...(pant)...not to engage them in battle but...(pant)...ride quickly away, but we were caught by their wolves. Half our group perished and...(pant)..."
        [/message]
        [message]
            id=Ethel
            message= _ "(to himself) This is what I had guessed. (sigh)..."
        [/message]
        [message]
            id=Scout
            message= _ "...got away from battle. I rode as fast as I could...(pant)...to tell you. The last time I looked back, there was a large party of orcs...(pant)...and trolls coming...(pant)...and..."
        [/message]
        [kill]
            id=Scout
        [/kill]
        [delay]
            time=500
        [/delay]
        [message]
            speaker=narrator
            message= _ "...and the scout suddenly collapsed on the ground, dead."
        [/message]
        [message]
            id=Tararang
            message= _ "(in shock) How can this happen?! We need to assemble a war-party and head north engage them and battle and..."
        [/message]
        [message]
            id=Ethel
            message= _ "Uhh...Lord Tararang? First of all, we are short on troops and supplies."
        [/message]
        [message]
            id=Tararang
            message= _ "Oh yeah. Right. Forgot that."
        [/message]
        [message]
            id=Ethel
            message= _ "Second, look north now. There they are!"
        [/message]
        [move_unit_fake]
             type=Orcish Warlord
             x=1,2,3,4,4
             y=3,2,3,3,4
             side=4
        [/move_unit_fake]
        [unit]
             type=Orcish Warlord
             side=4
             x=4
             y=4
             id=T'kasun
             name=_ "T'kasun"
             canrecruit=yes
        [/unit]
        [delay]
            time=500
        [/delay]
        [message]
            id=T'kasun
            message= _ "We are here! After you stinky-flower-boys defeated us a while ago, we now come in unsurpassed strength! HAHAHA!"
        [/message]
        [delay]
            time=500
        [/delay]
        [message]
            id=T'kasun
            message= _ "Wait a second..."
        [/message]
        [delay]
            time=500
        [/delay]
        [message]
            id=T'kasun
            message= _ "WHERE ARE YOU, YOU FAT SLUG!!?!"
        [/message]
        [delay]
            time=500
        [/delay]
        [unit]
             type=Troll Warrior
             side=5
             x=27
             y=3
             id=Huggl
             name=_ "Huggl"
             canrecruit=yes
        [/unit]
        {MOVE_UNIT (id=Huggl) 26 3}
        [delay]
            time=500
        [/delay]
        {MOVE_UNIT (id=Huggl) 25 3}
        [delay]
            time=500
        [/delay]
        {MOVE_UNIT (id=Huggl) 24 3}
        [message]
            id=Huggl
            message= _ "...(pant)..."
        [/message]
        {MOVE_UNIT (id=Huggl) 23 4}
        [delay]
            time=500
        [/delay]
        {MOVE_UNIT (id=Huggl) 22 4}
        [message]
            id=Huggl
            message= _ "...(pant)..."
        [/message]
        {MOVE_UNIT (id=Huggl) 22 5}
        [delay]
            time=500
        [/delay]
        [message]
            id=Huggl
            message= _ "...(pant)...I...(pant)...no...(pant)...run...(pant)...fast...(pant)..."
        [/message]
        [message]
            id=T'kasun
            message= _ "GET TO WORK!"
        [/message]
        [message]
            id=Huggl
            message= _ "(grunt)"
        [/message]
        [message]
            id=Tararang
            message= _ "To arms! Elves, prepare for battle! Destory these beasts and leave no one alive!"
        [/message]
        [delay]
            time=1000
        [/delay]
        [move_unit_fake]
            type=$elvorfil_store.type
            side=1
            x=16,16,15
            y=22,22,21
        [/move_unit_fake]
        [unstore_unit]
            variable=elvorfil_store
        [/unstore_unit]
        {CLEAR_VARIABLE elvorfil_store}
        [redraw]
        [/redraw]
        [unit]
             type=Elvish Shaman
             id=Isithiel
             name=_ "Isithiel"
             unrenamable=yes
             side=1
             x=14
             y=21
             [modifications]
                 {TRAIT_INTELLIGENT}
                 {TRAIT_RESILIENT}
                 {TRAIT_LOYAL}
             [/modifications]
        [/unit]
        [unit]
             type=Elvish Scout
             id=Urondir
             name=_ "Urondir"
             unrenamable=yes
             side=1
             x=14
             y=20
             [modifications]
                 {TRAIT_STRONG}
                 {TRAIT_QUICK}
                 {TRAIT_LOYAL}
             [/modifications]
         [/unit]
         [unit]
             type=Elvish Archer
             id=Eowien
             name=_ "Eowien"
             unrenamable=yes
             side=1
             x=16
             y=20
             [modifications]
                 {TRAIT_DEXTROUS}
                 {TRAIT_STRONG}
                 {TRAIT_LOYAL}
             [/modifications]
        [/unit]
        [unit]
             type=Elvish Fighter
             id=Elorfil-Gar
             name=_ "Elorfil-Gar"
             unrenamable=yes
             side=1
             x=16
             y=21
             [modifications]
                 {TRAIT_STRONG}
                 {TRAIT_QUICK}
                 {TRAIT_LOYAL}
             [/modifications]
        [/unit]
        [message]
            id=Ethel
            message= _ "Elvorfil son of Andulias, why are you here?"
        [/message]
        [message]
            id=Elvorfil
            message= _ "Those filthy beasts took the life of my father. It's time for revenge!"
        [/message]
        [message]
            id=Ethel
            message= _ "Elvorfil, you should go back to the Ka'lian and finish your studies."
        [/message]
        [message]
            id=Tararang
            message= _ "No need. We need every elf we can get. Death to the orcs!"
        [/message]
        [message]
            id=Ethel
            message= _ "(sigh)...Take care, Elvorfil..."
        [/message]
    [/event]

    {HERO_DEATHS}

    [event]
        name=attack
        [filter]
            id=Elvorfil
        [/filter]
        [message]
            id=Elvorfil
            message= _ "Die, die, die!"
        [/message]
    [/event]

    [event]
        name=attack
        [filter_second]
            id=Elvorfil
        [/filter_second]
        [message]
            id=Elvorfil
            message= _ "Feel the wrath of my blade!"
        [/message]
    [/event]

    [event]
        name=die
        [filter_second]
            id=Elvorfil
        [/filter_second]
        [message]
            id=Elvorfil
            message= _ "Die you beast!"
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id=Ethel
            canrecruit=yes
        [/filter]
        [message]
            id=Tararang
            message=_ "What will become of the Northern Guard now?"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=die
        [filter]
            id=Tararang
            canrecruit=yes
        [/filter]
        [message]
            id=Ethel
            message=_ "What will become of the Northern Guard now?"
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=die
        [filter]
            id=T'kasun
            canrecruit=yes
        [/filter]
        [message]
            id=T'kasun
            message=_ "Ughh...Curse you elves! You will never defeat us orcs! Our people will come and crush you! We..."
        [/message]
        [message]
            id=Elvorfil
            message=_ "Oh, just shut up and die you filthy orc."
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            id=Huggl
            canrecruit=yes
        [/filter]
        [message]
            id=Huggl
            message=_ "Huggl die? Huggl never die before."
        [/message]
        [message]
            id=Elvorfil
            message=_ "Stop grunting and just die already!"
        [/message]
    [/event]

    [event]
        name=victory
        [message]
            id=Tararang
            message=_ "Men, we have won a rewarding victory today. Thank you Elvorfil for coming to our assistance."
        [/message]
        [unit]
            type=Orcish Slayer
            x=24
            y=15
            id=Assassin
            name= _ "Assassin"
            side=4
        [/unit]
        {MOVE_UNIT (id=Assassin) 24 19}
        [message]
            id=Elvorfil
            message=_ "You, foul orc!"
        [/message]
        {MOVE_UNIT (id=Elvorfil) 24 20}
        [message]
            id=Elvorfil
            message=_ "Stand back, Tararang! I'll deal with him."
        [/message]
        [animate_unit]
            flag=attack
            [filter]
                id=Assassin
            [/filter]
            [primary_attack]
                name=throwing knives
            [/primary_attack]
            hit=yes
            [facing]
                [filter]
                    id=Tararang
                [/filter]
            [/facing]
            [animate]
                flag=defend
                [filter]
                    id=Tararang
                [/filter]
                hit=yes
                [facing]
                    [filter]
                        id=Assassin
                    [/filter]
                [/facing]
            [/animate]
        [/animate_unit]
        [kill]
            id=Tararang
            animate=yes
        [/kill]
        [message]
            id=Assassin
            message=_ "Too late!"
        [/message]
        [animate_unit]
            flag=attack
            [filter]
                id=Elvorfil
            [/filter]
            [primary_attack]
                name=sword
            [/primary_attack]
            hit=yes
            [facing]
                [filter]
                    id=Assassin
                [/filter]
            [/facing]
            [animate]
                flag=defend
                [filter]
                    id=Assassin
                [/filter]
                hit=yes
                [facing]
                    [filter]
                        id=Elvorfil
                    [/filter]
                [/facing]
            [/animate]
        [/animate_unit]
        [kill]
            id=Assassin
            animate=yes
        [/kill]
        [message]
            id=Elvorfil
            message=_ "Al least the assassin is dead. Foul beast!"
        [/message]
        [message]
            id=Ethel
            message=_ "Let the orcs taste your blade. Here they come again!"
        [/message]
        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]
[/scenario]
Sorry, I can't attach the actual file...my computer freezes. :?

As you can see, I replaced all [ ] with ( ). Is that ok?
User avatar
melinath
Posts: 1298
Joined: May 20th, 2009, 7:42 am

Re: Missing Tag for Event

Post by melinath »

Did you already try debugging it? Zookeeper posted a really useful link. It's really easy. And it's a lot easier for you to do it yourself than for us to wade through the code... If you find the section that's the problem, but you can't figure out why, you can post 10 lines instead of 400, and you're more likely to get useful feedback.

EDIT:: Although that's partly me being tired and unmotivated right now.
Last edited by melinath on June 24th, 2009, 11:10 pm, edited 2 times in total.
Exasperation
Posts: 462
Joined: June 8th, 2006, 3:25 am

Re: Missing Tag for Event

Post by Exasperation »

What does the definition of your HERO_DEATHS macro look like? If the problem is in that macro, it could still get reported as being in this file when the preprocessor does the macro substitution.
User avatar
Huston
Posts: 1070
Joined: April 29th, 2009, 8:26 pm
Location: Somewhere in this World(I Think)

Re: Missing Tag for Event

Post by Huston »

aren't the message tags supposed to have speaker= not id= unless you use the standard unit filter?
coded Rebellion During the Dark Age
Currently working on:
Era of the Future
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: Missing Tag for Event

Post by monochromatic »

Thank you zookeeper! After debugging it, I found it to be a different scenario that's causing the trouble. The error page in the game had a misleading file name that made me think it the first scenario. But thanks for all of your help! I hope I will finish this campaign soon... :)
User avatar
melinath
Posts: 1298
Joined: May 20th, 2009, 7:42 am

Re: Missing Tag for Event

Post by melinath »

Huston wrote:aren't the message tags supposed to have speaker= not id= unless you use the standard unit filter?
Yes... but using id= is using a standard unit filter. (Message doesn't take [filter] tags, just directly takes the filter itself.)
elvish_sovereign wrote:After debugging it, I found it to be a different scenario that's causing the trouble.
Yay! Congratulations. :-)
User avatar
A Guy
Posts: 790
Joined: May 24th, 2008, 1:55 am

Re: Missing Tag for Event

Post by A Guy »

Huston wrote:aren't the message tags supposed to have speaker= not id= unless you use the standard unit filter?
You can use either.
I'm just... a guy...
I'm back for now, I might get started on some work again.
Post Reply