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 05-08-2004, 07:41 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by R0bin
NPC Code:

NPC Code:

if (created||timeout) {
this.npc=testnpc(mousex,mousey);
if (this.npc>-1) {
showtext -10,npcs[this.npc].x+1.5,npcs[this.npc].y-1,,c,#v(this.npc);
} else hideimg -10;
timeout=0.05;
}



What's the point of negative indexes? I have noticed that you use negative indexs often.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #2  
Old 05-08-2004, 09:06 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Quote:
Originally Posted by osrs
What's the point of negative indexes? I have noticed that you use negative indexs often.
Does it really matter?
Indexes >200 and <0 is the same thing anyways.
__________________
-Kjetil Valen
Reply With Quote
  #3  
Old 05-09-2004, 04:49 PM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
yes.

-1 downto -inf = visible by client only
0 - 200 = visible by all clients in the level
201 - inf = visible by client only.

len(-1) < len(200) its just easier to type.
Reply With Quote
  #4  
Old 05-09-2004, 05:02 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Quote:
Originally Posted by R0bin
yes.

-1 downto -inf = visible by client only
0 - 200 = visible by all clients in the level
201 - inf = visible by client only.

len(-1) < len(200) its just easier to type.
Hm. The things you learn.
Reply With Quote
  #5  
Old 05-10-2004, 03:50 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by VeX_RaT_Boy
Does it really matter?
Indexes >200 and <0 is the same thing anyways.
I don't think i was talking to you.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #6  
Old 05-10-2004, 07:51 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Quote:
Originally Posted by osrs
I don't think i was talking to you.
But I answered, so you got to live with that now.
__________________
-Kjetil Valen
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 06:00 AM.


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