Magenta And Vars.

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
aaronfeld
Posts: 52
Joined: June 9th, 2010, 7:30 pm

Magenta And Vars.

Post by aaronfeld »

First I know what magenta>color does but I sort of want to know why it's called magenta, seems sort of random. Second is this what a varibale is in WML. You name the var something and then you can store a number in it which can be linked to other events so you must kill 32 orcs and then this text comes up. If it is like that could you tell me how to call it but if it's not don't even bother to tell me how to do it yet, but could you give me a basic idea of what it is.

This is less importent but does this matter or what is it.

Code: Select all

    [about]
        title = _ "Campaign Design"
        [entry]
            name = "esci"
        [/entry]
    [/about]
    [about]
        title = _ "Campaign Maintenance"
        [entry]
            name = "Lari Nieminen (zookeeper)"
        [/entry]
        [entry]
            name = "Thomas Baumhauer (Baufo)"
        [/entry]
    [/about]
    [about]
        title = _ "Artwork and Graphics Design"
        [entry]
            name = "Syn_Err"
            comment = "story images"
        [/entry]
        [entry]
            name = "John Mercer (Stern)"
            comment = "Giant Rat graphics"
        [/entry]
        [entry]
            name= "theycallmerooster"
            comment = "portraits"
        [/entry]
    [/about]
Thanks for all the WML help you guys have been giving!
User avatar
Astoria
Inactive Developer
Posts: 1007
Joined: March 20th, 2008, 5:54 pm
Location: Netherlands

Re: Magenta And Vars.

Post by Astoria »

aaronfeld wrote:First I know what magenta>color does but I sort of want to know why it's called magenta, seems sort of random.
Cause it is magenta. :eng:
aaronfeld wrote: Second is this what a varibale is in WML. You name the var something and then you can store a number in it which can be linked to other events so you must kill 32 orcs and then this text comes up. If it is like that could you tell me how to call it but if it's not don't even bother to tell me how to do it yet, but could you give me a basic idea of what it is.

Code: Select all

[set_variable]
variable=name
value=0
[/set_variable]

[set_variable]
variable=name
add=1
[/set_variable]

[if]
[variable]
variable=name
equals=32
[/variable]
[then]
[/then]
[else]
[/else]
[/if]
Some pieces of (useful) WML.
Formerly known as the creator of Era of Chaos and maintainer of The Aragwaithi and the Era of Myths.
aaronfeld
Posts: 52
Joined: June 9th, 2010, 7:30 pm

Re: Magenta And Vars.

Post by aaronfeld »

Do I leave the "useful WML" alone for now and was I right with the Vars?

Thanks
User avatar
Iris
Site Administrator
Posts: 6798
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: Magenta And Vars.

Post by Iris »

VariablesWML in the wiki describes variables, arrays and containers, and how to use them.
aaronfeld wrote:This is less importent but does this matter or what is it.

Code: Select all

    [about]
        title = _ "Campaign Design"
        [entry]
            name = "esci"
        [/entry]
    [/about]
    [about]
        title = _ "Campaign Maintenance"
        [entry]
            name = "Lari Nieminen (zookeeper)"
        [/entry]
        [entry]
            name = "Thomas Baumhauer (Baufo)"
        [/entry]
    [/about]
    [about]
        title = _ "Artwork and Graphics Design"
        [entry]
            name = "Syn_Err"
            comment = "story images"
        [/entry]
        [entry]
            name = "John Mercer (Stern)"
            comment = "Giant Rat graphics"
        [/entry]
        [entry]
            name= "theycallmerooster"
            comment = "portraits"
        [/entry]
    [/about]
Those are the campaign credits used after the The End screen, and in the Help » About section. The syntax is described in the CampaignWML reference.

EDIT: oh, and in case English isn't your first language and aren't familiarized with the color, this is what magenta is. Since our default team color key palette is composed of many values similar to magenta (#FF00FF)...
Image

EDIT2: I also wrapped your WML snippet above in

Code: Select all

 bbCode tags so your post doesn't look that messy. Please try to do this with all your future code samples in the future. :)
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
aaronfeld
Posts: 52
Joined: June 9th, 2010, 7:30 pm

Re: Magenta And Vars.

Post by aaronfeld »

Ohh yeah sorry for not putting it in the code box.

Thanks
Post Reply