Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-06-2001, 07:48 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
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.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #2  
Old 12-06-2001, 07:52 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
check for a thread about it posted by poogle
i gave him the circular ones
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #3  
Old 12-06-2001, 07:53 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
no need
since im such a nice guy i got you a link
http://forums.graal2001.com/forums/s...threadid=18326
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #4  
Old 12-06-2001, 08:04 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
thanks.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #5  
Old 12-08-2001, 10:10 AM
ShockwaveISTHEBEST ShockwaveISTHEBEST is offline
Registered User
Join Date: Nov 2001
Location: never never land
Posts: 208
ShockwaveISTHEBEST is on a distinguished road
Send a message via AIM to ShockwaveISTHEBEST Send a message via Yahoo to 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.
Reply With Quote
  #6  
Old 12-08-2001, 04:08 PM
Kumada Kumada is offline
Ded
Kumada's Avatar
Join Date: Nov 2001
Location: Usa
Posts: 1,088
Kumada is on a distinguished road
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
__________________
Aim: Mmm Kumada

Reply With Quote
  #7  
Old 12-08-2001, 09:29 PM
ShockwaveISTHEBEST ShockwaveISTHEBEST is offline
Registered User
Join Date: Nov 2001
Location: never never land
Posts: 208
ShockwaveISTHEBEST is on a distinguished road
Send a message via AIM to ShockwaveISTHEBEST Send a message via Yahoo to 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.
__________________
[img]http://rick.*******ers.net/ss/users/jerrytyrrell64/Shockwave%20Sig%2003.jpg[/img]
Reply With Quote
  #8  
Old 12-09-2001, 07:19 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #9  
Old 12-09-2001, 07:32 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Quote:
You shouldn't talk, strequals and trigger action are even easier and you needed help on them
Ha ha.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #10  
Old 12-09-2001, 08:48 AM
ShockwaveISTHEBEST ShockwaveISTHEBEST is offline
Registered User
Join Date: Nov 2001
Location: never never land
Posts: 208
ShockwaveISTHEBEST is on a distinguished road
Send a message via AIM to ShockwaveISTHEBEST Send a message via Yahoo to 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
__________________
[img]http://rick.*******ers.net/ss/users/jerrytyrrell64/Shockwave%20Sig%2003.jpg[/img]
Reply With Quote
  #11  
Old 12-09-2001, 08:49 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
triggeraction is a VERY useful command
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #12  
Old 12-09-2001, 01:13 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #13  
Old 12-09-2001, 02:12 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ...
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 07:17 PM.


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