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 11-11-2002, 09:19 AM
Zigidias Zigidias is offline
Registered User
Join Date: Nov 2002
Location: USA
Posts: 73
Zigidias is on a distinguished road
Send a message via AIM to Zigidias
Fancy twirling lights

Well, I was wondering... How do you make those fancy twirling lights. I'm not asking for a full script, just a tip on how to make them twirl in those circles and fancy lines how they do on some servers.
__________________
Reply With Quote
  #2  
Old 11-11-2002, 09:26 AM
Zigidias Zigidias is offline
Registered User
Join Date: Nov 2002
Location: USA
Posts: 73
Zigidias is on a distinguished road
Send a message via AIM to Zigidias
I thought it was something with arrays, I am not great with trig, can you give me an example, I am halfway done with algebraII right now
__________________
Reply With Quote
  #3  
Old 11-11-2002, 09:29 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
algebra II includes advanced Trig in my curriculum. O.o, Learn about Radians and Sin, Cos, Tan, and their inverses.. It will do you some good to know them.
__________________

subliminal message: 1+1=3
Reply With Quote
  #4  
Old 11-11-2002, 09:31 AM
Zigidias Zigidias is offline
Registered User
Join Date: Nov 2002
Location: USA
Posts: 73
Zigidias is on a distinguished road
Send a message via AIM to Zigidias
Quote:
Originally posted by Falcor
algebra II include advanced Trig in my curriculum. O.o, Learn about Radians and Sin, Cos, Tan, and their inverses.. It will do you some good to know them.
Ok, thanx, mayb i can get my hands on a full working script from someone later. I can learn from looking at stuff pretty easy.
__________________
Reply With Quote
  #5  
Old 11-11-2002, 10:09 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
try this script to see what each function does

NPC Code:

while (1==1) {
i+=.1;
showpoly 0,{x,y,x+sin(i),y};
message #v(i);
sleep .05;
}



It should give you a good idea of how they work.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #6  
Old 11-11-2002, 10:15 AM
Zigidias Zigidias is offline
Registered User
Join Date: Nov 2002
Location: USA
Posts: 73
Zigidias is on a distinguished road
Send a message via AIM to Zigidias
Quote:
Originally posted by Dach
try this script to see what each function does

NPC Code:

while (1==1) {
i+=.1;
showpoly 0,{x,y,x+sin(i),y};
message #v(i);
sleep .05;
}



It should give you a good idea of how they work.
Wow, It took a second to get but I think I understand. Thanx, I still dont understand sin all the way but I will expiriement with this.

Thanx
__________________
Reply With Quote
  #7  
Old 11-11-2002, 10:30 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
NPC Code:

PI=3.14;
while (1==1) { i+=0.1;
showpoly 0,{x,y,x+sin(i)*PI,y+cos(i)*PI};
sleep .05;
}



try this script,maybe would help...
Someone posted a site with things about trigonometry, search for it. =)
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /

Last edited by osrs; 11-11-2002 at 10:45 PM..
Reply With Quote
  #8  
Old 11-12-2002, 08:26 AM
Zigidias Zigidias is offline
Registered User
Join Date: Nov 2002
Location: USA
Posts: 73
Zigidias is on a distinguished road
Send a message via AIM to Zigidias
OMG osrs, that is exactly what i needed, thank you very much
__________________
Reply With Quote
  #9  
Old 11-14-2002, 11:00 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 osrs
NPC Code:

PI=3.14;
while (1==1) { i+=0.1;
showpoly 0,{x,y,x+sin(i)*PI,y+cos(i)*PI};
sleep .05;
}



try this script,maybe would help...
Someone posted a site with things about trigonometry, search for it. =)
why bother using pi as a radius...pi is usually the radian
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 03:25 AM.


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