Follow-up Comment #7, bug #23686 (project wesnoth):
I just tested [set/get_global_variable] myself in an unsyced menu event and it
worked like it should.
Here the code i used:
[modification]
id=mod_menu_test
name= _ "mod_menu_test"
type = "hybrid"
[event]
name=start
[set_menu_item]
id = "unsynced_test"
synced = no
description = "unsynced_test"
[command]
[message]
speaker = "narrator"
message = "Unsynced"
[/message]
{VARIABLE_OP bb rand "1..100"}
[set_global_variable]
from_local = "bb"
to_global = "aa"
namespace = "unsynced_test"
side = "global"
immediate = yes
[/set_global_variable]
[get_global_variable]
from_global = "aa"
to_local = "cc"
namespace = "unsynced_test"
side = "global"
immediate = yes
[/get_global_variable]
[/command]
[/set_menu_item]
[/event]
[/modification]
And what i said earlier about side beeing ignored was only about
get_global_variable in set_global_variable side= is not ignored
set_global_variable behaves the same, unrelated to whether we are in a
unsynced menu event.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?23686>
_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs