Debug Codes
Moderator: Forum Moderators
Debug Codes
I know these three only codes, but i know there's a-lot more codes,
Press ":" to bring up the command console, and type debug, then press enter to activate debug mode, press ":", type in the code, and press enter to activate the following codes:
gold X- gives x amount of gold
unit experience=x- gives the selected unit x amount of experience .1
unit hitpoints=x- gives the selected unit x amount of experience .1
unit moves=x gives the selected unit x amount of moves .1-=new code!=-
(1. these codes must have the mouse cursor over the unit, or else it wont work.)
Can you guys help me find more. i really want one that can give X amount of damage, like having 26-7 instead of 4-3 for damage
Edit: found a new code!
Press ":" to bring up the command console, and type debug, then press enter to activate debug mode, press ":", type in the code, and press enter to activate the following codes:
gold X- gives x amount of gold
unit experience=x- gives the selected unit x amount of experience .1
unit hitpoints=x- gives the selected unit x amount of experience .1
unit moves=x gives the selected unit x amount of moves .1-=new code!=-
(1. these codes must have the mouse cursor over the unit, or else it wont work.)
Can you guys help me find more. i really want one that can give X amount of damage, like having 26-7 instead of 4-3 for damage
Edit: found a new code!
Last edited by alimarin on July 5th, 2007, 8:18 pm, edited 1 time in total.
You don't need to have some kind of debug code for that, just edit the files yourself. If you have a mac you can find your unit files in Contents(right click app icon, select show package contents)/Resources/data/core/units and edit to your hearts content.
Specifically for attacks, in each unit file(I'll use a spearman as an easy example) there will be a few lines of text that look like this
You don't have to worry about anything below that in the attack tags unless you want to screw with the animations for that unit. Now you just have to edit those lines to change what you want.
To:
Or whatever else you want
Hope I helped
Specifically for attacks, in each unit file(I'll use a spearman as an easy example) there will be a few lines of text that look like this
Code: Select all
[attack]
name=spear
type=pierce
range=melee
damage=7
number=3
To:
Code: Select all
[attack]
name=spear
type=pierce
range=melee
damage=999
number=999
Hope I helped
Sorry for the meaningless post
You fail to mention that whatever changes you do this way will only apply to new units.romnajin wrote:You don't need to have some kind of debug code for that, just edit the files yourself. If you have a mac you can find your unit files in Contents(right click app icon, select show package contents)/Resources/data/core/units and edit to your hearts content.