Search found 1295 matches

by white_haired_uncle
Today, 10:29 am
Forum: WML Workshop
Topic: AI ability damage counting
Replies: 3
Views: 139

Re: AI ability damage counting

I think by "count with" you mean "take into account". For example, if you create your own status that is like poison (harms a unit, needs to be cured by village/healer), how do you make the AI understand that the unit now needs to get cured? You don't, though you might look at ht...
by white_haired_uncle
Today, 1:25 am
Forum: Scenario & Campaign Development
Topic: Legend of the Invincibles
Replies: 8126
Views: 2184850

Re: Legend of the Invincibles

I heard that according to the poll, the battlerager isn't very popular. I love them. Give this guy the right book, a few potions, a special limited item, and maybe craft a certain axe and he'd be pretty tough. I didn't really build him out to be the ultimate stud, at some point there's not much poin...
by white_haired_uncle
Yesterday, 11:56 am
Forum: Scenario & Campaign Development
Topic: Invasion from the Unknown 2.1.13.1 [Wesnoth 1.14.x & 1.15.12+]
Replies: 264
Views: 158025

Re: Invasion from the Unknown 2.1.13.1 [Wesnoth 1.14.x & 1.15.12+]

Hey, I suddenly got the urge to play Battle For Wesnoth after 3 or 4 years of not playing it, and I remembered about this add-on campaign that I enjoyed so much. After downloading the game and installing it, I proceeded to look for the Invasion from the Unknown add-on (as well as the sequel After t...
by white_haired_uncle
May 25th, 2024, 11:28 am
Forum: WML Workshop
Topic: WFL get adjecent units
Replies: 10
Views: 300

Re: WFL get adjecent units

At the beginning of the attack and every attacker_hits/defender_hits, check the number of adjacent units and adjust the damage accordingly.

Code: Select all

$stored_unit.abilities.damage[$i].add, where $stored_unit.abilities.damage$[i].id=="battle_frenzy"
(or something close to that)
by white_haired_uncle
May 25th, 2024, 6:47 am
Forum: WML Workshop
Topic: WFL get adjecent units
Replies: 10
Views: 300

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...
by white_haired_uncle
May 24th, 2024, 9:07 pm
Forum: WML Workshop
Topic: WFL get adjecent units
Replies: 10
Views: 300

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?
by white_haired_uncle
May 23rd, 2024, 8:53 pm
Forum: WML Workshop
Topic: new campaign's questions and ideas
Replies: 31
Views: 1249

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...
by white_haired_uncle
May 23rd, 2024, 1:12 am
Forum: Art Workshop
Topic: Duncan's Sprite Gallery
Replies: 29
Views: 1754

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...
by white_haired_uncle
May 22nd, 2024, 11:55 pm
Forum: Ideas
Topic: [interface] move position of abilities popup
Replies: 16
Views: 10674

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
by white_haired_uncle
May 22nd, 2024, 1:17 am
Forum: Ideas
Topic: wesnoth rpg
Replies: 10
Views: 6059

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
by white_haired_uncle
May 21st, 2024, 2:54 am
Forum: WML Workshop
Topic: Trigger message on attack during certain range of turns
Replies: 6
Views: 228

Re: Trigger message on attack during certain range of turns

You could
Spoiler:
by white_haired_uncle
May 21st, 2024, 2:43 am
Forum: WML Workshop
Topic: Trigger message on attack during certain range of turns
Replies: 6
Views: 228

Re: Trigger message on attack during certain range of turns

MathBrush wrote: May 21st, 2024, 2:35 am I was under the impression that 'first_time_only' was set to 'yes' by default, which is what I want here. My issue is that it's not firing at all.
turn_number is not a filter, so it runs once on turn 1 and then never again.
by white_haired_uncle
May 19th, 2024, 7:41 pm
Forum: Scenario & Campaign Development
Topic: Strange Legacy - 1.16 RPG World (Markets Upgrade)
Replies: 1362
Views: 406543

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 ...
by white_haired_uncle
May 19th, 2024, 4:43 pm
Forum: Lua Labs
Topic: [resolution] problems
Replies: 16
Views: 597

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...