This tutorial is set by the author to use the CC By-NC-SA protocol.
The nano -machine provided by OpenComputer is a very interesting device. After taking it, you can provide players with a series of BUFF/Debuff.Some of these effects are beneficial to combat, and some only increase some particle effects.But it can only use wireless network control.Therefore, I wrote a control program that can be used to control the work of nano -machine.
Please make a nano machine and a tablet first.The tablet must be installed at least wireless network cards and Internet cards.
Then, hold the nano -machine in your hand and eat it!That's right, there will be a series of negative effects such as nausea after eating, but just wait for it.
Then start the tablet, enter:
Pastebin get fqgspjjh nano-control.lua
The tablet began to try to download this program from the Internet and save it as a file Nano-Control.lua.
Then you can directly type Nano-Control to start, and get the following interface:
Here are the commands that can be input and their functions.Explanation one by one as follows:
Player information:
Gethealth: Get the player's blood volume.
GetHunger: Get the hunger of the player.
getage: Get the life of the player (second).
getName: Get the name of the player.
Getexperine: Get player experience (level)
Nano machine management:
GetpowerState: Get the energy reserves and upper limit of the current nano machine.
GettotalinputCount: Get the total input quantity.Enter a batch of BUFF/Debuff.It is unknown what kind of buff will be obtained and you need to try it to know.
GetsafeActiveInpputs: Tell you how many inputs are safe.
getmaxactiveInputs: Tell you how many inputs can be turned on.
GetInput
setinput
GetActiveEffects: Query the currently opened buff/effect list.Note that not all effects will be listed.And it is not necessarily effective.
TRY
Command format: Take the effect of input 1 as an example:
Setinput 1 true
Do not add a space between brackets, commands and parameters.Pay attention not to lose the case.
Under normal circumstances, the nano machine response will be obtained in about 1 second after entering the command.If you enter an unspecked command, you can just press what key to get rid of the cycle after about 5 seconds.
Here are several examples:
Open the 18th input (this is a magma particle effect on my character): Setinput 18 TRUE
View the current effect: GetActiveEffects
Appearance effect:
This is the acceleration effect I have opened another input.
As long as the energy is not completed, the effect will always exist.