Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-05-2007, 06:24 AM
MrAnonymous_P2P MrAnonymous_P2P is offline
Retired Oldbie
MrAnonymous_P2P's Avatar
Join Date: Oct 2006
Location: Cambodia
Posts: 722
MrAnonymous_P2P is an unknown quantity at this point
Help

Hey,

Im looking for some help in GS1 scripting, I know most people dont want it on on there servers, but Ive heard from friends that it helps with GS2, so my problem is I am confused on how flags and strings work. For my little starting out project, I have a simple command:

// NPC made by TheFox
if (created) {

showcharacter;
setcharprop #3,head0.png;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
}
if (playertouchsme) {move 26.5,-4,10,0;

freezeplayer 10;

sleep 10;

}


//The NPC player moves to the specified spot in the level(Which is on top of a pillar) and there is a second npc that moves to another pillar. When both npcs are on top of the pillars I want a door to open, How should I accomplish this?

(If it has nothing to do with strings or flags can someone please still explain them)
Reply With Quote
  #2  
Old 03-05-2007, 09:29 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
HTML Code:
if (playertouchsme) {
move 26.5,-4,10,0;
freezeplayer 10;
sleep 10;
TRIGGERACTION npcx, npcy, foundPOSITION,;
}
Don't forget to change the npcx, npcy with the other NPC's position!
You'd then add this in to the other NPC
HTML Code:
if (created){
  setshape 1, 32, 32;
}
if (actionfoundPOSITION){
  this.hasfound++;
  if (this.hasfound >= 2){
    hide;
  }
}
You'd just call the same action twice, for both statues
Reply With Quote
  #3  
Old 03-05-2007, 02:56 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
http://wiki.graal.us/GScript, scroll down to the bottom Fox and read the translation, learn GS2, Yes GS1 and GS2 are similar but it's like c and C++, Yes C++ will read C but there some weird things that happen when you use C in C++, some scripts wont behave right or unwanted results will happen, Learn GS2, and quit leaving GS1 scripts all over Niromia, keep in a test room. :]
__________________
Deep into the Darkness peering...
Reply With Quote
  #4  
Old 03-05-2007, 05:57 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Angel_Light View Post
http://wiki.graal.us/GScript, scroll down to the bottom Fox and read the translation, learn GS2, Yes GS1 and GS2 are similar but it's like c and C++, Yes C++ will read C but there some weird things that happen when you use C in C++, some scripts wont behave right or unwanted results will happen, Learn GS2, and quit leaving GS1 scripts all over Niromia, keep in a test room. :]
GScript and GScript2 really aren't anything like C and C++. GScript2 is not an extension to old GScript like C++ was to C; GScript2 is a replacement language, and old GScript and GScript2 ideally shouldn't be mixed.
__________________
Skyld
Reply With Quote
  #5  
Old 03-05-2007, 10:59 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
I was using a metaphor skyld and isnt GS1 derived from torque, C, and C# or something? I also figured that GS2 was an extension since it could still mostly read GS1, oh well, my bad.
__________________
Deep into the Darkness peering...
Reply With Quote
  #6  
Old 03-06-2007, 12:41 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Analogies are interperative, so neither of you are wrong or right. YAY!
__________________
Reply With Quote
  #7  
Old 03-06-2007, 03:06 AM
MrAnonymous_P2P MrAnonymous_P2P is offline
Retired Oldbie
MrAnonymous_P2P's Avatar
Join Date: Oct 2006
Location: Cambodia
Posts: 722
MrAnonymous_P2P is an unknown quantity at this point
Im going to continue learning gs1 since it works in editor and when the v.2 editor comes out(Omega ;D ) then Ill start learning gs2

Last edited by MrAnonymous_P2P; 03-06-2007 at 03:10 AM.. Reason: lolz roflcopter on spelling lolz
Reply With Quote
  #8  
Old 03-06-2007, 03:31 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by MrAnonymous_P2P View Post
Im going to continue learning gs1 since it works in editor and when the v.2 editor comes out(Omega ;D ) then Ill start learning gs2
You might never learn GS2 then!
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #9  
Old 03-06-2007, 04:03 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by Kristi View Post
Analogies are interperative, so neither of you are wrong or right. YAY!
lol, Napo is right Fox, I can't really teach until I have mostly learned GS2, MUD are giving problems, when I have some free time I teach you some GS2. Twinny's GS2 site might help you. http://twinny.vip.graal.net/
__________________
Deep into the Darkness peering...
Reply With Quote
  #10  
Old 03-06-2007, 04:18 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Angel_Light View Post
lol, Napo is right Fox, I can't really teach until I have mostly learned GS2
I didn't mean it that way .

I meant that we might never see a GS2 editor.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #11  
Old 03-06-2007, 04:27 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by napo_p2p View Post
I didn't mean it that way .

I meant that we might never see a GS2 editor.
Well... there's always that too, but if you can understand the GS1 commands.rtf you should be ready to start with GS2.
__________________
Deep into the Darkness peering...
Reply With Quote
  #12  
Old 03-06-2007, 06:37 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by Angel_Light View Post
Twinny's GS2 site might help you. http://twinny.vip.graal.net/
On that note, the site is about to recieve a sexy overhaul which should inspire me to do actual work .
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 11:06 AM.


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