How does the auto-movement system work?
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
-
kingsamuel24
- Posts: 4
- Joined: October 18th, 2025, 5:16 am
How does the auto-movement system work?
I have been messing around with wesnoth save files. I just wrote a program that edits wesnoth save files in order to give all units that meet a certain criteria a goto x and y coordinate in order to automate the process of setting these movements. (For context I am playing a game with over 1000 units, yes I know that is not what wesnoth is designed for). Changing goto_x and goto_y to certain values worked to get the paths assigned properly but the units wouldn't move at the beginning of the given turn. I can see the paths they are supposed to take they just won't take them. (I used alt+u and sorting by moves to double check this). I am thinking that their is something in the working of the save file that I need to be setting but am just not aware of. If anyone could explain what I am missing I would appreciate it. Thanks!
Re: How does the auto-movement system work?
Not interested to look into save files, but scripted movement that looks like player ordered can be done with https://wiki.wesnoth.org/DirectActionsW ... command.5D like viewtopic.php?p=695803#p695803.
-
kingsamuel24
- Posts: 4
- Joined: October 18th, 2025, 5:16 am
Re: How does the auto-movement system work?
Thanks for the response! I was just playing wesnoth with a friend and I decided to use auto-move. It wasn't working. Turns out that I had check-boxed disable automatic moves. Now it is working perfectly!