WML vs lua Speedtest

Discussion of all aspects of the game engine, including development of new and existing features.

Moderator: Forum Moderators

User avatar
Dugi
Posts: 4961
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: WML vs lua Speedtest

Post by Dugi »

8790 wrote:I think one can use math.random in singleplayer, where OoS-ness is irrelevant. I remember mattsc saying he uses it in his AIs, because using WML [set_variable]rand= is too slow.
In theory, it might be possible to use some kind of math.seed to synchronise it at some point, for example when the first movement, attack, menu item selection or recall is done, depending on the conditions of it (for example its x1 and y1).
Post Reply