Setting movement with debug

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
Rya
Posts: 350
Joined: September 23rd, 2009, 9:01 am

Setting movement with debug

Post by Rya »

How can I set my movement points with the debug command?

":unit movement=99" doesn't seem to work.
Wesnoth
The developer says "no".
User avatar
Dugi
Posts: 4961
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: Setting movement with debug

Post by Dugi »

According to this, there is no way to change the movement of a unit.
mattsc
Inactive Developer
Posts: 1217
Joined: October 13th, 2010, 6:14 pm

Re: Setting movement with debug

Post by mattsc »

Rya wrote:How can I set my movement points with the debug command?

":unit movement=99" doesn't seem to work.
You need to use the attributes/keys as they are defined in the units. If you don't know what that is exactly, you can use :inspect and click on any unit.

In your case, you want
:unit moves=99
User avatar
Crendgrim
Moderator Emeritus
Posts: 1328
Joined: October 15th, 2010, 10:39 am
Location: Germany

Re: Setting movement with debug

Post by Crendgrim »

Dugi wrote:According to this, there is no way to change the movement of a unit.
Yes there is. The page you linked to refers to the SingleUnitWML page, where two keys are moves and max_moves. These are the interesting ones for this question. :)
UMC Story Images — Story images for your campaign!
User avatar
Dugi
Posts: 4961
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: Setting movement with debug

Post by Dugi »

Oops, sorry, haven't noticed that.
Post Reply