• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to move button positions of Atack/Stop/Hero Abilities

Status
Not open for further replies.
Level 13
Joined
Mar 4, 2009
Messages
1,156
How to move button positions of Atack/Stop/Hero Skills

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:
Level 14
Joined
Aug 30, 2004
Messages
909
Hero ability positions are set in the Object Editor. Near the top of the ability is "Button Position" with X and Y.

X determines how far left to right it is:
0=far left, 1, 2, 3=far right

Y determines how high the ability appears:
0=top, 1, 2 = bottom

I don't think you can change move and attack.
 
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.
 
Level 13
Joined
Mar 4, 2009
Messages
1,156
Hero ability positions are set in the Object Editor. Near the top of the ability is "Button Position" with X and Y.

X determines how far left to right it is:
0=far left, 1, 2, 3=far right

Y determines how high the ability appears:
0=top, 1, 2 = bottom

I don't think you can change move and attack.
no i mean hero abilities as hero skills button


i created new text document,pasted it in text documentt,named text document as you said,imported it and changed the path as you said,(i also put all button positions at 0,0),but nothing happens ?? :/

can you please make a map example? :cute:
you can upload it here
http://www.mediafire.com/
 
Status
Not open for further replies.
Top