Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Companion npc that follows you (gs1) (https://forums.graalonline.com/forums/showthread.php?t=86206)

Prozac 06-06-2009 03:21 AM

Companion npc that follows you (gs1)
 
1 Attachment(s)
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

Pelikano 06-06-2009 08:55 AM

Just for the record followplayer was removed and does not work anymore.

Deas_Voice 06-06-2009 10:10 AM

Quote:

Originally Posted by Pelikano (Post 1497421)
Just for the record followplayer was removed and does not work anymore.

and gs1 shouldn't be used anymore.

Prozac 06-06-2009 05:07 PM

Quote:

Originally Posted by Deas_Voice (Post 1497427)
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.

Pelikano 06-06-2009 05:43 PM

Im going to learn cobol next year :D

cbk1994 06-06-2009 06:58 PM

Quote:

Originally Posted by Prozac (Post 1497460)
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.

Prozac 06-07-2009 10:43 PM

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

Gambet 06-07-2009 11:35 PM

Quote:

Originally Posted by Prozac (Post 1497703)
yes I do have a classic/lifetime account .... so .... how do i sign up for this testbed server?


Talk to Tig or Chompy.

Prozac 06-08-2009 12:15 AM

ok I messaged Chompy, the private message system says it cannot find any user by the name Tig

Gambet 06-08-2009 12:33 AM

Quote:

Originally Posted by Prozac (Post 1497724)
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. >_<

cbk1994 06-08-2009 04:37 AM

Quote:

Originally Posted by Prozac (Post 1497724)
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? :megaeek:

TSAdmin 06-08-2009 04:42 AM

Quote:

Originally Posted by cbk1994 (Post 1497756)
Oh my, someone still hasn't heard of Tig? :megaeek:

Who's Tig?

I'm kidding. :D ...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.

DustyPorViva 06-08-2009 04:53 AM

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


All times are GMT +2. The time now is 03:23 PM.

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