ID:161940
Mar 12 2008, 5:24 am
|
|
how do i set a verb or a proc to pressing a button,is it similar to Click()? plz tell me
|
In response to National Guardsmen
|
|
so.. by pressing A it attacks? cant i use Attack() instead of "attack"? or should Attack() be in quotations too?
|
In response to Iraqii
|
|
Iraqii wrote:
so.. by pressing A it attacks? cant i use Attack() instead of "attack"? or should Attack() be in quotations too? You would enter the verbs name in all lowercase letters in qutation marks. |
In response to National Guardsmen
|
|
well i get an error when i put exactly what you sent in the 1st reply. the error is"Macros.dm:2:error:return "Attack":instruction not allowed here" i checked if the verb name was right. it is Attack. should i still lower case the A?
|
In response to Iraqii
|
|
Yes make it lowercase. Check the help on F1 and search macros it will explain everything there.
|
In response to National Guardsmen
|
|
it still gives me the same error! HELP someone!
|
In response to Iraqii
|
|
macro You need ^ that and it might give an error.You might need to make a .dms instead of a .dm. I don't use this sort of macros I believe it shouldn't be that unfair to other players. It sorta makes attacking quicker. EDITED: Sorry I believe this information was already given. Than the info I just posted wont be of much use to you I'll keep it just in case you for got something though. |
In response to CK Productions
|
|
Are you putting the code in a script file?
|
In response to National Guardsmen
|
|
yea i put it in a seperate code file. isnt supposed to be there?
|
In response to Iraqii
|
|
Iraqii wrote:
yea i put it in a seperate code file. isnt supposed to be there? No, Its not supposed to be in a separate code file. Make a new .Dms file. File --> New --> Type is Script file --> Name is What Ever You Prefer ---> O k than put in your new .dms file the thing I had told you Previously. |
In response to CK Productions
|
|
nvm i found an easier way. when you host a game u press F1>Client>Macros>And just create one there. thnks anyway
|
In response to Iraqii
|
|
That creates a macro for YOU, not all the other players.
|
In response to Garthor
|
|
oh... my bad. i made a script file and put in exactly what i was told before. except in the game, it doesnt do anythin when u press a
|
In response to Iraqii
|
|
alt+a would be the macro.
|
In response to National Guardsmen
|
|
can i do anything to the code to make it just a, not alt+a?
|
In a script file you would do it like so:
Hope you find this helpful.