Unit Code Entrance?

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
Ravenheart
Posts: 30
Joined: December 5th, 2005, 1:46 pm
Location: London
Contact:

Unit Code Entrance?

Post by Ravenheart »

I'd like to cheat in Wesnoth. Well, sort of anyway. (I don't care what people might criticise me for, I've played Wesnoth long enough to allow myself a few sins :P)

A while back, god knows from where, I learned of a way to almost enter the coding of a certain unit, whilst in a game. It was some keyboard combination, can't remember what, and it allowed you to change stats like experience and hitpoints.

You hit the keyboard combination, and a dialogue box appears, and you had to type a certain code to change a certain thing (followed by it's value). It was very useful when stuck in a situation, and I'd like to know if anyone still knows where I can locate it? And what the codes etc. are?

Cheers, Raven.
silentoutpost.net • my moosic
User avatar
Elvish_Pillager
Posts: 8137
Joined: May 28th, 2004, 10:21 am
Location: Everywhere you think, nowhere you can possibly imagine.
Contact:

Post by Elvish_Pillager »

to open the command line, type ":". That is, a colon.

Then the command is "unit attribute=value", then press Enter while mousing over the unit.
It's all fun and games until someone loses a lawsuit. Oh, and by the way, sending me private messages won't work. :/ If you must contact me, there's an e-mail address listed on the website in my profile.
Darth Fool
Retired Developer
Posts: 2633
Joined: March 22nd, 2004, 11:22 pm
Location: An Earl's Roadstead

Re: Unit Code Entrance?

Post by Darth Fool »

Ravenheart wrote:I'd like to cheat in Wesnoth. Well, sort of anyway. (I don't care what people might criticise me for, I've played Wesnoth long enough to allow myself a few sins :P)

A while back, god knows from where, I learned of a way to almost enter the coding of a certain unit, whilst in a game. It was some keyboard combination, can't remember what, and it allowed you to change stats like experience and hitpoints.

You hit the keyboard combination, and a dialogue box appears, and you had to type a certain code to change a certain thing (followed by it's value). It was very useful when stuck in a situation, and I'd like to know if anyone still knows where I can locate it? And what the codes etc. are?

Cheers, Raven.
I am afraid that you are out of luck. All such knowledge was lost after the battle of Haral-Matlak when the Great Archives were burned to the ground by Orcish raiders and the ruins inhabited by a lich of great power. Alas, for there are no heros left who dare challenge his evil might and all knowledge of yore is lost.

http://www.wesnoth.org/wiki/CommandMode
Ravenheart
Posts: 30
Joined: December 5th, 2005, 1:46 pm
Location: London
Contact:

Post by Ravenheart »

Okay, I've got my command line on the screen, but the wiki is very confusing I find. I've tried to experiment but the command line does nothing to the unit.

Say if I wanted my unit's experience to go up to 23 from 0, can someone please tell me exactly what I would need to type, where my mouse would be, if I have to select the unit etc.
silentoutpost.net • my moosic
User avatar
Elvish_Pillager
Posts: 8137
Joined: May 28th, 2004, 10:21 am
Location: Everywhere you think, nowhere you can possibly imagine.
Contact:

Post by Elvish_Pillager »

type :
type unit experience=23
have your mouse over the desired unit
press enter
It's all fun and games until someone loses a lawsuit. Oh, and by the way, sending me private messages won't work. :/ If you must contact me, there's an e-mail address listed on the website in my profile.
User avatar
Jetrel
Posts: 7242
Joined: February 23rd, 2004, 3:36 am
Location: Midwest US

Post by Jetrel »

They're forgetting to mention that you need to enter debug mode first.

To do so, bring up the command line by typing a colon, and then type:

debug


THEN all those unit attribute commands will work, and you'll also notice that your contextual menus have a few additional options (such as creating units, and changing the side a unit is on).

To turn off debug mode, enter the command:

nodebug


Note: using debug mode to change something in a (network) multiplayer game will ruin that match, because the things you're changing don't change on the opposite side, and the game will rapidly get out-of-sync. Debug mode is for single-player games, only.
Ravenheart
Posts: 30
Joined: December 5th, 2005, 1:46 pm
Location: London
Contact:

Post by Ravenheart »

Cheers lads :)
silentoutpost.net • my moosic
Post Reply