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 12-29-2001, 12:03 PM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
Talking Another indepth scripting question by me

Ok i made something..lol the usual

i have a npc where i need about 50 of those npcs. but each npc is about .77 kb.

i have heard something about class script ..different npcs using the same script..

is there anyway to have 50 different npcs use the same script so the lvl will be smaller

this is for p2p


Thank u
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #2  
Old 12-29-2001, 12:10 PM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
classes will work for this =)

first, you have to make an NPC class in nc, or by the text file. Then you put the script inside the class that you want to be joined. Then, to use the class, you have to create a new npc, and just put in "join classname;" in your script, and that will join the class script.
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
Reply With Quote
  #3  
Old 12-29-2001, 12:23 PM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
ok... hum..
can u explain a little more indepth.. u lost me..
i have heard about classes but have no idea and will this work offline
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #4  
Old 12-29-2001, 01:11 PM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
join command reference:
http://forums.graal2001.com/forums/s...threadid=17698
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
Reply With Quote
  #5  
Old 12-29-2001, 06:00 PM
Phenom1K Phenom1K is offline
Registered User
Join Date: Dec 2001
Location: Somewhereoffthecoastof, Paradise
Posts: 138
Phenom1K is on a distinguished road
Send a message via AIM to Phenom1K Send a message via Yahoo to Phenom1K
Make the level, in a nw file, and when done, every NPC you want the script in, just put join textfilenamehere. this is basically just what was posted above but I feel as If I say something i get a consolation prize for a big mouth.
Reply With Quote
  #6  
Old 12-30-2001, 04:53 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
u really cant learn join offline .. either words or using the nc control ;\
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #7  
Old 12-30-2001, 05:05 AM
GrowlZP2P GrowlZP2P is offline
Registered User
Join Date: Dec 2001
Location: Corpadverticus, which in case you don't know is the recently-formed and Blockbuster Video-sponsored Tenth Circle of Hell
Posts: 57
GrowlZP2P is on a distinguished road
Send a message via AIM to GrowlZP2P Send a message via Yahoo to GrowlZP2P
I have a workaround that doesn't need the join command and works perfectly offline, on p2p or non-p2p. Take the code of one NPC and add it to a text file. Keep that text file in the level's directory. Whenever you need that script, just call it with 'putnpc filename,x,y;'. Maybe slightly less advanced than you hoped, but it works.
__________________


AIM: GrowlZ1010 | Y! IM: GrowlZ1010 | MSN: [email protected] | Email: [email protected]

- I use obscenely long words to befuddle my adversaries, therefore I am -

Current Favorite Quote: Real programmers don't document. If it was hard to write, it should be hard
to understand.
Reply With Quote
  #8  
Old 12-30-2001, 09:03 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
would put npc with 50 different ones lag because it puts the same script on there 50 times

Join has the npcs use the same script

Thanx to alll..
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #9  
Old 12-30-2001, 11:52 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
there is a limit to amount of npc's in a level.
Reply With Quote
  #10  
Old 12-30-2001, 06:59 PM
GrowlZP2P GrowlZP2P is offline
Registered User
Join Date: Dec 2001
Location: Corpadverticus, which in case you don't know is the recently-formed and Blockbuster Video-sponsored Tenth Circle of Hell
Posts: 57
GrowlZP2P is on a distinguished road
Send a message via AIM to GrowlZP2P Send a message via Yahoo to GrowlZP2P
Quote:
Originally posted by dragoonvenganc
would put npc with 50 different ones lag because it puts the same script on there 50 times

Join has the npcs use the same script

Thanx to alll..
You live, you learn. =P
__________________


AIM: GrowlZ1010 | Y! IM: GrowlZ1010 | MSN: [email protected] | Email: [email protected]

- I use obscenely long words to befuddle my adversaries, therefore I am -

Current Favorite Quote: Real programmers don't document. If it was hard to write, it should be hard
to understand.
Reply With Quote
  #11  
Old 12-31-2001, 12:05 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Quote:
Originally posted by dragoonvenganc
would put npc with 50 different ones lag because it puts the same script on there 50 times

Join has the npcs use the same script

Thanx to alll..
putnpc = bad idea

Regular NPCs are handled differently than NPCs that join a class. So you're right, it will lag more. You'll want to make a class on your server and have the NPCs join it. You could probably use putnpc2 to place them in the level on initialized so you'd only have one script in your level.
Reply With Quote
  #12  
Old 01-07-2002, 09:49 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
Hey another question thanx kyle..

but..
if i had like all the trees on there server had a little script so u can cut them down.. and i used join class would that lag at all
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #13  
Old 01-09-2002, 09:29 PM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
some one please
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #14  
Old 01-09-2002, 11:17 PM
Kumada Kumada is offline
Ded
Kumada's Avatar
Join Date: Nov 2001
Location: Usa
Posts: 1,088
Kumada is on a distinguished road
Quote:
Originally posted by dragoonvenganc
Hey another question thanx kyle..

but..
if i had like all the trees on there server had a little script so u can cut them down.. and i used join class would that lag at all
Matters on how many trees are in the level.
__________________
Aim: Mmm Kumada

Reply With Quote
  #15  
Old 01-09-2002, 11:19 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 dragoonvenganc
some one please
Join would be the best thing you could do, in that case...
__________________
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
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 03:17 PM.


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