Search found 2998 matches
- April 11th, 2024, 10:16 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1660
Re: Working lua need advice deciding which method is best
wiki is wrong, wml.variable does not exist. It was supposed to be wml.tag.have_unit and wml.tag.variable.
Lua also knows some comparison operators, so you can use for example wesnoth.current.side ~= side_candc
Lua also knows some comparison operators, so you can use for example wesnoth.current.side ~= side_candc
- April 11th, 2024, 4:33 pm
- Forum: WML Workshop
- Topic: Clone unit in WML
- Replies: 5
- Views: 442
Re: Clone unit in WML
[unit]to_variable
It might happen that if you delete id completely then it is generated for copy too.
It might happen that if you delete id completely then it is generated for copy too.
- April 11th, 2024, 3:40 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1660
Re: Working lua need advice deciding which method is best
Code: Select all
[dbck_setup]
event_name = "dbck_test" # name of event to fire
side = 1 # Only enabled on this side's turn
[unit_filter]
x,y=4,4
[/unit_filter]
[/dbck_setup]
- April 11th, 2024, 3:36 pm
- Forum: WML Workshop
- Topic: Clone unit in WML
- Replies: 5
- Views: 442
Re: Clone unit in WML
Store, change id, unstore. If you do not trust yourself to avoid id conflicts then generate new [unit], save its id, kill it, and assign that id to copy.
- April 11th, 2024, 9:25 am
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1660
Re: Working lua need advice deciding which method is best
_G is about Lua variables, [set_global_variable] is about WML variables which are stored in file.
- April 11th, 2024, 7:49 am
- Forum: WML Workshop
- Topic: Ability damage %HP owner help needed
- Replies: 10
- Views: 1822
Re: Ability damage %HP owner help needed
The way I understood use was, $self was meant as unit with ability, not the unit being harmed.
- April 10th, 2024, 10:57 pm
- Forum: WML Workshop
- Topic: Okay, what's up with the macros
- Replies: 19
- Views: 1162
Re: Okay, what's up with the macros
first_scenario
- April 10th, 2024, 10:46 pm
- Forum: WML Workshop
- Topic: Okay, what's up with the macros
- Replies: 19
- Views: 1162
Re: Okay, what's up with the macros
first scenario=01_First_Contact
is invalid wml, so this campaign should not load, but no wml should be able to make game crash.- April 10th, 2024, 9:03 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1660
Re: Working lua need advice deciding which method is best
If you used global variables then stringx.vformat(_("There is a $color $species."), _G) something of this idea will work. _G is table of global variables. With local you need to explicitly add them. Or use local v={}, v.color = "red", v.species = "dragon", stringx.vform...
- April 9th, 2024, 9:47 pm
- Forum: Users’ Forum
- Topic: So, let's make a scenario
- Replies: 11
- Views: 2714
Re: So, let's make a scenario
1.18 editor can do more than before, but most people including me dont know those recent details.
- April 8th, 2024, 6:11 pm
- Forum: Users’ Forum
- Topic: So, let's make a scenario
- Replies: 11
- Views: 2714
Re: So, let's make a scenario
https://units.wesnoth.org/ lists most of known units.
- April 8th, 2024, 8:26 am
- Forum: WML Workshop
- Topic: Tarcils WML Questions
- Replies: 48
- Views: 7505
Re: Tarcils WML Questions
FIx your pbl file so it is valid wml, preferably even simple wml (sorted keys).
- April 6th, 2024, 7:39 pm
- Forum: WML Workshop
- Topic: [resolution] documentation [closed]
- Replies: 3
- Views: 1839
- April 6th, 2024, 12:07 pm
- Forum: Ideas
- Topic: Reverse time graphics
- Replies: 7
- Views: 1858
Re: Reverse time graphics
Uploaded for 1.18. # Addon icon is misc/time-schedules/default/schedule-morning.png~FL()~CROP(10,-10,72,72)~BLIT(misc/time-schedules/default/schedule-morning.png~CS(50,0,0)~CROP(80,-10,36,72)~BLIT(misc/red-x.png~SCALE(24,24),8,16)~O(1),36,0) [modification] id=Rav_Reverse_Time_Graphics name=_"Re...
- April 6th, 2024, 9:19 am
- Forum: Ideas
- Topic: [solved] [engine] min_value for [resistance]
- Replies: 5
- Views: 1350
Re: [engine] min_value for [resistance]
This is not about min_value, it is about order of operations. Even mainline steadfast will double weaknesses when weakness is caused by another ability.