Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Scripting from scratch - beginner

  1. #1

    Scripting from scratch - beginner

    Hi all,

    This is my first post and I hope I've choose the correct sub-forum to post my question.

    Actually I'm new to this field so I want to learn scripting from the scratch sooner. So can anyone of direct me to the way how to do this. I'm really appreciate your support and comments here.

    Thanks a lot

  2. #2
    This is a good place to start:

    http://forums.bistudio.com/showthread.php?t=78089

    You will find allot of information there.

  3. #3
    Thanks a lot for the infor. I'll look at it and let you know, if I'm stuck with.

    Just one more question I've to ask from all of you. Is it possible to run those script with VBS2 ?

  4. #4

  5. #5
    Moderator [FRL]Myke's Avatar
    Join Date
    May 27 2007
    Location
    Yay, Rank 34 of 47119 and catching up.
    Posts
    5,706
    Quote Originally Posted by callihn View Post
    No, this is for VBS2, better this here: http://community.bistudio.com/wiki/C...Commands_ArmA2

  6. #6
    To learn SQF scripting syntax, this guide is a great place to start.

    After that doing a mission tutorial step by step would be a great next step. After that just read what other people are doing, break missions apart to see how they were done and experiment.

  7. #7
    Quote Originally Posted by kylania View Post
    To learn SQF scripting syntax, this guide is a great place to start.

    After that doing a mission tutorial step by step would be a great next step. After that just read what other people are doing, break missions apart to see how they were done and experiment.
    Thanks a lot.

    Actually most of the stuff I've look into bit of confused to me. May be I've explained it in the wrong way.

    Initially I want to know what the stuff I need, like an editor to write the code, if compilation is required what I've to use, how to run it and like that. Can you please comment on me sir.

  8. #8
    Just a text editor would be the only required program.

    ArmAEdit is a really wonderful script editing program. Colors your code for you, offers autocomplete and has a few wizards that still work pretty well. I highly suggest it and it's what I use every day.

    Some others enjoy using text editors like Notepad++ or UltraEdit with SQF syntax highlighting.

    All code is read at runtime so you can make a change in the editor, preview the mission again and your change will take place. There's no precompliing required, but you can do so within the scripts using commands if you need to. You won't have to make anything though, for example.

  9. #9
    I think it's better to move with ArmA Edit than the Np/NP++. Then easily I can keep eye on key words and stuff.

    Ok, I've install the editor and have look at. Seems fine.

    And then what I've done is copy the very first example from the link that you've added in your forum signature. Save it, but how can I run it and see? I found an option "Launch Game", click on it nothing is happen. Is that the wrong way.

    Sorry if I'm really bother you. But still I don't have a better idea about those stuff.

  10. #10
    Quote Originally Posted by [GLT]Myke View Post
    No, this is for VBS2...
    I know, it was in response to:

    Quote Originally Posted by eranga View Post
    ..... Is it possible to run those script with VBS2 ?
    I was just answering his question, I had already supplied the general getting started sticky link and I thought this was something he was looking for specificly.

    Quote Originally Posted by eranga View Post
    I think it's better to move with ArmA Edit than the Np/NP++. Then easily I can keep eye on key words and stuff.

    Ok, I've install the editor and have look at. Seems fine.

    And then what I've done is copy the very first example from the link that you've added in your forum signature. Save it, but how can I run it and see? I found an option "Launch Game", click on it nothing is happen. Is that the wrong way.

    Sorry if I'm really bother you. But still I don't have a better idea about those stuff.
    No bother, did you look into the first link I provided?

    I know it is long and boring stuff, but sadly there are no fast ways to mission scripting, lucky for us there are a bunch of people before us that are often very helpful when all of that is just not making any sense or not working like we thought it said it does.

    Mission editing is not generally a 1, 2, 3 and your done type of thing, though of course simple things can be done fairly quickly, particularly if it is in the unit's init.

    You have to have a mission file .sqm and other scripts to go with your script(s), the mission scripts fire in a particular order as the mission starts, you will call your scripts from those or from the unit's init.

    Why don't you give us an ideal of exactly what your trying to do so we can help you better, for example do you have a mission fille. sqm?

    What does your script attempt to do or what do you want to do with it?

    This may determine when and how you need it to load.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •