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 »

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 »

wciow

  • Behemoth
  • *******
  • Posts: 968
    • View Profile
(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 »
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0