Home   Help Search Login Register  

Author Topic: Someone to make a diagram about scripting to very slow learner :(  (Read 1334 times)

0 Members and 1 Guest are viewing this topic.

Offline Chammy

  • Members
  • *
  • I'm a llama!
I was wondernig if someone can do me the favor of making a diagram on how a script works or on how to put one togther, i mean, Im sorry guys but it just aint clicking,  I mean, i can learn Imigration Laws and Gun Laws of California but I just cant seem to learn Java.Sorry all for my petty whinings but i think i might be able to learn faster with a picto diagram.  :-\

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Java has nuthin to do with OFP man.

:beat: *Gets Shot* :beat:

Dubieman

  • Guest
Here's one that is narrated, read it, by CHOFPSE as I'm too lazy to make one up myself.

pay attention to the comments after the   ;   symbol.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
The path is well-worn:  read snYpir's A Friendly Intro to Code Snippets and Johan Gustafsson's Scripting Tutorial.    Don't worrry if it doesn't make too much sense, just press on - you need to understand the broad picture to understand the detail, and vice versa.

When you've read those, get the Tutorial Mission and look at the very very VERY simple working scripts it has.    Suddenly it will all start to fall into place.    

All three are in the Editors Depot.
Plenty of reviewed ArmA missions for you to play

Offline Chammy

  • Members
  • *
  • I'm a llama!
Well it looks like Java dont get me wrong ok Armstrong, soorrrrryyyeeee.

Well im trying to make one myself but thanx all.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
OFP script looks a bit like Java, a bit like C++ say others, and a bit like BASIC say the real old timers.  

The plain truth as, as all scripters know, IT IS A LAW UNTO ITSELF.

Kuro found a beauty the other day:  for subfolder paths you can use \ or / in the mission editor.   However, only one of them (I've forgotten which already) works if the mission is a .pbo.    ::)   You couldn't make it up.
Plenty of reviewed ArmA missions for you to play

Offline Chammy

  • Members
  • *
  • I'm a llama!
Well all i was trying to do  is make a diagram of a scripting tutorial so i can understand better, not put it in a game.Thats what i was trying to suggest. I have been having trouble understanding the concept.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
What are you having trouble with in particular?    Can you be more specific about what you do understand, and what's causing a bit of trouble?  

It's kinda hard to put into a diagram, and we don't know what you know which makes it even harder.   :P
Plenty of reviewed ArmA missions for you to play

Kammak

  • Guest
macguba is correct.  I started out to write a simple helpful post for you, but I quickly had 4 screens-full of text!  :)

Need to narrow it down a bit.

Do you understand what variables and arrays are?

Are you having trouble understanding the scripting reference documentation?

Do you have any programming experience?
If you know a language, its much easier - "<this> in OFP is like <that> in C"

etc...


m21man

  • Guest
Quote
Kuro found a beauty the other day:  for subfolder paths you can use \ or / in the mission editor.  However, only one of them (I've forgotten which already) works if the mission is a .pbo.      You couldn't make it up.
You can only use the " \ " if you want it to work in a mission.

Offline Chammy

  • Members
  • *
  • I'm a llama!
Well i finally got my hands  on a commands refernce manual, Holy Bu Jesus! gash there are alot of commands.  Well, i keep getting the _this = _this something and such mixed with each other and arrays, I dont know what they are and variables. I will report later.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Well, i keep getting the _this = _this something and such mixed with each other and arrays, I dont know what they are and variables.
Great! You can be the first one to try out (and give me feedback) on my first tutorial, which deals with this very subject! It's called "All About 'This'", and it can be found here:

http://www.ofpec.com/editors/resource_view.php?id=706

Now, from the impression I'm getting of what you know/don't know, I'll give you the following advise: don't worry about writing scripts just yet. For now, focus on using commands in init fields, triggers and waypoints. As you do that, you will get practice with the commands, and you will start to understand the type of language the com ref uses. So for that, you only need the first part of my tutorial, as you will see.

Once you have got init fields and triggers figured out, you will be ready to move onto scripting. Then you'll realize that it really is the same thing you've been doing with triggers/init fields, only a lot more versitile. But anyway, read my tut as far as it tells you to, and let me know if it helps any.  ;D
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Chammy

  • Members
  • *
  • I'm a llama!
Awesome! ;D I'm checking it out now, thnx.

BigBonga

  • Guest
OFP scripting is based upon java.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Thought it was based on C (know a bit C++ and it's really close) but I've never touched Java so I don't know. Anyway, what I meant in the orginal post was that you don't need to learn Java to learn OFP scripting code. Anyway, the problem's solved so why dig it up? ;)

:beat: *Gets Shot* :beat: