This commit is contained in:
the me 2022-08-07 14:14:04 -07:00
commit 09ade10207
117 changed files with 2153 additions and 0 deletions

View file

@ -0,0 +1,29 @@
function ncm(val) { //not count mod value
return !(count%val);
}
function ncmr(val, low, high) { //not count mod value within range
return ncm(val) && count >= low && count <= high;
}
function ncml(val, low, repeats, count_=count) { //not count mod value above minimum repeated
//log(count);
return nam(count_,val) && //if count value is not anything moddable to the provided value
count_ >= low && //if count is greater than the floor value provided
count_ <= low+val*repeats; //
}
function ncmltime(val, low, repeats) { //not count mod value above minimum repeated duration
//log(count);
return low+val*repeats;
}
function fdx(val, divisor, multiplier=1) { //floor divided by x
return floor(val/divisor)*multiplier;
}
function itneg() { //tells you if youre on an odd iteration
return (iterations%2)*-2+1;
}
function ineg(i) { //tells you if youre on an odd i
return (i%2)*-2+1;
}

View file

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "convenience",
"path": "folders/Scripts/convenience.yy",
},
"resourceVersion": "1.0",
"name": "ncm",
"tags": [],
"resourceType": "GMScript",
}