Sprak world functions: Difference between revisions
From wikinotes
Line 42: | Line 42: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Info() # Get Info about the running system (Speed, modem, floppy drive, memory, screen x/y ) | Info() # Get Info about the running system (Speed, modem, floppy drive, memory, screen x/y ) | ||
Name() # name of current computer | |||
# Graphics | # Graphics |
Revision as of 03:12, 9 January 2023
General
Sleep(1) # Sleep time in seconds GetUser() # Identifies you as "Sebastian" GetRoom() # Identifies room being accessed from GetHour() # Gets hour, most TVs use this GetType() # Gets type of item (used in Trash Can) GetPosition(name) # Get Coordinates of a user (ex: Pixie) (only police computer...) Print(Name()) # Print ComputerName Say("something") # Print, but out loud CreateDrink("Coke", 100) # Creaate any arbitrary drink (haven't had success other thank coke...) ClearText() # Clear the screen ClearCode() # (?) AppendCode() # (?) Drink(25) # (?) sinks have this... MoveToRoom("MonadsApartment") # Move item to room (used in trashcan) Delete() # Delete an item (used in trashcan)
Human Attributes
Attributes can be modified on consumable items (beverages, ciggarettes, ...).
Drunkeness( 50) # Standard Beer Sleepiness(-25) # Standard Coffee Smelliness( 10) # Standard Drink Corruption(-25) # Default Coke QuickBoost() # (?) Snus FastForward() # (?) Drug Slurp() # Move yourself to active connection
Terminals
Info() # Get Info about the running system (Speed, modem, floppy drive, memory, screen x/y ) Name() # name of current computer # Graphics DisplayGraphics() # (?) used on some computers ClearText() # Clear the screen Print("abc") # Print to screen # Floppies BootFromFloppy() # Run a Floppy Diskette var = LoadData() # Get info on Floppy Diskette # Other var cmd = Input(">") # save user-input to variable Connect("") # Connect to a external system
FuseBoxes
# From Fusebox powerTap = Connect("PowerTap") name = GetName() powerTap.Tap(name) # From Terminal Connect("Plasa_FuseBox_Poor_FuseBox_1") Slurp()