NT Script: Difference between revisions

218 bytes added ,  09:07, 16 June 2023
m
Added additional info to the "time" function description
m (removes revision notice)
m (Added additional info to the "time" function description)
 
(6 intermediate revisions by 2 users not shown)
Line 311: Line 311:
| bgcolor="#AAAAAA" | || bgcolor="#AAAAAA" | || bgcolor="#AAAAAA" |
| bgcolor="#AAAAAA" | || bgcolor="#AAAAAA" | || bgcolor="#AAAAAA" |
|-
|-
| time() || number || Returns the real time of the server in a number. You can then use this to see how much time has passed since the code has last been run via mem().
| time() || number || Returns the real time of the server as a number. Time is in deciseconds, to convert into seconds divide by 10. You can then use this to see how much time has passed since the code has last been run via mem().
|-
|-
| bgcolor="#AAAAAA" | || bgcolor="#AAAAAA" | || bgcolor="#AAAAAA" |
| bgcolor="#AAAAAA" | || bgcolor="#AAAAAA" | || bgcolor="#AAAAAA" |
Line 318: Line 318:
|}
|}


=== Prefab Variables ===
===Prefab Variables===


  '''PI''' = 3.141592653;
  '''PI''' = 3.141592653;
Line 337: Line 337:
  '''channels.security''' = 1359
  '''channels.security''' = 1359
  '''channels.supply''' = 1347
  '''channels.supply''' = 1347
'''channels.service''' = 1349
   
   
  '''languages.human''' = 1
  '''languages.human''' = 1
  '''languages.monkey''' = 2
  '''languages.monkey''' = 2
  '''languages.alien''' = 4
  '''languages.robot''' = 4
  '''languages.robot''' = 8
  '''languages.polysmorph''' = 8
  '''languages.slime''' = 16
  '''languages.draconic''' = 16
  '''languages.drone''' = 32
  '''languages.beachtongue''' = 32
    
    
  '''filter_types.robot''' = "robot"
  '''filter_types.robot''' = "robot"
Line 374: Line 375:
  sig.language // the language of the signal. Can be any of HUMAN, MONKEY, ALIEN, ROBOT, SLIME or DRONE. Or a combination of them
  sig.language // the language of the signal. Can be any of HUMAN, MONKEY, ALIEN, ROBOT, SLIME or DRONE. Or a combination of them
  sig.filters  // The voice filter of the signal. Includes bolding, italics, as well as silicon and wacky fonts. '''These must be given as a list!'''
  sig.filters  // The voice filter of the signal. Includes bolding, italics, as well as silicon and wacky fonts. '''These must be given as a list!'''
sig.pass    // Whether the signal will be broadcasted. Is a boolean, set to 0 to stop the signal from passing.
  sig.say      // The verb used in a radio messages ending in "."
  sig.say      // The verb used in a radio messages ending in "."
  sig.ask   // The verb used in messages ending in "?". Example: COMMON SERVER asks, "Why?"
  sig.ask   // The verb used in messages ending in "?". Example: COMMON SERVER asks, "Why?"