Questions about the Source Code
Moderator: Forum Moderators
Re: Questions about the Source Code
Do you have some example of access the wml_actions?8680 wrote:Normal variables, the ones thatwesnoth.get_variable
accesses, are not accessible across multiple playthroughs of a campaign or multiple multiplayer games, whereas persistent variables are.
To access persistent variables from Lua, call the WML action tag handlers through thewesnoth.wml_actions
table, then use normalwesnoth.get_variable
to access the resultant normal WML variables.
Re: Questions about the Source Code
In general?jieverson wrote:Do you have some example of access the wml_actions?
Code: Select all
wesnoth.wml_actions.message {
speaker = "narrator";
message = "...";
}