Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:30 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.