Hello.
I'm trying to get print(os.date ("%c")) working inside of an alias. My script prefix is / so when I'm in the normal window where I can send commands to the mud and I use / it works great. When I put print(os.date ("%c")) inside of the send field for the alias it gives me problems.
My goal is to have a trigger fire the alias or have the trigger directly use print(os.date ("%c but so far nothing is working.
the current alias...
Error message...
Here's the error message from the trigger attempting to print.
Thank you for your help!
I'm trying to get print(os.date ("%c")) working inside of an alias. My script prefix is / so when I'm in the normal window where I can send commands to the mud and I use / it works great. When I put print(os.date ("%c")) inside of the send field for the alias it gives me problems.
My goal is to have a trigger fire the alias or have the trigger directly use print(os.date ("%c but so far nothing is working.
the current alias...
<aliases>
<alias
match="time"
enabled="y"
send_to="12"
sequence="100"
>
<send>print(os.date ("%c"))</send>
</alias>
</aliases>
Error message...
Compile error
World: dw
Immediate execution
[string "Alias: "]:1: unfinished string near '"<aliases>'
Here's the error message from the trigger attempting to print.
Compile error
World: dw
Immediate execution
[string "Command line"]:1: '=' expected near '<eof>'
Thank you for your help!