Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Shorter ways of scripting? (https://forums.graalonline.com/forums/showthread.php?t=52982)

WanDaMan 06-03-2004 09:52 PM

Shorter ways of scripting?
 
Well.. Say I wanted to make a few movies like the ones Shaded Legends had, is there a way to make the script short instead of writing loads..
Like
NPC Code:

//#CLIENTSIDE
if(created){
dir = 3;
setcharani walk,;
move 10,0,3,0;
sleep 3;

dir = 2;
move 0,10,3,0;
sleep 3;

dir = 3;
move 10,0,3,0;
sleep 3;
}


Over and over again.. So I was wondering if it could be made shorter..? or be shortend..
Any suggestions might help :)

Python523 06-03-2004 11:31 PM

make a gani movie?

Ningnong 06-04-2004 12:22 AM

Alt+6 Records you in an offline level. A text file (script) is then saved in your Graal2001 folder. Works wonders for moves. ;)

DarkShadows_Legend 06-04-2004 12:31 AM

Heh. I used alt+6 one time to see how I pk, but it only works offline. I would like to see how I pk online. That would be cool. :)
Gani movie is a nice way to go to make those type of cut-scenes.

Jagen, I got a question though. Is there a variable that gives the length of a gani movie?

Xecutor 06-04-2004 04:28 AM

And if you don't want to make a gani movie there is also the option of making it with an animated graphic file, but that is quite hard.

zokemon 06-04-2004 08:52 AM

Just make a template script that you import strings and variables into.
DUH.
*coughduhisajokecough*

WanDaMan 06-04-2004 10:35 AM

But it'd still be a bit long Zero..
I might try that alt + 6 recording feature, thanks guys :]

I'd try a gani, but that's just mad!!
Same for GFX too :)

Thanks for replying :]

edit
alt + 6 uses x += 1; etc :(

Ningnong 06-04-2004 04:56 PM

yes, but if its going to be for individual viewing, then whats wrong with a timeout of 0.05 clientside. It will look like a normal player.

Dach 06-05-2004 07:48 PM

Quote:

Originally Posted by DarkShadows_Legend
Jagen, I got a question though. Is there a variable that gives the length of a gani movie?

nope

gani movie is your best bet, a complicated movie will be much much more efficiently run through a gani movie than a bunch of scripts, or one big script


All times are GMT +2. The time now is 04:43 PM.

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