Search found 3033 matches
- May 7th, 2024, 9:34 pm
- Forum: WML Workshop
- Topic: Linking Macro files
- Replies: 2
- Views: 107
Re: Linking Macro files
{~add-ons... is not linking, it is telling wesnoth to take data from there and put into current line. The instructions are carried out in the order written, so if {~add-ons/A_Addon_Test/scenarios} depends on {~add-ons/A_Addon_Test/utils} then {~add-ons/A_Addon_Test/utils} needs to be in earlier line.
- May 7th, 2024, 12:35 pm
- Forum: WML Workshop
- Topic: Testing WML actions more often without reloading cache
- Replies: 4
- Views: 5880
Re: Testing WML actions more often without reloading cache
It might be useful to wrap wml.load in
wml.tovconfig
if there is interest to use $ variables.:alias e=lua wesnoth.require("wml-utils").handle_event_commands(wml.tovconfig(wml.load("~add-ons/EventLoader/event.cfg")))
- May 7th, 2024, 10:42 am
- Forum: WML Workshop
- Topic: fire event in teleport
- Replies: 7
- Views: 235
Re: fire event in teleport
Add [fire_event]name=teleport[/fire_event] after you teleport units. If you mean ability then enter hex should work.
- May 6th, 2024, 7:05 pm
- Forum: Lua Labs
- Topic: [solved] How to move WML table
- Replies: 12
- Views: 300
Re: How to move WML table
Assign them with the API you have available to create wml variables. Including wml.variables if you prefer. Those like set_variable, set_variables, wml.array_access.set, wml.array_variables, wml.variables_proxy.
- May 6th, 2024, 6:59 pm
- Forum: Lua Labs
- Topic: [solved] How to move WML table
- Replies: 12
- Views: 300
Re: How to move WML table
You cant put them to wml.variables. You can think of wml.variables as function, not as table. It reflects state of wml variables, but itself is not wml variables.
- May 6th, 2024, 6:57 pm
- Forum: WML Workshop
- Topic: Annoying error: <lua> Repeated [endlevel] execution, ignored
- Replies: 4
- Views: 173
Re: Annoying error: <lua> Repeated [endlevel] execution, ignored
[fire_event] the [endlevel] call, but have the event containing [end_level] first_time_only=yes.
- May 6th, 2024, 6:50 pm
- Forum: Lua Labs
- Topic: [solved] How to move WML table
- Replies: 12
- Views: 300
Re: How to move WML table
wml.variables is not real table, so you cant insert another table into it. For regular tables it is just table.insert(destination_table, wml_table).
- May 6th, 2024, 3:20 pm
- Forum: Ideas
- Topic: [UMC] Some abilities and weapon special ideas
- Replies: 4
- Views: 234
Re: [mainline] Some abilities and weapon special ideas
Bad. Feel free to create them but they have nothing to do with mainline.
- May 6th, 2024, 11:54 am
- Forum: Website
- Topic: Is it possible...
- Replies: 4
- Views: 343
Re: Is it possible...
When creating game you have option to make replay private, but you are never allowed to delete them.
- May 5th, 2024, 11:01 pm
- Forum: WML Workshop
- Topic: [solved] [unit_type] hide_help=
- Replies: 2
- Views: 146
Re: [unit_type] hide_help=
Both should do the same, so would make sense to raise it as issue.
- May 5th, 2024, 11:44 am
- Forum: Faction & Era Development
- Topic: Ageless Era - Current Version: 4.34
- Replies: 1999
- Views: 622871
Re: Ageless Era - Current Version: 4.34
It will run in 1.16 if someone wants to copy it over, but not planning to upload.
- May 5th, 2024, 12:14 am
- Forum: Lua Labs
- Topic: Global variables begginer guide
- Replies: 7
- Views: 250
Re: Global variables begginer guide
Easy way is to just save the number as another variable.
- May 5th, 2024, 12:10 am
- Forum: Users’ Forum
- Topic: What does countdown_update mean ?
- Replies: 2
- Views: 135
Re: What does countdown_update mean ?
Usually it means host took away control from this player, so his messages are ignored and dont cause any oos.
- May 3rd, 2024, 7:26 pm
- Forum: Lua Labs
- Topic: How to save game into global variable
- Replies: 3
- Views: 166
Re: How to save game into global variable
You can look into wesnoth.game_events.on_save.
- May 3rd, 2024, 5:15 pm
- Forum: Faction & Era Development
- Topic: Ageless Era - Current Version: 4.34
- Replies: 1999
- Views: 622871
Re: Ageless Era - Current Version: 4.34
Ageless Era 4.34 is out on the 1.18 add-on server Version 4.34: * Units and Factions * Era of Magic update * Rashy Era update * Balance * Many small balance changes. Detailed notes can be found from github - ProditorMagnus/Ageless-for-1-14 * Bug Fixes * FL summon * EFM trample interaction with othe...