NavigationUser login |
THREEDParent: lib Library (lib/3d.lpc) used in SWLPC with functions specifically to output 3D tags. query_youstat Returns 3dtags for a player statistics. Eg query_youstat("h",10) will return the player has full health ({uih10}). Refer to statistics for more information query_objectstat Returns 3dtags for an objects statistics. For example query_objectstat("dog","h",10) will return 3dtags for a dog with full health ({odog,ih10}). Refer to statistics for more information query_youaction query_youaction(action) Returns an action yourself have performed. For example: query_youaction("fart"); will return {uafart}. query_objectaction Returns an action performed by an object. For example query_objectaction("dog","fart"); for a dog farting ie {odog,afart} query_panelcommand query_messagebox Displays a message box in the 3D client. Returns the following messagebox 3d tags. Tags start with 'bv'. filename if displaying a file in the messagebox then specify the filename (otherwise use hlp caption title of the messagebox hlp text in messagebox if 'filename' isnt used buttons array of buttons. If 1D array then command and title are the same. If 2D array then first element of element is the button title and the second element is the command. panelcolor color of the message box fontsize size of the font used halign horizontal alignment of messagebox l,r,c valign vertical alignment of messagegox t,c,b fontname font face of messagebox width, height width and height of messagebox fontcolor font color of messagebox query_messagebox(0,"News","Today is the day of days"); query_htmlbox Displays a html box in the 3D client. Returns these html box 3d tags. Tag starts with 'bh'. url is the URL to display in the html box title is the title of the html box width and height is the width and height of the html box For example: query_editbox Has tag starting with 'be' query_editbox(title,send,cancel,fontname,fontcolor, panelcolor,width,height,msg,subject,fontsize) title: caption of the editbox An example is: This will generate an editbox with the title 'Enter Bulletin Board Messages' and a subject edit box. query_weather Function returns weather 3d tags for weather. For example: query_weather("r",10); returns tags for rain at full strength ie {wr10}. |