ID:174746
 
My macros won't work. I see nothing wrong with what I have.
mob
verb
Tab(t as text)
set hidden = 1
world << "[src]: [t]"
Why won't my macro work?

-Camaro-
there is no macro here. you need to look up macros in the refrence, or if you want instant gratification...create a new dms file with this:
macro
Tab return "Tab"


this means that the tab button will call "Tab" the verb.
In response to Dragon of Ice
Sorry, I forgot to say I did that. Here's what I have... and it still does not work.

{Basic Verbs.dm}
mob
verb
Tab(t as text)
set hidden = 1
world << "[usr]: [html_encode(t)]"


{macros.dms}
macro
Tab return "Tab"


It doesn't do anything when pushed. And yes, the checkmark is checked.

-Camaro-
In response to Camaro
To tell you the truth, I'm not sure if tab can be macroed...I'll have to find that list of macroable keys...
In response to Dragon of Ice
well, guess it can the key "Tab" can be macroed...wonder what the problem is...
In response to Dragon of Ice
Maybe the thing to enable macros in Dream seeker isnt on?
In response to Wanabe
It's on. But I still have no clue what my problem is. Anyone having the same problems?

-Camaro-
In response to Camaro
Ok, this is pretty weird. I Just put my source on the hub for the type of macros I use. They work fine. Get my source here. What can be the reason I can't use macros in my game?

-Camaro-
In response to Camaro
After killing myself over this problem, I found out where the problem was.

It was in client/script.

When I took my client/script out, the macros worked.

Now I'd like a reason why this didn't work please?

-Camaro-
In response to Camaro
Ya mean I found it out. Anyway, to be more exact on his point, heres what we do. To show big icons in a say/worldsay verb, we use client/script.
client/script = {"<STYLE>BODY IMG.icon {width: 32px; height: 32px}</STYLE>"}

and then whenever we use \icon[usr] it becomes 32x32. However, when we null that, the Macros appear. and vice versa. Maybe a BYOND bug? or are we just overriding client/script?

<-Airjoe->
In response to Airjoe
Airjoe wrote:
Anyway, to be more exact on his point, heres what we do. To show big icons in a say/worldsay verb, we use client/script.
client/script = {"<STYLE>BODY IMG.icon {width: 32px; height: 32px}</STYLE>"}

and then whenever we use \icon[usr] it becomes 32x32. However, when we null that, the Macros appear. and vice versa. Maybe a BYOND bug? or are we just overriding client/script?

Sorry to bump, but I'd just like to get this fixed. Thanks!

<-Airjoe->