Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-02-2002, 12:34 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
hitobject

This doesn't hurt the other NPCs!?! It;s not the whole script, just the part that is effecting it.
NPC Code:

this.x = x;
this.y = y;
this.dir = dir;
this.apos = {1.5,1, -1.5,1.5, 1.5,4, 3.5,1.5};

hitobjects 1,this.x+this.apos[this.dir*2],this.y+this.apos[this.dir*2+1];

__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #2  
Old 03-02-2002, 12:58 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
NPCs need a "hearts" value greater than 0 to get hit by hitobjects, as far as I know.
Reply With Quote
  #3  
Old 03-02-2002, 01:35 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by Loriel
NPCs need a "hearts" value greater than 0 to get hit by hitobjects, as far as I know.
it does
NPC Code:
hearts=3;

__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #4  
Old 03-02-2002, 02:05 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: hitobject

Quote:
Originally posted by SSRobgeta
This doesn't hurt the other NPCs!?! It;s not the whole script, just the part that is effecting it.
You paid attention to the guidelines! Kai, give him a cookie.

as far as the code goes, could be a bug or something, if its an npc, isn't there hitnpcs? Because that would probably work best, but I don't really use that stuff, so I am not sure, if you sent me the entire script on AIM I could look, SN = PastAustin.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
Reply


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:41 AM.


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