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 07-05-2001, 02:40 PM
everandom everandom is offline
Registered User
Join Date: Apr 2001
Posts: 286
everandom is on a distinguished road
Question Indexes online

if there are uses of index online, what will be index 0 will be (eg. will it be the first one to come to the room or the one who activates the NPC???)

also for example this NPC:
if (playerenters){
this.random=random(0,100);
if (this.random<=20){
setlevel2 something.graal,x,y;
}}

if the first player enters and doesn't get under 20 and a sceond player enters then he gets under 20, will the first player (leader) warped or the second player or both of them...
thanx...
__________________
RaNdoM InSaNiTy
!!??!!??!!??!!??!!
I'm always been unwanted!!!
MY english kwap
Reply With Quote
  #2  
Old 07-05-2001, 02:41 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
0 = current player = one who activates.
__________________
Reply With Quote
  #3  
Old 07-05-2001, 02:42 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Either of them will be warped if they get the right number..
__________________
Reply With Quote
  #4  
Old 07-05-2001, 02:47 PM
everandom everandom is offline
Registered User
Join Date: Apr 2001
Posts: 286
everandom is on a distinguished road

ok kewl thanx very much....
and if a weapon fired and states playerx and playery does it means the activating player???

eg.

if (weaponfired){
playerx=playerx+2;
playery=playery+2;
}

will everybody get warped or only him
thanx
__________________
RaNdoM InSaNiTy
!!??!!??!!??!!??!!
I'm always been unwanted!!!
MY english kwap
Reply With Quote
  #5  
Old 07-05-2001, 02:49 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
playerx is the same as players[0].x

It is just more efficient.
__________________
Reply With Quote
  #6  
Old 07-05-2001, 02:54 PM
everandom everandom is offline
Registered User
Join Date: Apr 2001
Posts: 286
everandom is on a distinguished road
ohhh okay kewl..
thanx
__________________
RaNdoM InSaNiTy
!!??!!??!!??!!??!!
I'm always been unwanted!!!
MY english kwap
Reply With Quote
  #7  
Old 07-05-2001, 11:13 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
-Posted by Jadis

How is it not different..?
__________________
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 10:49 PM.


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