This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CreeperGoBoom's profile picture

[solved]anyone know all the vars passed by chat_command event?

Started by CreeperGoBoom, 29 May 2014 - 07:25 AM
CreeperGoBoom #1
Posted 29 May 2014 - 09:25 AM
using my event writer
http://pastebin.com/bRep48jC

i typed $$distance into the chat and got this:
https://www.dropbox....29_18.20.25.png

i know that var 1 is the event name
var 2 is the chat command entered
var 3 is the player who did the command
var 5 is the side

but i have no idea what this big number var 4 is returning

doesnt seem to be anything to do with coords (same number no matter how far or close i am)

any ideas? nothing on the wiki about it that i can find
Edited on 29 May 2014 - 09:20 AM
CometWolf #2
Posted 29 May 2014 - 11:08 AM
Is there even a wiki? The openP team seem very reluctant to document this stuff themselves :P/>
chat_command
hello
theoriginalbit
[guid]
[name]
guid i believe is the id of the player's glass screen.
CreeperGoBoom #3
Posted 29 May 2014 - 11:20 AM
ahh thanks :D/>

that xplains the dynamic number[solved]

definitely not documented very well, [name] is actually side
Edited on 29 May 2014 - 09:25 AM
CometWolf #4
Posted 29 May 2014 - 11:26 AM
Well yes, it's the name of the bridge obviously. Which if connected directly would be the side.
theoriginalbit #5
Posted 29 May 2014 - 12:03 PM
The openP team seem very reluctant to document this stuff themselves :P/>
but there is a lot of documentation out there. a few people have setup PHP scripts to read our code and extract documentation, just like people have made programs… personally I feel that the in-game documentation is better as it documents everything, something we just cannot do.
CometWolf #6
Posted 29 May 2014 - 12:10 PM
In the case of the glasses, i really feel the in-game documentation is inadequate There is no documentation on the functions of the objects it creates, or in this case the events it returns. I've heard your reasons before, but they don't really apply to the glasses.