Search found 1285 matches
- Today, 2:54 am
- Forum: WML Workshop
- Topic: Trigger message on attack during certain range of turns
- Replies: 6
- Views: 127
Re: Trigger message on attack during certain range of turns
You could
Spoiler:
- Today, 2:43 am
- Forum: WML Workshop
- Topic: Trigger message on attack during certain range of turns
- Replies: 6
- Views: 127
- Today, 2:30 am
- Forum: WML Workshop
- Topic: Trigger message on attack during certain range of turns
- Replies: 6
- Views: 127
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: 401488
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: 462
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: 462
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: 169
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: 462
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: 462
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.
- May 18th, 2024, 3:08 pm
- Forum: Users’ Forum
- Topic: Legend of the Invincibles
- Replies: 8
- Views: 780
Re: Legend of the Invincibles
The changes to the elves did require some changes to loti (the enchantress line were already quite popular and way to powerful IMO), but also there was a poll on which units players made use of and the results are being used.
- May 18th, 2024, 2:47 pm
- Forum: Lua Labs
- Topic: [resolution] problems
- Replies: 16
- Views: 462
Re: [resolution] problems
Just ran into this while looking at something completely unrelated. Sounds like it's worth testing: commit 2ad0a2f29784b149035ee86e00f8d63bce38d7c0 Author: Tommy <> Date: Sat Jul 16 01:22:59 2022 +1200 Prevent the game from displaying until story screen has finished Should fix #6867 and #3421.
- May 17th, 2024, 6:41 pm
- Forum: Lua Labs
- Topic: [solved] units on the recall list
- Replies: 12
- Views: 396
Re: units on the recall list
What I wonder is should there be a difference in .valid between the two? I was looking for the answer to the in the above quoted documentation, but didn't see/understand it. __cfg just returns WML. It doesn't know that it's a unit anymore, it's just an arbitrary untyped chunk of data formatted acco...
- May 17th, 2024, 5:31 pm
- Forum: WML Workshop
- Topic: new campaign's questions and ideas
- Replies: 24
- Views: 772
Re: new campaign's questions and ideas
I think it was determined that xp is granted after attack end.lhybrideur wrote: ↑May 17th, 2024, 5:05 pm You could store xp in a variable in an attack event (start of the attack) and compare it to the xp in the attack_end even.
Then you reduce the xp by the difference and gives it to the leader.
- May 17th, 2024, 2:54 pm
- Forum: Lua Labs
- Topic: [solved] units on the recall list
- Replies: 12
- Views: 396
Re: units on the recall list
That sounds like the top of that page really needs a comment to that effect, but I do not know how to word it.Ravana wrote: ↑May 17th, 2024, 2:42 pm None of https://wiki.wesnoth.org/LuaAPI/wml work on userdata (unit).
However, several of those functions such as wml.literal and wml.parsed mention userdata as input.
- May 17th, 2024, 1:41 pm
- Forum: Lua Labs
- Topic: [solved] units on the recall list
- Replies: 12
- Views: 396
Re: units on the recall list
I'm reasonably sure that I need to serialize at some point, and AFAIK there's no list of exactly what is available from just unit vs unit.__cfg (what do you call that anway?). It's kind of become a habit since the performance hit, which I've never been able to notice, is nothing compared to the amou...