View Single Post
  #14  
Old 06-10-2014, 02:00 PM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
Quote:
Originally Posted by fowlplay4 View Post
PHP Code:
temp.tile tiles[player.x+1.5player.y+3];
temp.badtiles = {0,1,2,3,4};
if (
temp.tile in temp.badtiles) {
  
player.chat "this is a bad tile";
} else {
  
player.chat "this is not a bad tile";

Could I do something like..

on created
PHP Code:
function onCreated(){
 
player.blocktiles = (1,2,3,4,5,etc);

on check
PHP Code:
if (tiles[player.x+1.5player.y+3] != player.blocktiles){ 
Obviously I don't think this will work as written. But I want to do it similar to that way.. How can I go about this?
Reply With Quote