| 12-30-2002, 01:17 AM | #1 |
Guest | I making a map that if you press P will active snow in the game , but idon't know how to make key reponse ???? |
| 12-30-2002, 01:24 AM | #2 |
no i don't think you can, i checked the triggers, blizzard.j and common.j no luck =( but you could do it where the player chats "let it snow". |
| 12-30-2002, 01:25 AM | #3 |
as far as i know, the only way you can do this is to give a unit an ability with this hotkey, and then use a trigger that fires as soon as that ability is used. You can also set a trigger that responds to the ESC key by putting in the event "player skips cinematic" i believe. IN order to set a key response to "p" then you'll have to use the first option. |
| 12-30-2002, 04:48 PM | #4 |
i think you can, check the fps mod it uses arrow keys for movement and mouse for looking |
| 12-31-2002, 11:27 AM | #5 |
Guest | How can i do that ? I don't know how to use the Escape key to run a trigger |
| 12-31-2002, 03:02 PM | #6 | |
Quote:
Event - Cinematic Skipped |
| 12-31-2002, 03:42 PM | #7 | |
Quote:
|
| 12-31-2002, 03:44 PM | #8 |
i dont know how they did the keys but i do know that superiki did arrow key movement by detecting the cameras position and moving a unit to that spot if i remember right the map was called undead invaders, look in the Retail Map Downloads and youll probaly find it in a search |
| 12-31-2002, 05:44 PM | #9 |
Guest | Look in the Trigger and Utility Repository on this site. There is something about key strokes. |
| 12-31-2002, 07:16 PM | #10 |
http://www.wc3campaigns.com/forums/s...?threadid=6763 there is the thread he is talking about i think |
| 01-01-2003, 12:39 AM | #11 |
Guest | do you know ? In the map deathsheep the author used order reponse to control the hero , he used stop for s and hold positon for h.I can do this but it will mess my map |
| 01-01-2003, 07:18 AM | #12 |
you could use the goblin merchant method as well...... but theres a map on that thread that shows how to use arrow keys for movement |
| 01-18-2003, 09:01 AM | #13 |
Hey, your question is pretty much answered, but im gonna post this for anyone else browsing through with similar questions. There are 4 major ways to get keyboard input that we know of. 1) The FPS hack - it requires an external program to run. Though it can likely be utilized for your own ends, the distribution would be a pain and the FPS guys would most likely be pissed if you did'nt get their permission, so i'd rule that out. 2) The superiki camera control method - this method uses a timer to position a unit within some point of the current camera bounds on a looping trigger. Since your keyboard moves the camera around this subsequently moves the units. 3) Hotkeys for spells - this is probably your best route, you add a unit ability (you can only have 5 hero abils) that has a self-casting order string, examples are warstomp, and water elemental, etc. You then have a trigger to detect a "unit issued order with no target" event, and if the order is equal to "warstomp" or whatever you chose then you turn on the snow. 4) The MR123 Merchant method - This is the first map ive seen it in, so im crediting him for it, (correct me if im wrong). This has you buying items with assigned hotkeys from a merchant located somewhere out of sight. This is good for racing type maps or flight sims and other things that are generally action oriented. And thats all the methods that ive seen. Aside from the cancelling cinematic, thats the only way to get keyboard input. Hopefully this will help someone else. |
| 01-18-2003, 05:21 PM | #14 | |
Quote:
Actually our program currently only works for the a,s,w,d keys and the mouse. However StonedStoopid is curently in the proccess of making it detect every key. We are also workin on incorporating into the map itself but so far to no avail. Anyway he is going to make it useable for all map editors. But thats the future. For now just use the other methods mentioned before. |
| 01-18-2003, 07:02 PM | #15 |
Very nice ;) I know of some people whom this would benefit greatly ;) Thanks! |
