How do i actually write the code

  • Bunborg
    22nd Feb 2021 Member 0 Permalink

    I have the correct equipment and i can make the scripts, just how do i actually write the code? How do i create new elements? What is the name of the function to create an element? and so on

  • _Theo
    23rd Feb 2021 Member 0 Permalink

    well what mods are you looking to make? there's 2 types
    C++ mods, which modify the source code itself, and then get recompiled into a new .exe (alchemy toy or cracker1000's mod for example). as the name suggests majority of the modding done for these is in C++
                     OR
    Lua mods (or scripts really) which are either one autorun.lua file placed in the main folder OR if you want to use other scripts and have it a bit more convenient to debug you can use the script manager and put it in the scripts folder of your game
    if you don't have it, get the script manager lua script from here https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=19400

  • Bunborg
    18th Mar 2021 Member 0 Permalink

    it doesn't matter it was lua script and now i learned how by looking at other scripts code

  • catchphrase911
    21st Jul 2021 Member 0 Permalink

    @Bunborg (View Post)

     i have no experience on coding at all, however i would really like to learn how to code. i understand if yoy say no to giving me a lesson, but if you are ok with that i would be very grateful! thanks.