Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-18-2004, 11:59 AM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Quote:
Originally posted by ZeLpH_MyStiK
...hurtdx and hurtdy are suppose to change when the npc is hit...
Yes, they are, but not this way.

Open the offline editor, put one of those default NPCs on the board, make it hurtable and look at the code for the hurting.

It is the script that sets the hurtdx/y values, not the engine.
The only case where the engine sets the hurtdx/y values - or used to on clientside - was when another script hit it (using hitobjects or similiar things).

So I relied on that if the hurtdx/y values changed (whether by my own script or by hitobjects doesn't matter) that they have the correct values and that the hearts are decreased.

Edit: and two weeks ago the sword didn't set the values, it just triggered the event.

Anyway, I believe I found a way around that problem, but I still think it is a bug that should be fixed.

Another thing related to that is the hitdetection on showcharacter scripts - you have to hit the top-left blocking tile of it so it detects the hit. Kat told me the same problem happens with projectiles, too.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
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 04:25 AM.


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