Search found 534 matches
- March 15th, 2022, 9:46 pm
- Forum: WML Workshop
- Topic: Die event modification
- Replies: 10
- Views: 573
Re: Die event modification
Hi, If I understand correctly what you want, this should work (in a die event) (at least it works for me). # the kill action is necessary to free the unit position before creating a new one. # else, the new unit would be created on an adjacent hex. [store_unit] [filter] id=$unit.id [/filter] variabl...
- March 14th, 2022, 6:29 pm
- Forum: WML Workshop
- Topic: Extra keys in unit_type
- Replies: 2
- Views: 267
Re: Extra keys in unit_type
I don't remember that this possibility was even documented. Certainly I've never used it! I don't think it was... I used this for instance to specify how many units can board on a boat. Obviously, the property is shared by all boats of the same type, and it's tempting to set them in the [unit_type]...
- March 14th, 2022, 10:41 am
- Forum: WML Workshop
- Topic: Extra keys in unit_type
- Replies: 2
- Views: 267
Extra keys in unit_type
Hi all ! In former versions (at least in 1.12) it was possible to add extra keys in unit_type, say something like "capacity=12" and this extra key was added to the unit created after this definition. It's still possible to add extra keys in unit_type block, but it seems to me they're no mo...
- March 14th, 2022, 10:32 am
- Forum: WML Workshop
- Topic: Extra recruit and set menu questions
- Replies: 6
- Views: 393
Re: Extra recruit and set menu questions
IMO, it should be:
HTH
Code: Select all
[event]
name=unit_recruited
first_time_only=no
[message]
speaker=$unit.id
message=_ "Reporting for duty!"
[/message]
[/event]
- March 1st, 2022, 4:24 pm
- Forum: WML Workshop
- Topic: Transforming Units
- Replies: 6
- Views: 573
Re: Transforming Units
Thank you for replying, I did look on the wiki after reading your reply, however as you well know some things on the wiki are vague, or simply do not apply at all to what is entered in the search bar the wiki just is not developed enough to write a page on every topic. IMHO, using the search bar of...
- March 1st, 2022, 2:37 pm
- Forum: Technical Support
- Topic: SLOW Performance Issues: post here to report
- Replies: 266
- Views: 322545
Re: SLOW Performance Issues: post here to report
OK, thanks for your reply...
- February 27th, 2022, 8:38 am
- Forum: Technical Support
- Topic: SLOW Performance Issues: post here to report
- Replies: 266
- Views: 322545
Re: SLOW Performance Issues: post here to report
Hello everyone... I have a performance problem with 1.16 (flatpak) running on Ubuntu 18.04 LTS. Even when idle, Wesnoth uses a lot of processor time, which is not a real issue on my box (I7 12 cores), but makes the fan noisy. When saying idle, I mean for instance being waiting for user interaction o...
- February 27th, 2022, 5:23 am
- Forum: WML Workshop
- Topic: Transforming Units
- Replies: 6
- Views: 573
Re: Transforming Units
Hello... Here is an example code: [set_menu_item] id=menuid_12345 # set some unique string here, look at [set_menu_item] on the wiki description="Transformation." [show_if] [have_unit] type=unittype1,unittype2,unittype3 # and more at will side=1 # optionnal, but you may want to use it on s...
- February 12th, 2022, 6:02 pm
- Forum: WML Workshop
- Topic: How to replace an event in the middle of a scenario
- Replies: 14
- Views: 1008
Re: How to replace an event in the middle of a scenario
Do you have code for some inventory system by any chance? Or, maybe an alchemy system implemented in either WML/Lua? Was looking for one (mostly the latter) for a project. But I'd also be interested in anything you've thought of? Well... It's difficult to reply in few words ! :lol: I have an invent...
- February 12th, 2022, 8:36 am
- Forum: Technical Support
- Topic: sym links in userdata
- Replies: 8
- Views: 698
Re: sym links in userdata (SOLVED)
Hi everyone ! I finally fixed the issue and give the tip here just in case it could help someone else. gnombat was right: the flatpak sandbox was ignoring silently the sym link. Give access to the Wesnoth process outside the sandbox is possible using the "--filesystem" option in the launch...
- February 11th, 2022, 10:06 pm
- Forum: WML Workshop
- Topic: How to replace an event in the middle of a scenario
- Replies: 14
- Views: 1008
Re: How to replace an event in the middle of a scenario
2 800 files of my WML project What the...What do you even keep in there? Woah. Is this supposed some repo of WML code examples for use by UMC authors? :lol: :lol: :lol: No... Actually, 2 500 files are pics. The remaining 300 are utils, scenarios and units. Code examples for use by UMC authors ? I d...
- February 11th, 2022, 5:02 pm
- Forum: Technical Support
- Topic: sym links in userdata
- Replies: 8
- Views: 698
Re: sym links in userdata
I've never used Flatpak, but doesn't it run applications inside a sandbox ? You might not be able to use a symbolic link if it points outside the sandbox. I suspect the symlink would work if you used the regular (non-Flatpak) version of Wesnoth. Alternatively, maybe there is some way to tell Flatpa...
- February 11th, 2022, 4:40 pm
- Forum: Technical Support
- Topic: sym links in userdata
- Replies: 8
- Views: 698
Re: sym links in userdata
Hi pyrophorus. nice to see you again. Thanks... I'm glad seeing you're still there ! You might also access the folder where the user-data is saved, by using the map editor. There is a button that leads directly into the user-data folder. I hope it helps. Heindal Actually, I followed your idea to us...
- February 11th, 2022, 8:28 am
- Forum: Technical Support
- Topic: sym links in userdata
- Replies: 8
- Views: 698
Re: sym links in userdata
Thanks for your reply. Unfortunately, this is not the reason. I misspelled the folder name in my post, but the exact path to my userdata/add-ons folder is: /home/linuxuser/.var/app/org.wesnoth.Wesnoth/data/wesnoth/1.16/data/add-ons BTW, when moving my add-on to this folder (instead of creating a sym...
- February 11th, 2022, 7:28 am
- Forum: WML Workshop
- Topic: How to replace an event in the middle of a scenario
- Replies: 14
- Views: 1008
Re: How to replace an event in the middle of a scenario
EclipseIDE? WML Library ? Wow, you're a lot more organised than I am... I just steal stuff :) ... and code in Notepad :doh: Well... Notepad (at least the enhanced version with code highlighting) is certainly fine. I use Eclipse for other programming too, and find it very handy to manage the 2 800 f...