| 09-19-2003, 10:35 PM | #1 |
This is probably a dopey question, but how can you get rid of a button you don't want the player to be able to use? I'm specifically trying to not let the player use the Patrol button and not show it... Kind of a cosmetic thing really. Anybody? |
| 09-19-2003, 11:20 PM | #2 |
Well it's not exactly what you are looking for but maybe it will work.... 1) In the World Editor (I think this is only the newer version) Advanced|Game Interface... Check 'use custom interface' and find the icon for patrol 'Icon - Command - Patrol'. Replace it with some sort of black icon. I don't know which exactly, you might try just a blank filename, or if that doesn't work maybe the 'Queue Backdrop' one or just one that isn't noticable. 2) This won't actually disable the command, certainly not the keystroke. So in the Trigger editor, create a Trigger like this: Event - Unit - A unit is issued an order targeting a point Conditions - (String((Issued Order))) Equal to ........ Actions - Unit - Issue Order with no Target (i.e. Stop) Where I have ....... you need to put the string for the command, which is probably patrol but I'm not sure. To find out for sure, you can write a trigger that puts every command that a unit is issued on the screen using Game - Text Message, etc. and then go into the game and find out what order string appears when you hit patrol. |
| 09-19-2003, 11:33 PM | #3 |
why do people keep asking this question. just search the boards and you get about 500 answers |
| 09-19-2003, 11:35 PM | #4 |
I can remove the Hotkey by importing my own "Units\CommandFunc.txt" and "Units\CommandStrings.txt" But is there a way to stop the button from being clickable? |
| 09-19-2003, 11:35 PM | #5 |
I have in fact searched... maybe I didn't search for the right thing? |
| 09-19-2003, 11:55 PM | #6 |
i have seen about 20 threads in the last week on this topic. If you searched, well done, but you must have been searching wrong. |
| 09-19-2003, 11:57 PM | #7 |
Well let me rephrase that. I searched and I found a lot of people asking this question but I still haven't found an answer! And posting on those threads brought no results, as they were ancient... |
| 09-19-2003, 11:59 PM | #8 |
ok. sorry. didn't actually read the posts (if you leave ur mouse over the links it shows the first post). But everyone is right, you can remove hotkeys and replace the icon with a black one, but it's still clickable. |
