- Joined
- Mar 4, 2009
- Messages
- 1,156
How to move button positions of Atack/Stop/Hero Skills
Solved by Tirlititi
Solved by Tirlititi
I guess he speak about the button for learning spells, not the spells themselves.
You can modify these buttons
1) on your computer ; you create a file named "CustomKeys.txt" in your Warcraft 3 directory and put something like that inside :
[CmdMove]
ButtonPos=X,Y
[CmdAttack]
ButtonPos=X,Y
[CmdSelectSkill]
ButtonPos=X,Y
2) In your map ; it's more complicated. You must create a file "CommandFunc.txt" or take the original one from the war3.mpq (if you have a MPQ Browser). After that, you must define the button position and the icon used for all the commands (not for the abilities, fortunatly).
Here is a copy of the CommandFunc.txt from war3.mpq :
[CmdMove]
Art=CommandMove
Buttonpos=0,0
[CmdAttack]
Art=CommandAttack
Buttonpos=3,2
[CmdAttackGround]
Art=CommandAttackGround
Buttonpos=3,1
[CmdBuild]
Art=CommandBasicStruct
Buttonpos=0,2
[CmdBuildHuman]
Art=CommandBasicStructHuman
Buttonpos=0,2
[CmdBuildOrc]
Art=CommandBasicStructOrc
Buttonpos=0,2
[CmdBuildNightElf]
Art=CommandBasicStructNightElf
Buttonpos=0,2
[CmdBuildUndead]
Art=CommandBasicStructUndead
Buttonpos=0,2
[CmdCancel]
Art=CommandCancel
ButtonPos=3,2
[CmdCancelBuild]
Art=CommandCancel
ButtonPos=3,2
[CmdCancelTrain]
Art=CommandCancel
ButtonPos=3,2
[CmdCancelRevive]
Art=CommandCancel
ButtonPos=3,2
[CmdHoldPos]
Art=CommandHoldPosition
Buttonpos=2,0
[CmdPatrol]
Art=CommandPatrol
Buttonpos=0,1
[CmdPurchase]
Art=CommandPurchase
Buttonpos=0,0
[CmdRally]
Art=CommandRally
Buttonpos=3,1
PlacementModel=UI\Feedback\RallyPoint\RallyPoint.mdl
[CmdSelectSkill]
Art=CommandNewSkill
Buttonpos=3,1
[CmdStop]
Art=CommandStop
Buttonpos=1,0
//[CmdUnivAgi]
//Art=
//Buttonpos=2,0
//[CmdUnivInt]
//Art=
//Buttonpos=1,0
//[CmdUnivStr]
//Art=
//Buttonpos=0,0
After creating this file, you can import it in your map with the path "Units\CommandFunc.txt".
Note that if someone defined custom positions with CustomKeys.txt, your imported file won't have effect.
Last edited: