Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Moving Light effects. (https://forums.graalonline.com/forums/showthread.php?t=18393)

Torankusu 12-06-2001 07:48 AM

Moving Light effects.
 
Could somebody post a sample script?

I need to know the script for it to move is, and it somewhat explained. (What moves it, the directions, the speed, whatever.)
Thanks.

AlexH 12-06-2001 07:52 AM

check for a thread about it posted by poogle
i gave him the circular ones

AlexH 12-06-2001 07:53 AM

no need
since im such a nice guy i got you a link
http://forums.graal2001.com/forums/s...threadid=18326

Torankusu 12-06-2001 08:04 AM

thanks. :)

ShockwaveISTHEBEST 12-08-2001 10:10 AM

well move is just
move x,y,speed,options
you know x and y (hopefully) ,and speed is the ammount of seconds to do it in, and there are a ton of options so for now just use this.
to get it to loop do this for example

you start out with this:

if (created) {
setimg light2.png;
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
setcoloreffect 1,1,1,0.99;
drawaslight;
}


then you just add your move in like this:

if (created) {
setimg light2.png;
dontblock;
}

if (timeout) {
move 10,10,2,4 //the 4 in the options slot makes it stop at a wall
timeout=.5

//#CLIENTSIDE
if (playerenters) {
setcoloreffect 1,1,1,0.99;
drawaslight;
}

Then it will not go on walls it will move 10 tiles and loop.
;)

Kumada 12-08-2001 04:08 PM

Quote:

Originally posted by ShockwaveISTHEBEST
well move is just
move x,y,speed,options
you know x and y (hopefully) ,and speed is the ammount of seconds to do it in, and there are a ton of options so for now just use this.
to get it to loop do this for example

you start out with this:

if (created) {
setimg light2.png;
dontblock;
}
//#CLIENTSIDE
if (playerenters) {
setcoloreffect 1,1,1,0.99;
drawaslight;
}


then you just add your move in like this:

if (created) {
setimg light2.png;
dontblock;
}

if (timeout) {
move 10,10,2,4 //the 4 in the options slot makes it stop at a wall
timeout=.5

//#CLIENTSIDE
if (playerenters) {
setcoloreffect 1,1,1,0.99;
drawaslight;
}

Then it will not go on walls it will move 10 tiles and loop.
;)

zips right to the bottem corner ;p

ShockwaveISTHEBEST 12-08-2001 09:29 PM

well its not supposed to but anyway if toran cant script and wants to learn move (the worlds simplist command) he should just read the new features.

Python523 12-09-2001 07:19 AM

Quote:

Originally posted by ShockwaveISTHEBEST
well its not supposed to but anyway if toran cant script and wants to learn move (the worlds simplist command) he should just read the new features.
You shouldn't talk, strequals and trigger action are even easier and you needed help on them

Sennema 12-09-2001 07:32 AM

Quote:

You shouldn't talk, strequals and trigger action are even easier and you needed help on them
Ha ha.

ShockwaveISTHEBEST 12-09-2001 08:48 AM

well whats the point of triggeraction what kinds of things can you do with them I dont know why noone can explaine them its not my fault move is very simple though

AlexH 12-09-2001 08:49 AM

triggeraction is a VERY useful command

Python523 12-09-2001 01:13 PM

Quote:

Originally posted by ShockwaveISTHEBEST
well whats the point of triggeraction what kinds of things can you do with them I dont know why noone can explaine them its not my fault move is very simple though
OK, I'll explain to you what trigger action does, but first one thing:
1.) Making fun of people will most likely get you flamed

Now for triggeraction:
Triggeraction will allow you to trigger a certain action on the level which can be read by:
if (actionname) {blah;}
Triggeraction is what it used in the mining job I believe, it is also used for the catch net
read the newfeatures.txt for a good explanation of it which includes a sample script

nyghtGT 12-09-2001 02:12 PM

Quote:

Originally posted by ShockwaveISTHEBEST
well whats the point of triggeraction what kinds of things can you do with them I dont know why noone can explaine them its not my fault move is very simple though
err, almost every job script on graal 2001 uses triggeraction triggeraction is used to make actions occur at specific points ... it is a very very VERY useful command ...


All times are GMT +2. The time now is 09:41 AM.

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