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: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,041 |
Nodes: | 15 (0 / 15) |
Uptime: | 214:07:03 |
Calls: | 500,252 |
Calls today: | 21 |
Files: | 95,199 |
D/L today: |
6,099 files (995M bytes) |
Messages: | 464,249 |
Posted today: | 2 |