Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
If you like the game and can afford to, please
donate to support MegaGlest
.
Home
Help
Search
Login
Register
MegaGlest Forum
»
Modding and game content creation
»
Mods
»
Math in XML?
Pages: [
1
]
Print
Author
Topic: Math in XML? (Read 1696 times)
Alestance
Guest
Math in XML?
«
on:
24 April 2008, 22:21:35 »
Is it possible to use Math based functions in a unit's XML data? I'm thinking of making a mod where a certain element increases 2% every 30 seconds. starting at 100. Is that possible?
«
Last Edit: 1 January 1970, 00:00:00 by Alestance
»
Logged
daniel.santos
Guest
(No subject)
«
Reply #1 on:
24 April 2008, 23:03:05 »
not without modifying the engine sources
«
Last Edit: 1 January 1970, 00:00:00 by daniel.santos
»
Logged
wciow
Behemoth
Posts: 968
(No subject)
«
Reply #2 on:
25 April 2008, 09:31:47 »
To expand on what Daniel said, XML cannot do math. It is possible for the engine to read XML values and use them but you would have to modify the C++ in order to actually make your inputs useful.
«
Last Edit: 1 January 1970, 00:00:00 by wciow
»
Logged
Check out my new Goblin faction -
https://forum.megaglest.org/index.php?topic=9658.0
Print
Pages: [
1
]
MegaGlest Forum
»
Modding and game content creation
»
Mods
»
Math in XML?