Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    Woodhouse's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Swagtown, Yoloville
    Posts
    2,832
    Reputation
    228
    Thanks
    3,247
    My Mood
    Sick

    You Wanna Learn How to Script?

    So, you want to learn how to script? Awesome! You'll probably get a lot farther then I did. Luckily, I do still have a lot of material and can point you guys in the right direction...sort of . Just a heads up that the Arma 2 Scripting Language's intended usage was for mission editing. Because of this, there is an infinite amount of resources and help out there. Though, be aware that if you go around asking how to make remote executions so you can h4x on DayZ, Arma 2 mission making veterans will probably tell you to fuck off. Usually, it's good to learn a more simple language before moving on to a more complex one. From my observations, SQF doesn't seem daunting enough to recommend that but Python and VB.NET are both pretty easy and will allow you to get a little coding experience. I'd also like to throw it out there that I've been working on an SQF IDE...

    Step 1: Familiarize yourself with/learn the language.

    Introduction to Arma 2 scripting
    What is a Script?
    What are variables?
    What are control structures?
    What are arrays?
    How do I run SQF scripts?
    List of scripting functions
    setDamage
    attachObject

    I could go on and on with these. You guys get the point. The Bistudio Wiki is your friend. Read up as much as you can. For those of you with a coding background, variable, arrays, etc. won't be as foreign to those without one.

    "You're not expected to understand these articles the first time you read them. So read them again. And again. Learn to teach yourself. Ignore all the stuff about SQS and focus on SQF. Do not stop if you don't understand something but read on. If you're stuck come back and ask.

    Once you've grasped the basics, read as much code as possible. There are tons of scripts on OFPEC. Start with small scripts and analyze them until you understand every single line. Try to find the answers to your questions on your own. Your most important tool will be the BIKI's search function. The list of scripting commands will come handy, too.

    Write small scripts that accomplish simple tasks and find out why they don't works as intended (you will make many errors but that's fine because you gain experience this way). Realize that writing code can (and will) be frustrating sometimes. Realize that writing code can (and will) be rewarding once that damn script is finally working!

    Did I mention that you should learn to teach yourself and to find answers on your own? Just in case I did not: learn to teach yourself and try to find answers on your own. Both are skills. The more you practice the better you get. Nobody who knows how to code will teach you because they're all busy coding.

    The whole 'learn how to code' thing boils down to:
    • becoming an autodidact
    • being patient
    • reading code written by others
    • writing code yourself
    • making lots of errors"


    Step 2: Use the Mission Editor!

    I've attached an SQF Guide that goes over mission editing.

    Mission Editor

    Unfortunately, I never got this far so there's not a whole lot I can do in terms of support. All I can say is practice, practice and practice. You won't retain much if all you do is read. You need to apply your knowledge . I can guarantee if you run into a problem, it will already be on the Bistudio forums.


    Step 3: Analyze Other People's Code

    I'm sort of bridging into Menus now but a great way to learn is to look at other people's work. It's amazing how much insight you'll gain from this. But of course, if all you do is copy and paste, you won't learn much of anything.

    Step 4: Ask for Help

    I can say that without a doubt we have 3 or 4 of the best scripters in the DayZ Community who are on the forums frequently so don't be afraid to ask. If you guys are serious about learning and actually put some effort into it, people are more than willing to help you. Sadly, I was indecisive on what programming languages to learn and I just ended up not taking the time learning how to script. Not saying that was a mistake or anything. I do feel bad because I don't think very many people have made full on guides before.. inb4 a million of full on guides posted. The DayZ Section in MPGH is known for its leeches. Hopefully this will encourage more people to learn.

    Helpful Resources:

    DayZ Script Filters

    Arma 2 SQF Plugins for Notepad++

    Bistudio Wiki

    Bistudio Forums

    An Older Tutorial I found

    ArmaHolic Forums

    OFPEC



    Feel free to let me know if anything should be added.

    Virus Scan 1: https://www.virustotal.com/en/file/2...is/1369363336/

    Virus Scan 2: SQFScriptingGuide_by_Taurus.v.3.2(1).zip - Jotti's malware scan

    @Flengo @Hero @NormenJaydenFBI @Nico
    <b>Downloadable Files</b> Downloadable Files
    Last edited by chickeninabiskit; 05-24-2013 at 06:58 PM. Reason: Needed to attach upload

  2. The Following 67 Users Say Thank You to Woodhouse For This Useful Post:

    ArnoldXXD (06-12-2014),asd2016 (10-26-2014),audiohacked (12-06-2014),BaldLei (01-02-2016),Bicycle (05-23-2013),BladePop (04-16-2014),blakryder1 (07-10-2016),Brugam3s (02-04-2015),bruxo200 (06-29-2016),CadeBackflip (08-10-2015),Confin3d (05-23-2013),destexpro (06-15-2013),Distraught (05-23-2013),Domokun_index (05-24-2013),drgonbattle (12-08-2015),erickiller666 (10-27-2014),flami88 (05-07-2014),[MPGH]Flengo (05-24-2013),Skipsy (05-24-2013),Fpm2001 (08-06-2014),frannrlz (06-17-2014),fwsefwsgrgwhergr (11-20-2014),GumbyBum (07-21-2014),Hamuki (08-21-2013),HamzaSamer55 (01-03-2016),Ildan45 (05-15-2017),ingkapui1 (01-12-2015),ItzMez (08-17-2014),Misery Jr. (12-06-2013),joaopver10 (07-26-2015),juniordary (11-29-2014),kehesi988 (12-26-2015),kingchris105 (04-06-2014),Kosmo (08-12-2015),leandro1945 (01-30-2016),Liquidjdog (06-20-2013),miiwe (09-15-2014),Milityy (11-10-2015),MrProxgame (04-30-2014),murules (07-27-2014),x12 (04-09-2015),nikitbhushan (09-04-2017),norajor (07-16-2014),norbertqz (01-07-2015),Paramagician (06-29-2014),pawN07 (10-01-2015),Pengzi666 (03-16-2016),qwsignup (07-31-2013),rafaelsantinho (09-05-2015),Rogerxxroger (12-18-2013),Sam_Nicolas (09-06-2015),SankAreaINDEX (07-11-2015),serefcan1999 (03-25-2015),sevik51 (09-13-2015),stingswift (07-09-2014),systemh (09-18-2015),TretaD (10-23-2017),Verazon (01-18-2015),vincentluka (11-05-2014),vvei1234 (05-18-2016),WitherArcher (11-18-2016),X3ONNN (03-18-2014),xCyberxx (12-29-2013),zadenwolf (07-03-2014),zek661920 (05-07-2016),zhangyuzmc1 (01-13-2015),`Rejected (05-25-2013)

  3. #2
    Loganater23's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    uranus (originalamirite?)
    Posts
    418
    Reputation
    15
    Thanks
    60
    Yeah... no thanks, too much to read and do and... fuck it I'm just too lazy, much better to throw money at screen and pay Hangender millions of dollars to supply me with skriptz.

  4. #3
    Distraught's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    California
    Posts
    1,897
    Reputation
    659
    Thanks
    1,355
    Finally some inspiration for people

  5. The Following User Says Thank You to Distraught For This Useful Post:

    Woodhouse (05-24-2013)

  6. #4
    Confin3d's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    3,254
    Reputation
    748
    Thanks
    2,016
    Quote Originally Posted by Loganater23 View Post
    Yeah... no thanks, too much to read and do and... fuck it I'm just too lazy, much better to throw money at screen and pay Hangender millions of dollars to supply me with skriptz.
    All the information is right in front of you though =p
    No longer use this website.

  7. #5
    Loganater23's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    uranus (originalamirite?)
    Posts
    418
    Reputation
    15
    Thanks
    60
    Quote Originally Posted by Distraught View Post
    Finally some inspiration for people
    lol yup, then I make my post and when people get to the end of reading all of this thinking they are going to be the next Rustler or Infistar or hangender I bring them back to reality... fuck I hate my life.

  8. #6
    Bicycle's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    TX
    Posts
    312
    Reputation
    58
    Thanks
    448
    My Mood
    Cold
    thanks man, needed it and is Active Perl a good language to code in? i heard it was Great for beginners! ~Thanks
    Social Engineering God
    S̶ʜ̶ᴏ̶ᴜ̶ʟ̶ᴅ̶.̶ ̶W̶ᴏ̶ᴜ̶ʟ̶ᴅ̶.̶ ̶C̶ᴏ̶ᴜ̶ʟ̶ᴅ̶.̶ Dɪᴅ

    Achievements In SE'ing

    JUST THE BEST

    [x] ASTRO A40
    [x] RAZER NOSTROMO
    [x] (GOLD) IPHONE 5
    [x] BEATS BY DRE (BLUE)
    [x] LOGITECH G19
    [x] LOGITECH Z-2300 SPEAKERS
    [x] 129 Games
    [x] 145 Cans Of Red Bull (LOL)
    [ ] PS4

  9. #7
    Confin3d's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    3,254
    Reputation
    748
    Thanks
    2,016
    Quote Originally Posted by Bicycle View Post
    thanks man, needed it and is Active Perl a good language to code in? i heard it was Great for beginners! ~Thanks
    I started with VB and I can comprehend scripting for arma 2 just fine
    No longer use this website.

  10. The Following User Says Thank You to Confin3d For This Useful Post:

    Bicycle (05-23-2013)

  11. #8
    Bicycle's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    TX
    Posts
    312
    Reputation
    58
    Thanks
    448
    My Mood
    Cold
    Quote Originally Posted by Confin3d View Post
    I started with VB and I can comprehend scripting for arma 2 just fine
    Thanks man!
    Social Engineering God
    S̶ʜ̶ᴏ̶ᴜ̶ʟ̶ᴅ̶.̶ ̶W̶ᴏ̶ᴜ̶ʟ̶ᴅ̶.̶ ̶C̶ᴏ̶ᴜ̶ʟ̶ᴅ̶.̶ Dɪᴅ

    Achievements In SE'ing

    JUST THE BEST

    [x] ASTRO A40
    [x] RAZER NOSTROMO
    [x] (GOLD) IPHONE 5
    [x] BEATS BY DRE (BLUE)
    [x] LOGITECH G19
    [x] LOGITECH Z-2300 SPEAKERS
    [x] 129 Games
    [x] 145 Cans Of Red Bull (LOL)
    [ ] PS4

  12. #9
    Terror In Paradise's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    3,275
    Reputation
    235
    Thanks
    551
    Should definitely be stickied.
    Error 404 Signature Not Found

  13. #10
    thefit200's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    298
    Reputation
    10
    Thanks
    371
    My Mood
    Angelic
    This will help many new users, thanks for posting

  14. The Following User Says Thank You to thefit200 For This Useful Post:

    Woodhouse (05-24-2013)

  15. #11
    Domokun_index's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    1,955
    Reputation
    336
    Thanks
    1,265
    Definitely one of the most needed topics for a while.
    Good work chikin

  16. The Following User Says Thank You to Domokun_index For This Useful Post:

    Woodhouse (05-24-2013)

  17. #12
    Skipsy's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Kamchatka
    Posts
    1,701
    Reputation
    74
    Thanks
    659
    My Mood
    Cynical
    Very nice work chicken, also, good luck on minion!

  18. The Following 2 Users Say Thank You to Skipsy For This Useful Post:

    Woodhouse (05-24-2013),GoneForLunch (05-28-2013)

  19. #13
    TheTerroriserBackUp's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    Surprised this hasn't been stickied... 0.o

  20. #14
    RE4CTIVE's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    99
    Reputation
    10
    Thanks
    63
    My Mood
    Cheerful
    This deserves a sticky
    Nice tut, keep it up.

  21. #15
    sdkjfn03usjfnaspas80uhn's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    everywhere
    Posts
    195
    Reputation
    10
    Thanks
    24
    My Mood
    Buzzed
    Quote Originally Posted by TheTerroriserBackUp View Post
    Surprised this hasn't been stickied... 0.o
    How come your old account was banned? o.O

Page 1 of 2 12 LastLast

Similar Threads

  1. i wanna learn how to write codes and lines for hacks in ava
    By nicogbd in forum Alliance of Valiant Arms (AVA) Help
    Replies: 2
    Last Post: 02-19-2013, 04:10 PM
  2. [Help Request] wanna learn how to make a simple hack
    By shinngo in forum CrossFire Help
    Replies: 18
    Last Post: 06-07-2011, 11:01 AM
  3. DO YOU WANNA LEARN TO CODE
    By topblast in forum Combat Arms Coding Help & Discussion
    Replies: 26
    Last Post: 04-29-2011, 06:26 PM
  4. wanna learn how to shoot really fast witha pistol?
    By lumpy760 in forum Combat Arms Discussions
    Replies: 15
    Last Post: 11-06-2010, 07:02 PM
  5. Replies: 20
    Last Post: 12-03-2008, 10:51 AM

Tags for this Thread