Latest topics
» iChat 2.0 - A New Way to Chat!
Oxygen Script: How to create a LOOP EmptySat Jun 23, 2018 11:38 pm by OnyxTech

» iNBA Super Rankings (12/15/2013)
Oxygen Script: How to create a LOOP EmptySun Jun 17, 2018 11:48 pm by iNBA

» Tigers vs. Greats, Jeremiah Clark pours in 25 as Tigers take victory, 88-80
Oxygen Script: How to create a LOOP EmptySun Jun 17, 2018 11:27 pm by iNBA

» 2013-2014 Free Agent Watch
Oxygen Script: How to create a LOOP EmptySun Jun 17, 2018 11:11 pm by Stanley

» SAMUEL HOLLOWAY JUST SCORED 97 POINTS IN ONE QUARTER!!!
Oxygen Script: How to create a LOOP EmptySun Jun 17, 2018 11:10 pm by Stanley

» Drew Que of Hialeah Horizon cashes in 55 for the win over Celtics, 126-113
Oxygen Script: How to create a LOOP EmptySun Jun 17, 2018 11:08 pm by Stanley

» Samuel Holloway makes history with magical 106 point performance against Austin Galaxies, 183-81
Oxygen Script: How to create a LOOP EmptySun Jun 17, 2018 11:08 pm by Stanley

» Danny Dubb delivers 81 in win over Atlanta Hawks, 175-88
Oxygen Script: How to create a LOOP EmptySun Jun 17, 2018 11:06 pm by Stanley

» iNBA Super Rankings (11/17/2013)
Oxygen Script: How to create a LOOP EmptySun Jun 17, 2018 11:05 pm by Stanley

Most active topic starters
Kernel
Oxygen Script: How to create a LOOP I_vote15Oxygen Script: How to create a LOOP I_voti11Oxygen Script: How to create a LOOP I_vote16 
OnyxTech
Oxygen Script: How to create a LOOP I_vote15Oxygen Script: How to create a LOOP I_voti11Oxygen Script: How to create a LOOP I_vote16 
iNBA
Oxygen Script: How to create a LOOP I_vote15Oxygen Script: How to create a LOOP I_voti11Oxygen Script: How to create a LOOP I_vote16 
Alex
Oxygen Script: How to create a LOOP I_vote15Oxygen Script: How to create a LOOP I_voti11Oxygen Script: How to create a LOOP I_vote16 
Raymond
Oxygen Script: How to create a LOOP I_vote15Oxygen Script: How to create a LOOP I_voti11Oxygen Script: How to create a LOOP I_vote16 
Bedbed
Oxygen Script: How to create a LOOP I_vote15Oxygen Script: How to create a LOOP I_voti11Oxygen Script: How to create a LOOP I_vote16 
Cyber
Oxygen Script: How to create a LOOP I_vote15Oxygen Script: How to create a LOOP I_voti11Oxygen Script: How to create a LOOP I_vote16 
Combz
Oxygen Script: How to create a LOOP I_vote15Oxygen Script: How to create a LOOP I_voti11Oxygen Script: How to create a LOOP I_vote16 
Teh Can
Oxygen Script: How to create a LOOP I_vote15Oxygen Script: How to create a LOOP I_voti11Oxygen Script: How to create a LOOP I_vote16 
GGsmalls
Oxygen Script: How to create a LOOP I_vote15Oxygen Script: How to create a LOOP I_voti11Oxygen Script: How to create a LOOP I_vote16 

Top posting users this month
No user

Member of the Month
Winner MoM Want to be Member of the Month? Simply enter your name below and receive, 5000+ points, NameGlow (Any color), and A title picture!
Username:
New Network & Projects

Oxygen Script: How to create a LOOP

View previous topic View next topic Go down

Oxygen Script: How to create a LOOP Empty Oxygen Script: How to create a LOOP

Post by Voltage Fri Jun 13, 2014 1:25 pm

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.
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)
Then in line 16, change regularprogram to loopprogram.
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
Voltage
Developer
Developer

Posts Posts : 10
Points Points : 6265
Join date Join date : 2012-12-13

Back to top Go down

Oxygen Script: How to create a LOOP Empty Re: Oxygen Script: How to create a LOOP

Post by LOLman22 Fri Jun 13, 2014 9:40 pm

Nice tutorial! Keep up the good work Voltage
LOLman22
LOLman22
Registered User
Registered User

Posts Posts : 24
Points Points : 14880
Join date Join date : 2012-12-13

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum