I am having some issues with macros will someone just give me an example of one.
"macros (client script)"
ID:178555
Apr 27 2002, 8:11 pm
|
|
In response to Lord of Water
|
|
mob/verb mac(l as text) set hidden = 1 if(l == "a") show("a") macro a return "mac \"a\"" gives me loading Popup.dme Popup.dm:22:error:return "mac \"a\"":instruction not allowed here any ideas? |
In response to Winbiko
|
|
Winbiko wrote:
mob/verb I think you need to put the macro's in a seperate script file. Go to File/New and choose Script File (.dms) and put macro a return "mac \"a\"" in there. |
In response to Creek
|
|
ya you were right. thanks.
|
In response to Creek
|
|
if I want to bind ` to a macro how whould I do that?
|
set hidden = 1
letter = copytext(letter,1,2)
if(letter == "s")
say()
mob/verb/say(var/message as text)
world << message
[client script]
macro
a return macro "a"
b return macro "b"
c return macro "c"
etc...
That's the way that I like it.