Follow-up Comment #6, bug #21776 (project wesnoth): > In Conquest Minus, after the point of the first save and before the reload, the game continues one more turn so that the players can make some input. If the game continued (without a reload) then there would be one additional dummy turn, which would increase a natural turn numbering. This is why the game must be reloaded.
hm i still dont understand how do you put the input you gained during that one turn in the save of the first turn. do you use [set_global_variable] ? > Lua variables are not saved. Imagine you transform a table into a WML container (this transformation would be somewhat opposite to wesnoth.get_variable), so that it is saved. Then a reload event loads this table from the WML container. > This way you can work a full-featured way with Lua tables, and you are not limited to WML tables only. thats also possible with the current implementation. save variables in wesnoth.game_events.on_save and restore them in preload events. and in the last post i meant preload not prestart. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?21776> _______________________________________________ Nachricht gesendet von/durch Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list Wesnoth-bugs@gna.org https://mail.gna.org/listinfo/wesnoth-bugs