well the above guy is right use
os.loadAPI("your_api") -- Replace your_api with your api's name in the file system
-- then to call a function you use the name of your api so if it called light then you will use:
light.encrypt() -- this is a test
actually making a api is different...
here is my example api:
-- My First API
-- Clears the screen
function cs()
term.clear()
term.setCursorPos(1,1)
end
-- prints the apis version
function version()
return "1.1"
end
-- If you wish to add variables that need to be entered you could use:
-- prints certain text you input
function printText(text_to_print)
print(text_to_print)
end
the first two functions are pretty simple so you can use them in code easily by calling them by using:
os.loadAPI("myapi") -- Loads api so it can be used
myapi.cs() -- loads a function and runs it
-- or
myapi.version() -- returns version so you should normally use the following code as a better way:
print(myapi.version())
the last one needs a variable to function. all it does is print whatever you give it. Examples:
os.loadAPI("myapi")
-- Example 1
text = "Hey Friend"
myapi.printText(text)
-- Output
Hey Friend
-- Example 2
myapi.printText("hello")
--Output
hello
This is all easy to follow if you want more help then just ask and I can send you some tests for you to follow:)
[email protected]
For the other things...it would need to be an api to be honest so to add cyrillic you would need to implement it, also encryption is made by yourself but people have already done it so you download their api and then load it... read the api code first to see what the variables needed are first...
and compilation scripts??