Advanced question

A friend of mine who is an ATM programmer said she would help me accomplish something  and I was just wondering in case I needed to tell her....is Open Bor a C based language? I have had some experience with C/C++ and basic...for instance when I first was introduced simple programs like this is how people generally began in computer science.


109470784_10156942525357101_6704845921061961934_o.jpg



Also is anyone aware of a mod that was heavily commented for instance compilers typically ignore things notes like this they're mainly for keeping up with where you are at in a program. Whenever bugs occurred instance in college I remember by using comments it was much easier for me to understand where I was in the process of coding.


// sets or assigns the value of int
/* this is the output of a basic text

My point is that comments helped me when I was younger and before I got sick to understand what each piece of code actually did. As in the pic below.

109289875_10156942525362101_4837761066015152586_o.jpg



Also whenever I have seen animation files in previous mods for instance

anim pain3
loop 0
offset 152 272
bbox 0 0 0 0
delay 1
frame data/chars/Dvader/fall3.gif
delay 3
frame data/chars/Dvader/fall3.gif
delay 4
frame data/chars/Dvader/fall3.gif


Does this type of code fall under functions?

I remember very well things like

Classes
References
Functions
Pointers
Expressions
Statements
Mathematical Operators
 
Hello, the scripting is the part that sort of looks C++

it is the scripting that will allow you to make effects & things that regular .txt editing can't do

here is a link to the wiki & it will take you to see some samples you can show your friend.

http://www.chronocrash.com/apps/wiki/obor/index.php?title=Category:Script

i don't know if i am mistaken, but i remember the wiki had a page where there where instructions on how to begin or how the syntax worked
 
OpenBOR Script is a subset of C, not C++. It also has a couple of fundamental differences. OpenBOR script variables are weak typed (meaning they are auto typed and strings are much less of a pain than C). Also, structs are not natively supported, but you can simulate them with arrays.

The syntax itself is identical to C, just a lot more basic. From there it's just knowing the OpenBOR specific functions and how to insert the code into your modules. We can help with that part.

DC
 
Wombat2112 you can use anything to edit script that saves to plain text. Notepad or whatever will work. But something designed for code is much better because it will have syntax highlighting to help you. I like Visual Studio, but Codeblocks is an option too. Both of those are full IDE environments, but that's a good thing if you know how to leverage it to organize your module work.

Cost wise, Visual Studio has a free version for students if you qualify and Codeblocks is free for everyone.

If you don't want to go that route, there's plenty of basic code editing apps out there if you look around.

DC
 
Back
Top Bottom