[Wesnoth-bugs] [bug #23490] Side specific variables

2017-03-18 Thread Charles Dang
Update of bug #23490 (project wesnoth): Open/Closed:Open => Closed ___ Reply to this item at: ___ Message

[Wesnoth-bugs] [bug #23490] Side specific variables

2017-02-14 Thread Daniel
Update of bug #23490 (project wesnoth): Status:None => Fixed ___ Follow-up Comment #7: I implemented wesnoth.get_side_variable(side_num, variable_name) and

[Wesnoth-bugs] [bug #23490] Side specific variables

2015-10-08 Thread Celtic Minstrel
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

[Wesnoth-bugs] [bug #23490] Side specific variables

2015-10-07 Thread Celtic Minstrel
Follow-up Comment #4, bug #23490 (project wesnoth): I can see your point about save_id maybe containing spaces and other special characters, but you can easily ensure that it doesn't (because you control what the save_id is), so I don't see that being a significant issue. The advantage of

[Wesnoth-bugs] [bug #23490] Side specific variables

2015-10-07 Thread Daniel
Follow-up Comment #5, bug #23490 (project wesnoth): > I can see your point about save_id maybe containing spaces and other special characters, but you can easily ensure that it doesn't (because you control what the save_id is), so I don't see that being a significant issue. Uhm no i can't. Like

[Wesnoth-bugs] [bug #23490] Side specific variables

2015-10-07 Thread Daniel
Follow-up Comment #3, bug #23490 (project wesnoth): I personally think storing these variables in the leaders variables isn't very save since it will break if the leader dies or for sides with no leaders. I recently tried to wrtie a similar thing, and since my addon is a modification i cannot

[Wesnoth-bugs] [bug #23490] Side specific variables

2015-10-07 Thread Celtic Minstrel
Follow-up Comment #1, bug #23490 (project wesnoth): My suggestion is to store the inventory in the unit variables of the side leader. Unless you need inventory for sides without a leader? ___ Reply to this item at:

[Wesnoth-bugs] [bug #23490] Side specific variables

2015-10-07 Thread Celtic Minstrel
Follow-up Comment #2, bug #23490 (project wesnoth): (Another idea: If the issue is that side numbers change, reference something that won't change - the save_id. Probably not possible at the moment, would need save_id added to SSF or something.)