Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-09-2014, 06:50 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 360
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
i didnt realise graal doesnt like using 1x1 directly like that, i usually change the tile values to their actual hexadecimal value, in this case 17:

PHP Code:
if (tiles[player.1.5player.2] == 17) { 
 
player.chat "Found Tile!"

__________________
This signature has been deleted by Darlene159.
Reply With Quote
  #2  
Old 06-09-2014, 07:06 PM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
Quote:
Originally Posted by Jakov_the_Jakovasaur View Post
i didnt realise graal doesnt like using 1x1 directly like that, i usually change the tile values to their actual hexadecimal value, in this case 17:

PHP Code:
if (tiles[player.1.5player.2] == 17) { 
 
player.chat "Found Tile!"

A couple things...

1. Nothing is happening when I collide with the tile... Not sure if I'm missing something.

2. How did you come up with 17 for 1x1 tile?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:45 AM.


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