In the reference for /world, it states:
"New vars and procs cannot be defined under world though; to make global vars and procs, use /var and /proc instead," which isn't true.
Creating a world/proc is quite possible.
Creating a world/var gives you a "variable declaration not allowed here" error.
However, if the var is anything but world, the world/proc will still run and you can call it by world.myProc().
Numbered Steps to Reproduce Problem:
N/A.
Code Snippet (if applicable) to Reproduce Problem:
client/verb/call_myProc()
{
world.myProc();
}
world/proc/myProc()
{
world << "Hey, this works.";
}
world/var/myVar /* <- Doesn't work. */
Expected Results:
Compiler error for world/proc/myProc()
Actual Results:
Is quite capable and fully functional.
The reference lies.
Does the problem occur:
Every time? Or how often?
N/A.
In other games?
N/A.
In other user accounts?
N/A.
On other computers?
N/A.
When does the problem NOT occur?
N/A.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
N/A.
Workarounds:
N/A.
*Sorry for posting in Features. Relocated this to bugs.