Thread: Index???!!!
View Single Post
  #17  
Old 10-20-2001, 08:43 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by ownerofbabylon
im just wondering what id and index are used for. I have a basic idea but arent there like special ones for special NPCs? like 0 is the current NPC and in some command if its over like 250 then something is different...
You use indexes to tell the difference between npcs/players/images/baddies in a level. Say there was like 20 baddies in a level for one of those lame quests, you couldn't just do baddy.x could you? How would you know which baddy you'd be affecting? (Oh, and its compus, not baddy, in real gscript, by the way..) You use compus[0].x to find the x of the first baddy, compus[1].x to find the x of the second baddy, and so forth...Did I explain that well enough for you?
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote