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
  #1  
Old 03-26-2009, 08:11 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
triggeraction problem on gmaps

I'm trying to trigger an NPC on a gmap, but unless I am in the same 64x64 level as the NPC, it won't receive the trigger.
For example, If my character is at (20,20) on a 128x128 tile gmap, and the NPC I am sending a triggeraction to is at (70,20) it will not catch the trigger. However, if I move the NPC to (63,20) it will.

I checked the x,y location of the trigger, and it matches the NPC's x,y on the gmap, so that's not the problem. Even if the NPC is 4 tiles away from me, but we happen to be right at the split between levels, it won't catch the trigger.



I'm using a putnpc2(), so I could possibly just use findNPC( name ) and trigger it that way, but it would make my life a lot easier if triggeraction would work instead.

I'm not quite sure why my location even matters, the NPC is triggering itself.
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 01:12 AM.


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