Search found 1310 matches
- May 16th, 2024, 3:34 pm
- Forum: Lua Labs
- Topic: [unsolvable] Access event content
- Replies: 9
- Views: 409
Re: [unsolvable] Access event content
I don't know, I've never used them. But for those I was thinking about your question about 'how to notice when it's fired'. If you want to erase them (the events) and recreate them, you could: 1) Since you want to do this from lua, just write them in lua in the first place, save them as variables, a...
- May 16th, 2024, 3:13 pm
- Forum: WML Workshop
- Topic: multiple objects, overlapping effects
- Replies: 2
- Views: 189
Re: multiple objects, overlapping effects
You mean it will use whichever comes last?
- May 16th, 2024, 2:39 pm
- Forum: WML Workshop
- Topic: multiple objects, overlapping effects
- Replies: 2
- Views: 189
multiple objects, overlapping effects
If a unit possesses two objects, say abilities.leadership.value=15 and abilities.leadership.value=20, which one is selected? What about abilities.leadership.value=-15 and abilities.leadership.value=-20? Or abilities.leadership.value=-15 abilities.leadership.value=20? Does it make any difference who ...
- May 16th, 2024, 2:09 pm
- Forum: Scenario & Campaign Development
- Topic: Compatibility of previous add-ons with the current version
- Replies: 6
- Views: 388
Re: Compatibility of previous add-ons with the current version
Depends what you mean by "make it playable". You want to edit the code to bring it up to 1.18 compatibility, or just download the 1.14 version to your 1.18 install and hope it works? You might ask over here, though it doesn't seem to have seen much (un)life recently: https://forums.wesnoth...
- May 16th, 2024, 1:35 pm
- Forum: Lua Labs
- Topic: [unsolvable] Access event content
- Replies: 9
- Views: 409
Re: [unsolvable] Access event content
Hi, How to access event content via Lua? I'm pretty sure I don't understand what you are asking, but if you mean you want to access (read) events you've written in WML from lua, could the answer be as simple as just writing them in lua in the first place? Or some combination of wesnoth.game_events....
- May 16th, 2024, 8:35 am
- Forum: Lua Labs
- Topic: [resolution] problems
- Replies: 16
- Views: 638
Re: [resolution] problems
You can't use side 1 turn 1, or turn refresh, or one of those?
- May 15th, 2024, 11:47 pm
- Forum: WML Workshop
- Topic: new campaign's questions and ideas
- Replies: 31
- Views: 1375
Re: new campaign's questions and ideas
You're using attack end, I wonder if that happens before or after the unit is granted experience. If it's before, he'll have nothing to give on the first attack (or the third, fifth...). yes! thats whats happening, how could i fix that? I don't know that there is an event that happens "after a...
- May 15th, 2024, 9:08 pm
- Forum: WML Workshop
- Topic: new campaign's questions and ideas
- Replies: 31
- Views: 1375
Re: new campaign's questions and ideas
i made a unit for the orbs (Emperor zombie knight helped), it works well enough although it waits until a second attack is made in order to transfer xp to my mage unit... You're using attack end, I wonder if that happens before or after the unit is granted experience. If it's before, he'll have not...
- May 15th, 2024, 2:26 am
- Forum: WML Workshop
- Topic: WFL conditionals and variable substitution
- Replies: 9
- Views: 386
Re: WFL conditionals and variable substitution
If I'm following this right, X - null = error, but null - X = X therefore X - (null - 0) = X [which of course, should mean that X - null + 0 = X -> X - null = X ] But, I think I might see what's going on. Using simple substitution: "X - $undefined_variable" = "X - ", which is inv...
- May 14th, 2024, 3:31 pm
- Forum: WML Workshop
- Topic: WFL conditionals and variable substitution
- Replies: 9
- Views: 386
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. Sorry, I don't follow. It's puking on "=", not "-" so I'm a bit confused. Honestly though, every a...
- May 14th, 2024, 1:51 pm
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 651
Re: [heal_unit] and status=unhealable
Or is that just [filter_wml][not]status=unhealable ? No need for [filter_wml] - just [filter][not]status=unhealable should work (status is part of the StandardUnitFilter ). Yeah, I saw that somewhere after posting. But from what I've read about [filter_wml] it sounds like there's no penalty for usi...
- May 14th, 2024, 1:49 pm
- Forum: WML Workshop
- Topic: WFL conditionals and variable substitution
- Replies: 9
- Views: 386
WFL conditionals and variable substitution
I encountered this piece of code: [effect] apply_to=attack increase_damage="$($quests.met_lilith*2-$quests.lilith_deaths)" [/effect] [effect] apply_to=hitpoints increase_total="$($quests.met_lilith*60-$quests.lilith_deaths*30)" heal_full=yes [/effect] which throws these errors 20...
- May 13th, 2024, 10:50 pm
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 651
Re: [heal_unit] and status=unhealable
That sort of thing should go in the wiki, either in the unhealable status documentation or the [heal_unit] documentation (or both). Yes, it should be in both. And now that I think of it, [heal_unit] could take a parameter, honor_unhealable=yes|no (default no, since that's the way it works today). E...
- May 13th, 2024, 12:26 am
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 651
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. Exactly. The statement "this unit is unhealable" by its nature covers all conditions. Unhealable is binary, you either ...
- May 12th, 2024, 6:22 pm
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 651
Re: [heal_unit] and status=unhealable
Then they (temporarily) clear the unhealable status, Well, that might work, but: It's a lot of additional code the developer would have to write. It seems like it could have additional side effects; suppose that the unhealable status has some indicator or icon in the user interface. Would clearing ...