Latest topics
Top posting users this month
No user |
Member of the Month
MoM
Want to be Member of the Month? Simply enter your name below and receive, 5000+ points, NameGlow (Any color), and A title picture!
New Network & Projects
Oxygen Script: How to create a LOOP
Supernova :: Support :: Script Support
Page 1 of 1 • Share
Oxygen Script: How to create a LOOP
Hello, everyone.
In this tutorial I'm going to show you how to create a Loop. It's fairly simple and it won't take too much of your time. Just follow these steps.
Step 1. Important
You need to have download the latest version of Oxygen 2.0.3. If you don't this will not work as the older versions of Oxygen do not have the commands to loop.
Step 2. Configuring config.oxy
Open config.oxy and look at line 10, it should look something like this.
Okay, it may seem like a lot to deal with. Have no fear. I'll break it down.
In line 12, change true to false. In line 14, change all to the name of your program. MAKE SURE to put the extension as well(.oxy or .oxg), Do the same for the "all" in line 17. and right below line 12 it insert this:
After the null; statement, delete the code the begins with STARTandECHO.
So when finished, it should look something like this:
Almost done. Then scroll all the way to line 80 and add this:
Then after that, go to the program you inserted all those times, and it should LOOP!
Step 3. Finshed!
Once you tested your program and it works, you are finished! You can choose how many times you want your program by putting a number after loopprogram.
For example
loopprogram.one
loopprogram.three
Happy looping.
-Voltage
In this tutorial I'm going to show you how to create a Loop. It's fairly simple and it won't take too much of your time. Just follow these steps.
Step 1. Important
You need to have download the latest version of Oxygen 2.0.3. If you don't this will not work as the older versions of Oxygen do not have the commands to loop.
Step 2. Configuring config.oxy
Open config.oxy and look at line 10, it should look something like this.
- Code:
CMD.run
#setup
regularPROGRAM.program="true";
include oxygen.oxg.START;
RUN.all; properties.oxy; runtimes.oxy;
include regfiles.oxg.START
IF.regfiles.notINCLUDE.regularprogram;
.close RUN.all
CMD.end
;null
STARTandECHO.withend "The program type is not found. Make sure your program type is the same as the one you're running.";
Okay, it may seem like a lot to deal with. Have no fear. I'll break it down.
In line 12, change true to false. In line 14, change all to the name of your program. MAKE SURE to put the extension as well(.oxy or .oxg), Do the same for the "all" in line 17. and right below line 12 it insert this:
- Code:
INSERT.loop.CMD="true";
IfSO.loop.RUN.(program name here.oxy or .oxg)
After the null; statement, delete the code the begins with STARTandECHO.
So when finished, it should look something like this:
- Code:
CMD.run
#setup
regularPROGRAM.program="false";
INSERT.loop.CMD="true";
IfSO.loop.RUN.(program name here.oxy or .oxg);
include oxygen.oxg.START;
RUN.(program name here.oxy or .oxg); properties.oxy; runtimes.oxy;
include regfiles.oxg.START
IF.regfiles.notINCLUDE.loopprogram;
.close RUN.(program name here.oxy or .oxg)
CMD.end
;null
Almost done. Then scroll all the way to line 80 and add this:
- Code:
LOOP.function="true";
IfSO.loop.loopprogram(Your Program name here.oxy or .oxg);
If.loopprogram.loop.function
//Then it's successful, obviosuly.
IfNOT.loop
.close.LOOP.function
.close.LOOP.CMD
;null
Then after that, go to the program you inserted all those times, and it should LOOP!
Step 3. Finshed!
Once you tested your program and it works, you are finished! You can choose how many times you want your program by putting a number after loopprogram.
For example
loopprogram.one
loopprogram.three
Happy looping.
-Voltage
Voltage- Developer
- Posts : 10
Points : 6265
Join date : 2012-12-13
Re: Oxygen Script: How to create a LOOP
Nice tutorial! Keep up the good work Voltage
LOLman22- Registered User
- Posts : 24
Points : 14880
Join date : 2012-12-13
Supernova :: Support :: Script Support
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Sat Jun 23, 2018 11:38 pm by OnyxTech
» iNBA Super Rankings (12/15/2013)
Sun Jun 17, 2018 11:48 pm by iNBA
» Tigers vs. Greats, Jeremiah Clark pours in 25 as Tigers take victory, 88-80
Sun Jun 17, 2018 11:27 pm by iNBA
» 2013-2014 Free Agent Watch
Sun Jun 17, 2018 11:11 pm by Stanley
» SAMUEL HOLLOWAY JUST SCORED 97 POINTS IN ONE QUARTER!!!
Sun Jun 17, 2018 11:10 pm by Stanley
» Drew Que of Hialeah Horizon cashes in 55 for the win over Celtics, 126-113
Sun Jun 17, 2018 11:08 pm by Stanley
» Samuel Holloway makes history with magical 106 point performance against Austin Galaxies, 183-81
Sun Jun 17, 2018 11:08 pm by Stanley
» Danny Dubb delivers 81 in win over Atlanta Hawks, 175-88
Sun Jun 17, 2018 11:06 pm by Stanley
» iNBA Super Rankings (11/17/2013)
Sun Jun 17, 2018 11:05 pm by Stanley