Else Heart.Break() Sprak: Difference between revisions

From wikinotes
 
Line 25: Line 25:
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Passwords -->
</blockquote><!-- Passwords -->
= Connections =
<blockquote>
== FinanceComputer ==
The town's bank
<syntaxhighlight lang="C">
fin = Connect("Finance Computer")
fin.ChangeBalance("Sebastian", +100)  # Change User's Balance
</syntaxhighlight>
== Wellspring ==
Wellspring's inventory, and balance.
<syntaxhighlight lang="C">
wells = Connect("Wellspringer")
wells.RegisterSeller( name, amount ) # Register Sale for a User
</syntaxhighlight>
== Factory ==
=== goods ===
<syntaxhighlight lang="C">
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 )
</syntaxhighlight>
=== security ===
<syntaxhighlight lang="C">
ZapPerson(name)
light.StartBlinking()
</syntaxhighlight>
</blockquote><!-- Connections -->

Latest revision as of 03:01, 9 January 2023

Notes

sprak syntax
sprak world functions
sprak entertainment functions
sprak connection functions

Passwords

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

# PowerPlant Entrance:
# Factory_Corridor_DoorToServerRoom
zgh4522zcbw45