HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

about hotkeys...

09-24-2002, 08:50 PM#1
Guest
Needed Really good mappers !
So... i want to create some new shortcuts.. so as the player can control the direction of units using the keyboard... i can use common orders of course (unit is ordered with no target) ... but the problem is the places of keys (moreover try to put 4 direction and 2 spécial moves and u will laught !)...

So... if you have a solution...
09-24-2002, 08:52 PM#2
Guest
oh... i forget... I also tried dialog boxes... and it's not usable since it stops the game. and sorry, my english sucks... i'm french :o)
09-25-2002, 04:42 AM#3
Guest
Well, that depends on

A) How you're moving the unit (do you select the unit, and then command it, or is the unit always selected)

B) What unit it is.

Anyway, if you want to change the hotkeys for orders and spells and whatnot, it can be done through a file in the MPQ. I would suggest downloading Keycraft (http://www.war3files.com) and study what they've done.
09-25-2002, 09:09 PM#4
Guest
Thanks but...
It seems u didnt really understand me... I Want to assign hotkey to moves... not to ability... and on a map... not only in my game. So... it's not good... i supposed it must be possible with the text editing mode...
09-25-2002, 09:53 PM#5
Mr.123
There's a fairly easy way to do it. Get my metal marines map in the Retail Maps Downloads section. There are only 9 triggers used to control movement, one for each direction and stop.

There is another method which involves stationing heroes at a shop. When an item or unit is bought, the triggers move the units.
09-26-2002, 09:07 AM#6
Guest
Quote:
It seems u didnt really understand me...

No, it seems you didn't understand the help I was offering.

I have done unit movement in a few different ways.

A) with a Barracks that builds custom units. When the order to build is given, the trigger moves the unit.

B) As Mr.123 stated with a shop and you detect when an item is sold and move the unit depending on the item sold.

In both cases you had a building force selected, and I was able to just change the hotkeys to wasd for the units/items.

But I don't know what you're trying to do exactly (hence the the questions you didn't bother to answer). If you're selecting a unit and then using a key to move it, then you are much more limited to what you can use as there is no way to detect a keystroke. You need to have something trigger an event and then have the trigger order the unit to move.

Key craft makes everything that appears in the UI use qwer,asdf,zxcv for the hotkeys, so if you did something similar to Death Sheep, you wouldn't use s and h to move, but s and d (or whatever they are). And I was pointing you to that so that you could do a little looking to see what values, in what file, they changed and then see if you can include something similar in your map, not for you to actually use it.
09-27-2002, 11:54 AM#7
Guest
Yeah... So... it's just to make continuous movement... it's not Like death sheep. I must use the 8 Directions... It's really to make possible to do some figth in real time (let's say it could be 3 dimensional combat style game... but seen by the up without complicated spécials moves. ) Did i make myself clear for this time ?
09-27-2002, 12:00 PM#8
Guest
I also forgot some things... It's a biplayer game... :o)
But i think i can do someting. thanks...
09-27-2002, 04:43 PM#9
Mr.123
Continous movement is just an action or two and an event. Check WarCart. You can download it from the retail map downloads section above.

8 direction just means you need a few more items/units to buy and triggers for.

Units can also sell other units without needing a hero to stand there. I believe training causes a slight delay even with 0 training time.
09-27-2002, 07:57 PM#10
Guest
If you do the event based on the unit finish training, yes. If you you base it on starting training, then no. But training unit events doesn't work so well for MP.
09-27-2002, 11:48 PM#11
Guest
MR 123

GREAT IDEA !!! It use sometin i never used before... but it could be very usefull... if it works... i will try it...