Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Old Scripting Engine (GS1) (https://forums.graalonline.com/forums/forumdisplay.php?f=154)
-   -   Help (https://forums.graalonline.com/forums/showthread.php?t=72609)

MrAnonymous_P2P 03-05-2007 06:24 AM

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)

Chandler 03-05-2007 09:29 AM

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^^

Angel_Light 03-05-2007 02:56 PM

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. :]

Skyld 03-05-2007 05:57 PM

Quote:

Originally Posted by Angel_Light (Post 1285043)
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.

Angel_Light 03-05-2007 10:59 PM

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.

Kristi 03-06-2007 12:41 AM

Analogies are interperative, so neither of you are wrong or right. YAY!

MrAnonymous_P2P 03-06-2007 03:06 AM

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

napo_p2p 03-06-2007 03:31 AM

Quote:

Originally Posted by MrAnonymous_P2P (Post 1285340)
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!

Angel_Light 03-06-2007 04:03 AM

Quote:

Originally Posted by Kristi (Post 1285247)
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/

napo_p2p 03-06-2007 04:18 AM

Quote:

Originally Posted by Angel_Light (Post 1285362)
lol, Napo is right Fox, I can't really teach until I have mostly learned GS2

I didn't mean it that way :redface:.

I meant that we might never see a GS2 editor.

Angel_Light 03-06-2007 04:27 AM

Quote:

Originally Posted by napo_p2p (Post 1285366)
I didn't mean it that way :redface:.

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.

Twinny 03-06-2007 06:37 AM

Quote:

Originally Posted by Angel_Light (Post 1285362)
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 ^^.


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

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