Follow-up Comment #12, patch #1120 (project wesnoth):
Small update of the C++ patch to fight against bitrot. The changes are in the
Lua code of the tutorial. It now implements proper proxies for WML variables
(e.g. next_turn.capture_village can now be written to). As an example of
replacing the preprocessor by Lua functions, the tutorial also provides a
modify_unit function, which just performs the same WML call than the
MODIFY_UNIT macro. (Note that this function can change multiple variables at
once, contrarily to the macro.)
(file #5373, file #5374)
_______________________________________________________
Additional Item Attachment:
File name: wesnoth-lua.patch Size:22 KB
File name: 1_Tutorial.cfg Size:39 KB
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1120>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs