Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-06-2009, 03:21 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
Companion npc that follows you (gs1)

Just for fun, here is a little triggeraction example I made today, in a companion npc that follows you around (yes i know followplayer exists but ... this teaches how to do slightly more than that).

When you play the level, press D and the companion will walk up to you. You can pick up the companion (like you would a bush), throw them, then they get back up and walk right back to you again.

Feel free to make it do more stuff if you like, then share your modifications here.

ug sorry .. please move to code gallery .. thats what i meant to do
Attached Files
File Type: nw servant.nw (10.9 KB, 219 views)
Reply With Quote
  #2  
Old 06-06-2009, 08:55 AM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Just for the record followplayer was removed and does not work anymore.
Reply With Quote
  #3  
Old 06-06-2009, 10:10 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Pelikano View Post
Just for the record followplayer was removed and does not work anymore.
and gs1 shouldn't be used anymore.
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #4  
Old 06-06-2009, 05:07 PM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
Quote:
Originally Posted by Deas_Voice View Post
and gs1 shouldn't be used anymore.
unless you want to do any npc scripting in the level editor offline ... then it works just fine where gs2 forces you to purchase an account to use it as gs2 only works online. It's like saying cobol shouldn't be used anymore ... it still works and can do many things, but there are newer ways of doing things that others prefer.

it's not a matter of should and shouldn't, gs1 and gs2 both work - therefore it is a matter of personal preference.
Reply With Quote
  #5  
Old 06-06-2009, 05:43 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Im going to learn cobol next year
Reply With Quote
  #6  
Old 06-06-2009, 06:58 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Prozac View Post
unless you want to do any npc scripting in the level editor offline ... then it works just fine where gs2 forces you to purchase an account to use it as gs2 only works online. It's like saying cobol shouldn't be used anymore ... it still works and can do many things, but there are newer ways of doing things that others prefer.

it's not a matter of should and shouldn't, gs1 and gs2 both work - therefore it is a matter of personal preference.
You've obviously already got a Classic account to be posting here, and I'd bet it's lifetime because of your join time. You can sign up for the Testbed Server, where you can try out GS2.

GS1 is a very poor language by just about any standard, and is very slow compared to GS2.

You really should try to pick up GS2, you will like it when you get used to it.
__________________
Reply With Quote
  #7  
Old 06-07-2009, 10:43 PM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
I would like to make some gs2 stuff again, I have made gui windows before, particles etc even a q menu weapons system replacement in gs2. but after almost 10 years of gs1 it brings me happy memories

yes I do have a classic/lifetime account .... so .... how do i sign up for this testbed server? to be able to code in gs2 without having to pay anymore money sounds like a good thing
Reply With Quote
  #8  
Old 06-07-2009, 11:35 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Prozac View Post
yes I do have a classic/lifetime account .... so .... how do i sign up for this testbed server?

Talk to Tig or Chompy.
Reply With Quote
  #9  
Old 06-08-2009, 12:15 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
ok I messaged Chompy, the private message system says it cannot find any user by the name Tig
Reply With Quote
  #10  
Old 06-08-2009, 12:33 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Prozac View Post
ok I messaged Chompy, the private message system says it cannot find any user by the name Tig

Tigairius is his forum account; Tig is the short version of that.
Reply With Quote
  #11  
Old 06-08-2009, 04:37 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Prozac View Post
ok I messaged Chompy, the private message system says it cannot find any user by the name Tig
Oh my, someone still hasn't heard of Tig?
__________________
Reply With Quote
  #12  
Old 06-08-2009, 04:42 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to beholdTSAdmin is a splendid one to behold
Quote:
Originally Posted by cbk1994 View Post
Oh my, someone still hasn't heard of Tig?
Who's Tig?

I'm kidding. ...or am I?

GS2 is far easier to learn than people make out, as well. You've got GS1 there, so you get the basics by way of rules when using certain functions, so GS2 shouldn't be too hard for you to pick up at all.
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #13  
Old 06-08-2009, 04:53 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
if (created) {} = function onCreated() {}
setplayerprop #c,test; = player.chat = "test";
setplayerprop #c,#v(this.var); = player.chat = this.var;

http://wiki.graal.net/index.php/Creation/Dev/GS1_To_GS2
http://wiki.graal.net/index.php/Crea..._to_new_script
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 07:10 PM.


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