Search found 3058 matches
- Yesterday, 11:21 pm
- Forum: WML Workshop
- Topic: new campaign's questions and ideas
- Replies: 19
- Views: 525
Re: new campaign's questions and ideas
There is no way it will work. line 5, 9, 11: unit id is generated during recruitment, the unit recruited will never be adventuring_Mage. Generated id format looks like unit_type-number. It does not make any sense for filter for recruit event unit id. 19: changes variable which is never used afterwar...
- May 17th, 2024, 3:16 pm
- Forum: Lua Labs
- Topic: [solved] units on the recall list
- Replies: 12
- Views: 336
Re: units on the recall list
Not all of them then. Generally where documentation says config you need to give wml table not unit, but seems documentation is not fully consistent on that.
- May 17th, 2024, 2:42 pm
- Forum: Lua Labs
- Topic: [solved] units on the recall list
- Replies: 12
- Views: 336
Re: units on the recall list
None of https://wiki.wesnoth.org/LuaAPI/wml work on userdata (unit).
- May 16th, 2024, 3:05 pm
- Forum: WML Workshop
- Topic: multiple objects, overlapping effects
- Replies: 2
- Views: 117
Re: multiple objects, overlapping effects
Objects are stored as wml, so all tags are ordered. Whatever it currently does is what it will always do with same version of game.
- May 16th, 2024, 8:18 am
- Forum: Lua Labs
- Topic: [unsolvable] Access event content
- Replies: 9
- Views: 304
Re: [unsolvable] Access event content
It probably does not catch everything, but you can overwrite wesnoth.wml_actions.event to save what is given to it.
- May 16th, 2024, 12:24 am
- Forum: WML Workshop
- Topic: new campaign's questions and ideas
- Replies: 19
- Views: 525
Re: new campaign's questions and ideas
You do not need to do 3. If you do "Reducing xp after recruit" I will do 1-4 for you.
- May 15th, 2024, 10:55 pm
- Forum: WML Workshop
- Topic: new campaign's questions and ideas
- Replies: 19
- Views: 525
Re: new campaign's questions and ideas
Reducing xp after recruit is easier. Once you have that working I can help with Lua to
1) disable kill xp
2) disable fight xp
3) manually give kill and fight xp at attack end
4) update gold at attack end.
1) disable kill xp
2) disable fight xp
3) manually give kill and fight xp at attack end
4) update gold at attack end.
- May 15th, 2024, 9:16 pm
- Forum: WML Workshop
- Topic: new campaign's questions and ideas
- Replies: 19
- Views: 525
Re: new campaign's questions and ideas
Macro is easy dirty way, but unless you have performance issues there is no need to optimize code with fire_event.
{CLEAR_VARIABLE xp_transfer} is part of code quality improvement, but does not affect what your code does. Both events start by resetting it anyways.
{CLEAR_VARIABLE xp_transfer} is part of code quality improvement, but does not affect what your code does. Both events start by resetting it anyways.
- May 15th, 2024, 7:46 pm
- Forum: WML Workshop
- Topic: new campaign's questions and ideas
- Replies: 19
- Views: 525
Re: new campaign's questions and ideas
You could update gold to be equal to xp. If you recruit, reduce xp. If you fight, increase gold.
- May 15th, 2024, 7:44 am
- Forum: WML Workshop
- Topic: WFL conditionals and variable substitution
- Replies: 9
- Views: 272
Re: WFL conditionals and variable substitution
(Celtic_Minstrel can correct if my understanding is wrong)
WML variables are expanded in increase_damage attribute as string. Only after expansion has been done, increase_damage is parsed as formula. Undefined WML variable expands to empty string, not formula-null.
WML variables are expanded in increase_damage attribute as string. Only after expansion has been done, increase_damage is parsed as formula. Undefined WML variable expands to empty string, not formula-null.
- May 14th, 2024, 3:36 pm
- Forum: WML Workshop
- Topic: WFL conditionals and variable substitution
- Replies: 9
- Views: 272
Re: WFL conditionals and variable substitution
You dont need any = in formula. You only started using = as another workaround idea.
- May 14th, 2024, 2:28 pm
- Forum: WML Workshop
- Topic: WFL conditionals and variable substitution
- Replies: 9
- Views: 272
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: [solved] Gui2 dialog formatting
- Replies: 14
- Views: 391
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: [solved] Gui2 dialog formatting
- Replies: 14
- Views: 391
- May 13th, 2024, 12:49 pm
- Forum: Lua Labs
- Topic: [solved] Gui2 dialog formatting
- Replies: 14
- Views: 391
Re: Gui2 dialog formatting
Remove text input.