Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---- Utility stuff ----
- contains(array, value)
- Returns true if array has a given value in it.
- index_of(array, value)
- Index of value in array.
- len(value)
- Returns string length or array length.
- ---- Map manipulation / information ----
- map_owner()
- Returns name of map owner.
- map_width()
- map_height()
- Returns dimensions of map.
- density(type)
- Returns the density (true/false) of a tile or obj.
- tile_get(x,y)
- tile_put(x,y,type)
- Gets/sets the tile type at x,y.
- obj_get(x,y)
- obj_put(x,y,list)
- Gets/sets the list of the obj types at x,y.
- ---- Player information ----
- player_get(player, key)
- player_set(player, key, value)
- Get/store per-player saved information.
- Saved between map visits.
- player_displayname(player)
- Returns display name of the player.
- player_x(player)
- player_y(player)
- Position of player.
- player_move(player, x, y)
- Move player to a new position.
- player_here(player)
- Returns true if player is on the map.
- player_who()
- Returns a list of the currently present players.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement