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,063 |
Nodes: | 17 (0 / 17) |
Uptime: | 34:44:05 |
Calls: | 501,357 |
Calls today: | 2 |
Files: | 109,427 |
D/L today: |
1,593 files (220M bytes) |
Messages: | 302,459 |