Follow-up Comment #6, bug #23490 (project wesnoth): Oh, right. Somehow I didn't think of that. It's possible without using the save_id directly as a variable name, though. I imagine it'd be a little slower because lookup requires iterating over an array, but it would be possible.
As for unit variables, there's a __cfg attribute. You should be able to use the helper.* functions on that to get an array you can work with... the only thing I'm not sure of is if you can modify unit array variables in that way. I won't deny it could use work. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?23490> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list Wesnoth-bugs@gna.org https://mail.gna.org/listinfo/wesnoth-bugs