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-27-2001, 10:09 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Talking How dare you ask me to follow a player!

You would actually ask an NPC to follow a measly little player? How dare you try and ask an NPC to do something like that!@!

Oh well, for those of you who are desperate, I've made an example of the three followplayer types I listed in my other post on that followplayer thread. You can change the type of followplayer by changing this.mode in the only script in the level. It should be pretty easy to set up other than that...I've added notes wherever you might want to change something.

One last note: no, this will not work for a server npc. If you want an npc on the server to follow a player, you're going to need to figure out how to fix the script to do it. I didn't because:
A) I don't want to script server-side tonight
B) Most of you wouldn't be able to use it anyway
C) Following a specific player is a whole different deal on the server

Finally, be sure to read the comments. You aren't allowed to use this script unless you have my permission. And since you'd have to do SOME begging to get that, you might as well just use this script to learn from. You don't need to give credit as long as what you're using it for isn't horribly horrid. (I'm talking big picture, if it's for a critter on a server, you can't use it unless your server is the most awesome thing I've ever seen)

Here's the script, have fun!
Attached Files
File Type: zip followplayer.zip (1.1 KB, 182 views)
Reply With Quote
  #2  
Old 07-27-2001, 11:10 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
=)
Array is the best but it doesn't look realistic. but with array you dont need to worry as much about onwall in my opinion.
__________________
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
  #3  
Old 07-27-2001, 12:05 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Thats really good except

distance gets larger and larger between player and NPC and the NPC doesnt stop when the player does =\
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #4  
Old 07-27-2001, 02:36 PM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
Re: How dare you ask me to follow a player!

Quote:
Originally posted by kyle0654
You would actually ask an NPC to follow a measly little player? How dare you try and ask an NPC to do something like that!@!

Oh well, for those of you who are desperate, I've made an example of the three followplayer types I listed in my other post on that followplayer thread. You can change the type of followplayer by changing this.mode in the only script in the level. It should be pretty easy to set up other than that...I've added notes wherever you might want to change something.

One last note: no, this will not work for a server npc. If you want an npc on the server to follow a player, you're going to need to figure out how to fix the script to do it. I didn't because:
A) I don't want to script server-side tonight
B) Most of you wouldn't be able to use it anyway
C) Following a specific player is a whole different deal on the server

Finally, be sure to read the comments. You aren't allowed to use this script unless you have my permission. And since you'd have to do SOME begging to get that, you might as well just use this script to learn from. You don't need to give credit as long as what you're using it for isn't horribly horrid. (I'm talking big picture, if it's for a critter on a server, you can't use it unless your server is the most awesome thing I've ever seen)

Here's the script, have fun!
Gah kyle! If they to lazy to make it themselves, why would you make it for them?

Quote:
Originally posted by kyle0654

Thats really good except

distance gets larger and larger between player and NPC and the NPC doesnt stop when the player does =\
thats really good? I havent downloaded it...but basicly Kyles script im sure ownages you.
Reply With Quote
  #5  
Old 07-27-2001, 02:45 PM
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
Re: Re: How dare you ask me to follow a player!

Quote:
Originally posted by T-Squad


Gah kyle! If they to lazy to make it themselves, why would you make it for them?



thats really good? I havent downloaded it...but basicly Kyles script im sure ownages you.
Yes it does =)
He even put this.mode changable to change between different follow types.
You should check it out.
__________________
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
  #6  
Old 07-27-2001, 11:11 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Re: Re: How dare you ask me to follow a player!

Quote:
Originally posted by T-Squad


Gah kyle! If they to lazy to make it themselves, why would you make it for them?
cuz all everone's been talking about lately is followplayer, and I had a free 15 minutes. It won't work online, and it'd look horrible if you used it clientside online, so don't worry.
Reply With Quote
  #7  
Old 07-27-2001, 11:51 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
Jadis:

Good job Kyle! I applaud thine efforts!

I don't know if that sounded like I could do this or not but I can't so I won't.
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:17 PM.


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