im new to developing and i would like some help understanding some things, i like to read other scripts to learn the functions of things and learn from that and from that i've been able to create a few elements but i dont know what some things mean that i see and i still cant figure out how to do a lot of things with elements, one thing i would like to know is what the letters mean, like in function(i,x,y,s,nt) are a few i know, i understood i, x, and y quite fast but not really understanding what the others could mean and dont know if that could be the problem on why i cant do some things i've been trying to figure out, then theres math.random(1,10), my guess on it is its just a random number generator or something but i seem to find significantly bigger numbers like "(1,4000 < 2)" and i'm not fully sure if it really is a random number generator, if it gets triggered very fast multiple times since getting 1 with it out of 4000 would seem kinda rare but maybe im not understanding it, i also want to understand neighbors for the sim. because im not sure if it is for detecting if theres a specific thing next to the particle, since i do want to learn how to make an acid that destroys specific things it interacts with and losses life as it interacts with it until it gets destroyed, but i also want to try and avoid things that will require math, since i dont understand alot of things that use math or at least know what math i should try learning that would help me the most for anything while trying to learn how to code, (i have tried going through other ways to learn how to code but in just a few hours i forget everything, looking at scripts and figuring how some parts make it function seems to have been the only way i remembered anything since its been like 2-3 days since i starting trying to script small changes and i learned alot more than a few things realizing how complicated some small changes can be)
i may have made this message alot longer than i intended to but the main things i would like to know is what the letters for function(i,x,y,s,nt) mean and any small things that would help me with what i dont know from my way of trying to learn it
There's the wiki https://powdertoy.co.uk/Wiki/W/Powder_Toy_Lua_API.html
and check out Maticzpl's Lua API addon https://github.com/Maticzpl/TPT-LuaAPI-Addon