How do i set macros so when a usr hits five on the keypad or e or whatever without hitting enter it triggers a verb?
I had:
macro
5 return "open"
Macros .dm:2:error: expected expression
Then I tried:
macro
o return "open"
Macros .dm:2:error:return "fire":instruction not allowed here
then I tried:
client
macro
o return "open"
it compiles fine, but doesn't work when I run it.
ID:261270
![]() Nov 23 2001, 10:09 am
|
|
Darkness wrote:
Air _King wrote: macro whats a dms script? |
PyRoMaNiAc wrote:
DM = Dream Maker. That should answer your question. No you dont understand D-M-S Script |
I hope you're joking, but if not: the same way you create a DMI (Dream Maker Icon) and a DMP (Dream Maker Map?). I know you can at least do those.
|
Evilkevkev wrote:
I hope you're joking, but if not: the same way you create a DMI (Dream Maker Icon) and a DMP (Dream Maker Map?). I know you can at least do those. Ok I Know how do do that though script files are called .dm not .dms WHAT IS A .DMS??? |
Evilkevkev wrote:
.DM is a "code file" according to Dream Maker. A "script file" is a .DMS OK I didn't see it in the menu thing sorry. |
Ok i have a .dmz script and what you said to put in it I put in it, but I get
:2:error at '5': expected end of macro block :2:error at '5': unexpected character In Dream Seeker |
Air _King wrote:
Ok i have a .dmz script and what you said to put in it I put in it, but I get Ok 20 1/2 hours is how patient I am before bumping post, but I really need to know this: How do i set macros!!! |
I have in a .dms script:
macro 5 return "get" It compiles fine, but in DS i get: :2:error at '"5"': expected end of macro block :2:error at '"5"': unexpected character -=[EDIT]=- Nadrew I know you know tis because you have it in your constant movement demo. Will you plz help me! |
Nadrew wrote:
No I don't I used client.blahdirection in that those are macros but predefined ones. oh can you still answer my q??? |
Hmm I don't know about using number macros but remember with "num lock" turned off:
1=Southwest 2=South 3=Southeast 4=West 5=Center 6=East 7=Northwest 8=North 9=Northeast Try making macro Center return "get" |
Nadrew wrote:
Hmm I don't know about using number macros but remember with "num lock" turned off: :2:error at '{': variable not defined |
This should be noted I don't use macros much so you should look at this post by Spuzzum he gives something about macros there.
|
macro
5 return "open"
it just needs to be put it in a dms script to work.