URL:
<http://gna.org/bugs/?21208>
Summary: Would like read-only access to some top level tags
exposed to lua
Project: Battle for Wesnoth
Submitted by: involution
Submitted on: Tue 22 Oct 2013 11:27:09 PM GMT
Category: Feature Request
Severity: 1 - Wish
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.10, 1.11
Operating System: Ubuntu
_______________________________________________________
Details:
For some UMC multiplayer scenarios, it would be nice to be able to access some
of the keys of high level tags like [era] and [multiplayer]. For instance I
know that save game files contain tags of multiplayer like mp_era and
mp_countdown_... which will let me know what era was chosen, what the timer
settings are, whether shuffle sides was enabled, things like that. If UMC
authors could read these tags they could e.g. customize behavior of their
scenarios when they are used with UMC eras, which would be very nice.
Anonymissimus writes that this can *almost* be done using lua,
wesnoth.game_events.on_load, however the engine is written so that it strips
out tags that should not be modified by lua. It would be nice if we could also
get a read-only table passed to this function or a sister function that did
contain tags like this.
This mainly a follow up on:
http://forums.wesnoth.org/viewtopic.php?f=21&t=39468#p561342
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21208>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs