I'd really like to see some functions for the sake of being able to optimise custom systems, under the assumption that native code is much faster than GScript. If Graal is ever going to expand and try to attract a higher number of players, it's important to reduce the lag that can occur around a lot of players.
PHP Code:
getScreenPlayers(); //returns an array of all players visible on your screen
getAreaPlayers(x, y, w, h); //returns an array of all players within the specified box
getNicknameNPCs(); //returns an array of all NPCs which have a nickname and are visible
hideAllImages(); //hides all displays, instead of either hideimg(start, end); or multiple hideimg(index);
display.attachToObject(object); //makes a display automatically move along with the specified object, such as a player, similar to attachtoowner
2DBoxIntersect(box array 1, box array 2); //returns whether 2 boxes touch edge-on or closer, {x, y, w, h}
2DBoxOverlaps(box array 1, box array 2); //returns whether 2 boxes touch beyond their edge, {x, y, w, h}
2DBoxIntersectsPlayer(x, y, w, h); //returns if a box touches edge-on or closer with the player's own blocking area, , {x, y, w, h} + {player.x + 0.5, player.y + 1, 2, 2}
2DBoxOverlapsPlayer(x, y, w, h); //returns if a box touches beyond the edge of the player's own blocking area, , {x, y, w, h} + {player.x + 0.5, player.y + 1, 2, 2}
pixelRound(number); //rounds the number to the nearest pixel or 0.0625