Search found 3048 matches
- Yesterday, 3:36 pm
- Forum: WML Workshop
- Topic: WFL conditionals and variable substitution
- Replies: 7
- Views: 116
Re: WFL conditionals and variable substitution
You dont need any = in formula. You only started using = as another workaround idea.
- Yesterday, 2:28 pm
- Forum: WML Workshop
- Topic: WFL conditionals and variable substitution
- Replies: 7
- Views: 116
Re: WFL conditionals and variable substitution
$quests.met_lilith
-> ($quests.met_lilith-0)
It was more important around 1.10 when error in formula crashed game. "-" is operator that is valid both as binary and unary.
- May 13th, 2024, 6:43 pm
- Forum: Lua Labs
- Topic: Gui2 dialog formatting
- Replies: 14
- Views: 319
Re: Gui2 dialog formatting
# lua wesnoth.require("wml-utils").handle_event_commands(wml.load("~add-ons/EventLoader/action.cfg")) [lua] code=<< -- to make code shorter local wml_actions = wesnoth.wml_actions -- starting values local font_size_title = 70000 local font_size_message = 70000 local font_family_...
- May 13th, 2024, 1:31 pm
- Forum: Lua Labs
- Topic: Gui2 dialog formatting
- Replies: 14
- Views: 319
- May 13th, 2024, 12:49 pm
- Forum: Lua Labs
- Topic: Gui2 dialog formatting
- Replies: 14
- Views: 319
Re: Gui2 dialog formatting
Remove text input.
- May 12th, 2024, 7:56 pm
- Forum: Lua Labs
- Topic: Gui2 dialog formatting
- Replies: 14
- Views: 319
Re: Gui2 dialog formatting
Cant explain why it works but it does # lua wesnoth.require("wml-utils").handle_event_commands(wml.load("~add-ons/EventLoader/action.cfg")) [lua] code=<< -- to make code shorter local wml_actions = wesnoth.wml_actions -- starting values local font_size_title = 70000 local font_si...
- May 12th, 2024, 6:33 pm
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 400
Re: [heal_unit] and status=unhealable
> N_("This unit is unhealable. It cannot be healed by healers or villages and doesn’t benefit from resting."));
[heal_unit] is not one of conditions mentioned.
[heal_unit] is not one of conditions mentioned.
- May 12th, 2024, 1:33 pm
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 400
Re: [heal_unit] and status=unhealable
Should be healed.
- May 12th, 2024, 11:55 am
- Forum: Lua Labs
- Topic: Core [message] image height and width macros
- Replies: 9
- Views: 221
Re: Core [message] image height and width macros
You need to use string concatenation then. Instead of
f((image_original_width < 300)
having f((]]..tostring(image_original_width)..[[ < 300)
for example.- May 12th, 2024, 10:39 am
- Forum: Lua Labs
- Topic: Core [message] image height and width macros
- Replies: 9
- Views: 221
Re: Core [message] image height and width macros
I cant tell if the wml you posted is expected inside [image]. By syntax it seems possible.
local image_original_width = ...
local image_original_height = ...
local portrait_mirror = ...
local portrait_image = ...
are not doing anything.
local image_original_width = ...
local image_original_height = ...
local portrait_mirror = ...
local portrait_image = ...
are not doing anything.
- May 12th, 2024, 9:35 am
- Forum: Lua Labs
- Topic: Core [message] image height and width macros
- Replies: 9
- Views: 221
Re: Core [message] image height and width macros
Now that you have wml you can use wml.parse # lua wesnoth.require("wml-utils").handle_event_commands(wml.load("~add-ons/EventLoader/action.cfg")) [lua] code=<< x = wml.parse([[ h="( if((image_original_width < 300) and (image_original_height < 300), image_original_height, ((i...
- May 11th, 2024, 9:19 pm
- Forum: WML Workshop
- Topic: new campaign's questions and ideas
- Replies: 2
- Views: 145
Re: new campaign's questions and ideas
Start by creating unit types.
- May 11th, 2024, 9:16 pm
- Forum: Lua Labs
- Topic: Core [message] image height and width macros
- Replies: 9
- Views: 221
Re: Core [message] image height and width macros
First get rid of macros, run preprocessor on them. Then convert macroless WML to Lua, by wml.parse or manually as fits your situation better.
- May 10th, 2024, 10:39 pm
- Forum: WML Workshop
- Topic: fire event in teleport
- Replies: 13
- Views: 444
Re: fire event in teleport
[filter] x,y=$x1,$y1 [/filter]
Is always passing, so you can just remove that.
Is always passing, so you can just remove that.
- May 10th, 2024, 1:40 pm
- Forum: Lua Labs
- Topic: [solved] weapon specials inside [abilities]
- Replies: 5
- Views: 173
Re: [solved] weapon specials inside [abilities]
id probably means it wont give you 14 damage.