Small WML Improvement
Moderator: Forum Moderators
Small WML Improvement
I have added a new feature to WML to make it slightly less verbose. I've always found it irritating that you have to write e.g.
To specify a co-ordinate pair. So, I've added a feature to the language that allows you to specify it on the same line:
This isn't a co-ordinate specific feature -- any set of values can be initialized like this. E.g.
Also, if you don't specify as many values as you do attributes, all the attributes without values will use the last value. That means that referring to my proposal for a better tiling system, instead of having to go,
You could simply go,
David
Code: Select all
x=12
y=18
Code: Select all
x,y=12,18
Code: Select all
red,green,blue=200,0,0
Code: Select all
n=~h
ne=~h
se=~h
sw=~h
nw=~h
Code: Select all
n,ne,se,sw,nw=~h
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
you cannot do something like this:
in this new way, correct? (and yes, i realize that you could still just do it like above)
Code: Select all
x=1,2,3,4
y=4,3,2,1
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
No you can't do something like that.turin wrote:you cannot do something like this:
in this new way, correct? (and yes, i realize that you could still just do it like above)Code: Select all
x=1,2,3,4 y=4,3,2,1
David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming