How do you go about using the @ replaceable perameters in a js file. I tried to add time left to the chat module, and all it did was print TIMELEFT instead of putting the actual time left. Can it be done as part of the prompt, or am I trying to invent the wheel again. As always,
They should work when outputted through console.putmsg, eg: console.putmsg("Time left: @TIMELEFT@");
How do you go about using the @ replaceable perameters in a js file. Itried
to add time left to the chat module, and all it did was print TIMELEFT instead of putting the actual time left. Can it be done as part of the prompt, or am I trying to invent the wheel again. As always, Thanks.
They should work when outputted through console.putmsg, eg:
console.putmsg("Time left: @TIMELEFT@");
The console.putmsg() function should do what you want. console.putmsg() will interpret @-codes, etc. as it displays the text you give it. For parameters, it takes a text string and an optional mode bits parameter.
http://www.synchro.net/docs/jsobjs.html#console
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 115:19:52 |
Calls: | 375 |
Calls today: | 2 |
Files: | 2 |
Messages: | 38,886 |