ID:175788
 
whats wrong with this?


client//define this under client...
command_text = ".alt "//when someone logs in it is already in Macro mode
mob/verb/sword()
set hidden = 1
usr.sword = 1
usr.whip = 0
mob/verb/whip()
set hidden = 1
usr.sword = 0
usr.whip = 1
mob/var
sword
whip

macros.dms:

macro
* return "sword"

/ return "whip"

it doesnt seen wrong but when i use the macro in play it doesnt work.
I think you can only use keys like abcdefg... and numbers for macros.
In response to Maz
No, Not only that. In a game, i saw / and * that were macroable keys... I dont know why that is happening. I once saw a list of macroable keys but i dont know where those are anymore.
In response to Unknown Person
when you define these macro's, they are called Multiply and Divide, but that didnt help.
In response to Erdrickthegreat2
no macros work.....Could there be something in my code to make my macros not work?
In response to Erdrickthegreat2
I made a demo, and it is something in my code =(
time to search for the problem!
*edit*

i had other script files that didnt let it work

client/script = "<STYLE>BODY {font: Rockwell}</STYLE>"

once i took it out it works fine =)
In response to Unknown Person
Erdrickthegreat2 wrote:
whats wrong with this?


client//define this under client...
command_text = ".alt "//when someone logs in it is already in Macro mode
> mob/verb/sword()
> set hidden = 1
> usr.sword = 1
> usr.whip = 0
> mob/verb/whip()
> set hidden = 1
> usr.sword = 0
> usr.whip = 1
> mob/var
> sword
> whip
>

> macros.dms:
>
> macro
> * return "sword"
>
> / return "whip"
>

it doesnt seen wrong but when i use the macro in play it doesnt work.


Thanks to Crispy for bringing up the macroable keys, change * to "multiply" and / to "divide"
In response to Unknown Person
actually / and * worked fine. Like i said , i called another client/script and it screwed up my macros.