Else Heart.Break() Sprak: Difference between revisions

From wikinotes
Line 5: Line 5:
| [[sprak syntax]]
| [[sprak syntax]]
|-
|-
| [[sprak libraries]]
| [[sprak world functions]]
|-
| [[sprak entertainment functions]]
|-
| [[sprak connection functions]]
|-
|-
|}
|}

Revision as of 02:51, 9 January 2023

Notes

sprak syntax
sprak world functions
sprak entertainment functions
sprak connection functions

World

Functions

loop()
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
Info()                # Print Computer Specs

var cs = GetConnections()  # List of all connections made to computer

Say("something")           # Print, but out loud
CreateDrink("Coke", 100)   # Creaate any arbitrary drink (haven't had success other thank coke...)
Ping( connection )         # Test if connection exists

bank = Connect("Finance Computer")     # Connect allows you to interact with outside systems
bank.ChangeBalance("Sebastian", +100)  # (each has their own set of commands)

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)

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 )

# 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()

Entertainment

Utility

Functions that seem to be able t be used for all categories of entertainment.

SetPitch(22)  # Determines the audio's pitch

Songs

Tracks can be played with PlayLoop("Apache")

Apache
BlacKnuten  # Relaxing!
Ponty       # Relaxing and Nice!

Radio

# There seem to be at least radio channels from 1-4
DisconnectAll()                     # Disconnect from all radio stations
Connect("RadioStation_Channel"+ 3)  # Connect to RadioStationChannel 3
TurnOnSound()                       # Listen to Radio
SetChannel(3)                       # Remember the Radio Channel

TV

Anime
Bergman
Talkshow
News
Terminator
TestScreen

Sounds

Sounds are frequently used with the loop command.

ThereminSound

Passwords

# Generally speaking, the command to unlock doors is:
Unlock( location )

# PowerPlant Entrance:
# Factory_Corridor_DoorToServerRoom
zgh4522zcbw45

Connections

FinanceComputer

The town's bank

fin = Connect("Finance Computer")
fin.ChangeBalance("Sebastian", +100)  # Change User's Balance

Wellspring

Wellspring's inventory, and balance.

wells = Connect("Wellspringer")
wells.RegisterSeller( name, amount ) # Register Sale for a User

Factory

goods

string db = Connect("GoodsDatabase")
db.Register(goodsType, quality)

var id = Connect("SendPipe2")
Send(id)

var machine = Connect("MachineB2")
string result = machine.Convert()
Print("Result: "+ result )

security

ZapPerson(name)
light.StartBlinking()