Search found 1291 matches
- Today, 6:47 am
- Forum: WML Workshop
- Topic: WFL get adjecent units
- Replies: 5
- Views: 113
Re: WFL get adjecent units
inside [abilities][damage] ? (not [ability]). You MIGHT be able to use [filter_adjacent] https://wiki.wesnoth.org/AbilitiesWML#Common_keys_and_tags_for_every_weapon_special if you're looking to do something specific like unit is adjacent to exactly one enemy. I don't know what you're trying to do, b...
- Yesterday, 9:07 pm
- Forum: WML Workshop
- Topic: WFL get adjecent units
- Replies: 5
- Views: 113
Re: WFL get adjecent units
WFL? You couldn't just use [store_unit] and a filter to store them to an array and then take its length?
- May 23rd, 2024, 8:53 pm
- Forum: WML Workshop
- Topic: new campaign's questions and ideas
- Replies: 31
- Views: 1175
Re: new campaign's questions and ideas
im still having trouble loading the lua package... Adjust this to match your scenario/file: [lua] code=<< wesnoth.dofile("~add-ons/Legend_of_the_Invincibles/lua/effects.lua") >> [/lua] Then, since the function is wml_actions.give_fight_xp, just [give_fight_xp] attacker = foo # or leave bl...
- May 23rd, 2024, 1:12 am
- Forum: Art Workshop
- Topic: Duncan's Sprite Gallery
- Replies: 29
- Views: 1674
Re: Duncan's Sprite Gallery
His face accounts for about 20-25% of his height. It looks right in proportion to his arms, I think it's the legs that don't look right to me. It's as if his knees connect to his waist, with no thighs in between. But perhaps he's just hunched over? He seems to be leaning slightly forward, but not en...
- May 22nd, 2024, 11:55 pm
- Forum: Ideas
- Topic: [interface] move position of abilities popup
- Replies: 16
- Views: 10093
Re: [interface] move position of abilities popup
pango_layout_get_pixel_size does look promising. I guessed that I'd put the message into a pango layout, query the size, and then use that to adjust the rect dimensions. I totally failed at that, unfortunately. One day, but right now not so much.
https://github.com/wesnoth/wesnoth/pull/8908
https://github.com/wesnoth/wesnoth/pull/8908
- May 22nd, 2024, 1:17 am
- Forum: Ideas
- Topic: wesnoth rpg
- Replies: 10
- Views: 5851
Re: wesnoth rpg
That starts off sounding a lot like Trader: Strange Legacy, when played in RPG mode. I don't think it's what you are looking to do, but it's certainly worth looking at:
viewtopic.php?t=35400
viewtopic.php?t=35400
- May 21st, 2024, 2:54 am
- Forum: WML Workshop
- Topic: Trigger message on attack during certain range of turns
- Replies: 6
- Views: 206
Re: Trigger message on attack during certain range of turns
You could
Spoiler:
- May 21st, 2024, 2:43 am
- Forum: WML Workshop
- Topic: Trigger message on attack during certain range of turns
- Replies: 6
- Views: 206
- May 21st, 2024, 2:30 am
- Forum: WML Workshop
- Topic: Trigger message on attack during certain range of turns
- Replies: 6
- Views: 206
Re: Trigger message on attack during certain range of turns
Where's your first_time_only?
- May 19th, 2024, 7:41 pm
- Forum: Scenario & Campaign Development
- Topic: Strange Legacy - 1.16 RPG World (Markets Upgrade)
- Replies: 1360
- Views: 403557
Re: Strange Legacy - 1.16 RPG World (Markets Upgrade)
10. In Capital City, some equipment said "More Population required!" No one told me how to increase population. I don't know about CC, but usually If you look at things the will buy/sell, there will be one with very few in stock, and if you sell them some the stock will go up but then if ...
- May 19th, 2024, 4:43 pm
- Forum: Lua Labs
- Topic: [resolution] problems
- Replies: 16
- Views: 573
Re: [resolution] problems
Oh, is this the campaign where you are messing with (experimental) global variables, screwing with save/load, etc? If so, it seems obvious enough, my code works because I don't do that stuff. You've probably done something that breaks gamemap_size or whatever between S1 or turn 1 or whatever, and so...
- May 19th, 2024, 4:50 am
- Forum: Lua Labs
- Topic: [resolution] problems
- Replies: 16
- Views: 573
Re: [resolution] problems
I put your code in scenario 2 [start], on a recent 1.19 build. Looks fine to me.
However, I notice in your screenshot there is a unit selected. Are you doing something in prestart? I suspect there's something different about your S1 and S2.
However, I notice in your screenshot there is a unit selected. Are you doing something in prestart? I suspect there's something different about your S1 and S2.
- May 18th, 2024, 10:24 pm
- Forum: WML Workshop
- Topic: An error in inspect
- Replies: 2
- Views: 221
An error in inspect
I have no idea what to make of this. If I click on the unit and scroll down I don't see an issue with [variables], but if I click on [statuses][0] I get an error I don't understand and the scenario closes.
- May 18th, 2024, 4:06 pm
- Forum: Lua Labs
- Topic: [resolution] problems
- Replies: 16
- Views: 573
Re: [resolution] problems
I don't see a problem in a pretty recent 1.19, or going back to 1.16.10.
"Green rectangle displays ALL over the screen" displays only on the gamemap, like the second image in your first post.
"Green rectangle displays ALL over the screen" displays only on the gamemap, like the second image in your first post.
- May 18th, 2024, 3:13 pm
- Forum: Lua Labs
- Topic: [resolution] problems
- Replies: 16
- Views: 573
Re: [resolution] problems
https://github.com/wesnoth/wesnoth/comm ... 3bce38d7c0
I'm currently building right around that commit, so if you want to post some simple (as simple as possible) code that demonstrates the problem I can test it.
I'm currently building right around that commit, so if you want to post some simple (as simple as possible) code that demonstrates the problem I can test it.