wesnoth-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wesnoth-dev] Adding arithmetic operations to WML


From: David White
Subject: Re: [Wesnoth-dev] Adding arithmetic operations to WML
Date: Sat, 19 Feb 2005 09:43:27 -0600
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)

Yann Dirson wrote:

Any quick answer, or should I look at the code ?

The quick answer is that your code isn't going to work. Among other things, Wesnoth does NOT do variable interpolation when it reads the config file into memory. It does variable interpolation whenever it looks at the config objects, and a variable has one definite value...the value of a variable is never 'context dependent'.

Basically the pre-processor is currently the only way to do this, and the variables model is very very far away from being able to do anything like this.

David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]