help

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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
irendie
Posts: 9
Joined: September 19th, 2011, 2:43 pm
Location: Czech Republic - Česká Republika, Litomyšl

help

Post by irendie » September 19th, 2011, 2:52 pm

Please help me: i am doing scenario and i don't know how to write code end scenario. I write this:

Code: Select all

    [event]
        name=turn 70
        [filter]
          side=2
        [/filter]
        [endlevel]
            result=victory
        [/endlevel]
        [message]
          speaker=narrator
          message= _"Věrní už se nikdy nedostanou ke mlýnu včas, vyhráli jsme."
        [/message]
    [/event]
    [event]
        name=turn 70
        [filter]
          side=3
        [/filter]
        [endlevel]
            side=3
            result=victory
        [/endlevel]
        [message]
          speaker=narrator
          message= _"Věrní už se nikdy nedostanou ke mlýnu včas, vyhráli jsme."
        [/message]
    [/event]
    [event]
        name=turn 70
        [filter]
          side=1
        [/filter]
        [endlevel]
            side=1
            result=defeat
        [/endlevel]
        [message]
          speaker=narrator
          message= _"Nedostaneš se tam včas, umřeš hlady."
        [/message]
    [/event]
Where's my mistake?
Sorry for my English - it isn´t my native language.

User avatar
Neuromancer
Posts: 204
Joined: September 10th, 2010, 9:49 pm

Re: help

Post by Neuromancer » September 19th, 2011, 3:07 pm

Zdravicko :)
Hmm, v com konkretne je problem? Nezobrazuje sa ti defeat pre side 1?

User avatar
Pentarctagon
Forum Administrator
Posts: 4053
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: help

Post by Pentarctagon » September 19th, 2011, 3:10 pm

Moved to the correct forum.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code

irendie
Posts: 9
Joined: September 19th, 2011, 2:43 pm
Location: Czech Republic - Česká Republika, Litomyšl

Re: help

Post by irendie » September 19th, 2011, 3:17 pm

Ne - všechny strany prohrají v 70 kole
No - all sides are defeat in 70 turn
Sorry for my English - it isn´t my native language.

User avatar
Neuromancer
Posts: 204
Joined: September 10th, 2010, 9:49 pm

Re: help

Post by Neuromancer » September 19th, 2011, 3:29 pm

Skus dat do name hodnotu time over namiesto turn 70, takto:

Code: Select all

[event]
        name=time over
...atd pokracovanie tvojho kodu

irendie
Posts: 9
Joined: September 19th, 2011, 2:43 pm
Location: Czech Republic - Česká Republika, Litomyšl

Re: help

Post by irendie » September 19th, 2011, 4:54 pm

Ne, nefunguje to - vypočitá to skóre a podle toho určí kdo vyhrál.
No, it does not work - it calculates the scores and determines who wins.
Sorry for my English - it isn´t my native language.

User avatar
Neuromancer
Posts: 204
Joined: September 10th, 2010, 9:49 pm

Re: help

Post by Neuromancer » September 19th, 2011, 5:17 pm

Hmm... Toto je kod z Heir to the Throne, je to sprava, ktora sa zobrazi, ked ubehne cas. Skus tvoj event odvodit z tohto..

Code: Select all

    [event]
        name=time over
        [message]
            speaker=Delfador
            message= _ "Oh, no! We have run out of time, they have arrived with reinforcements..."
        [/message]
    [/event]

User avatar
battlestar
Posts: 690
Joined: January 1st, 2007, 7:12 am

Re: help

Post by battlestar » September 19th, 2011, 5:26 pm

Is this a multiplayer map rather than a single player scenario?
LUA: Llama Under Apprenticeship
Hell faction: completed

irendie
Posts: 9
Joined: September 19th, 2011, 2:43 pm
Location: Czech Republic - Česká Republika, Litomyšl

Re: help

Post by irendie » September 19th, 2011, 7:34 pm

Multiplayer map
Sorry for my English - it isn´t my native language.

User avatar
DEATH_is_undead
Posts: 960
Joined: March 4th, 2007, 3:00 pm
Location: Northern United States

Re: help

Post by DEATH_is_undead » September 19th, 2011, 7:38 pm

From what I remember,

Code: Select all

  [endlevel]
            side=3
            result=victory
        [/endlevel]
This doesnt work in Multiplayer. Use [kill] on the sides you want to lose.
3P MP Scenario - Great Dwarves Escape
The best way to learn is to follow. In order to learn WML, you have to follow other's work, and check their codes.

Post Reply