Jump to content




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


  • You cannot reply to this topic
5 replies to this topic

#1 CreeperGoBoom

  • Members
  • 91 posts

Posted 29 May 2014 - 08: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 by CreeperGoBoom, 29 May 2014 - 10:20 AM.


#2 CometWolf

  • Members
  • 1,283 posts

Posted 29 May 2014 - 10:08 AM

Is there even a wiki? The openP team seem very reluctant to document this stuff themselves :P

View Posttheoriginalbit, on 12 April 2014 - 01:52 PM, said:

chat_command
hello
theoriginalbit
[guid]
[name]
guid i believe is the id of the player's glass screen.

#3 CreeperGoBoom

  • Members
  • 91 posts

Posted 29 May 2014 - 10:20 AM

ahh thanks :D

that xplains the dynamic number[solved]

definitely not documented very well, [name] is actually side

Edited by CreeperGoBoom, 29 May 2014 - 10:25 AM.


#4 CometWolf

  • Members
  • 1,283 posts

Posted 29 May 2014 - 10:26 AM

Well yes, it's the name of the bridge obviously. Which if connected directly would be the side.

#5 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 29 May 2014 - 11:03 AM

View PostCometWolf, on 29 May 2014 - 10:08 AM, said:

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.

#6 CometWolf

  • Members
  • 1,283 posts

Posted 29 May 2014 - 11:10 AM

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users