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 04-17-2003, 05:49 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
Clock

I'm sure we were all excited when we created our first clock... this my first. I did it through trial and error w/o looking at any other sources. It's good cuz i just learned trig a few weeks ago so i can finally use the knowledge i just learned in something useful. thought i'd share my discovery with the world thou theres probably a million clocks out there already.
Attached Files
File Type: nw clock.nw (10.2 KB, 230 views)
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #2  
Old 04-17-2003, 03:08 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to Chrisz
Thats not that bad.. but the numbers/hands are a little off :P I haven't ever tried anything like that.. O.o; and im a scripter.. o.O
__________________
-Chrisz
Reply With Quote
  #3  
Old 04-17-2003, 03:35 PM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
Give me the exact value of pi and i'll give you the perfect clock. and also this isn't by far my best npc, it's just the first npc i made that involves showpoly and trig
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #4  
Old 04-17-2003, 03:37 PM
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
3.141592654

That's as far as my calculator goes.
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #5  
Old 04-17-2003, 03:46 PM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
Exact value of pi to the millionth digit:
http://www.ecst.csuchico.edu/~tchung/pi_val.html
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #6  
Old 04-17-2003, 04:14 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to Chrisz
Even if you didnt have the exact value its down to your x/y that you put.. its different from that of the clock hand
__________________
-Chrisz
Reply With Quote
  #7  
Old 04-17-2003, 04:27 PM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
Quote:
Originally posted by Chrisz
Even if you didnt have the exact value its down to your x/y that you put.. its different from that of the clock hand
Yea you're probably right... but i'll be satisfied with what i did now considering i just started trig
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #8  
Old 04-17-2003, 04:57 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
Very nice Poki. =)
By the way,Jagen already made a nice clock too,do a forum search and you will see..
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #9  
Old 04-17-2003, 10:27 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Nice, make the text go a color when the min hand is on it (e.g: Green)

So we can quickly read the time due to the x/y error.
__________________
--Spark911
Reply With Quote
  #10  
Old 04-17-2003, 10:35 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 Pokilty
Exact value of pi to the millionth digit:
http://www.ecst.csuchico.edu/~tchung/pi_val.html
millionths are
3.141592
Reply With Quote
  #11  
Old 04-17-2003, 11:11 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Python523
millionths are
3.141592
Yes, those are millionths. But the millionth digit is far more off.
Reply With Quote
  #12  
Old 04-17-2003, 11:16 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 Loriel

Yes, those are millionths. But the millionth digit is far more off.
when i saw that he say millionth i thought he said millionths *shrugs*
Reply With Quote
  #13  
Old 04-17-2003, 11:22 PM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
i mean 1 million digits after the decimal.
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #14  
Old 04-18-2003, 02:30 AM
PrinceDark PrinceDark is offline
Criminal X
PrinceDark's Avatar
Join Date: Feb 2003
Location: Miami, Florida
Posts: 662
PrinceDark will become famous soon enough
Thumbs up

Nice Clock.
The hour hand is missing though.
__________________
- Criminal X: certified nut case
Reply With Quote
  #15  
Old 04-18-2003, 04:29 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Pretty impressive my friend Just make it compatible with Timevar and you've made something useful
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #16  
Old 04-18-2003, 05:02 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
i did make it compatible with timevar, but it's already up on a server. also i left the hour hand out cuz it was just a quick test
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #17  
Old 04-18-2003, 10:04 PM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
Graal recognizes the value of "pi" as 3.14..whatever as far as i've seen, try using that?
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #18  
Old 04-18-2003, 11:03 PM
draygin draygin is offline
Telmont Bandit
draygin's Avatar
Join Date: Feb 2002
Location: Ohio
Posts: 2,550
draygin is on a distinguished road
Quote:
Originally posted by Pokilty
Exact value of pi to the millionth digit:
http://www.ecst.csuchico.edu/~tchung/pi_val.html
I think this one is bigger. x.x but I'm not sure its not done loading yet so I cant tell yet.

3.141592653589793238462643383279502884197169399375 105820974944592.jp/


grr it abbreviates the url
there just put http:// infront of 3.14 (with out www.) It's still going ;x way big..
ack its freezing up my internet explorer x.x maybe its actually caluclating it and not just some numbers some one put up... hmm.. will see if its going in an hour
__________________

I stole Spanky's gold!
Reply With Quote
  #19  
Old 04-19-2003, 06:29 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
type "pi" in graal

it goes like all the digits graal supports....


... like houdiniman said..
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly

Last edited by adam; 04-19-2003 at 07:00 AM..
Reply With Quote
  #20  
Old 04-19-2003, 10:30 PM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
oh great i didn't know that... thanks
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #21  
Old 04-20-2003, 07:46 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
Quote:
Originally posted by adam
type "pi" in graal

it goes like all the digits graal supports....


... like houdiniman said..
Honestly I know that for like 1 week O_o'...
I was always making a var to give a value to pi. (e.g PI=3.14..)
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #22  
Old 04-21-2003, 05:44 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
Me too every script I put pi=3.14. I haven't tried not putting that in before, I'll try it later when I have more time. I'm sure that they know what they're talking about though.
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #23  
Old 04-21-2003, 08:58 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Ok, after doing a little looking for pi I found a few methods to get it.

NPC Code:

PI = 4*( (4*arctan(1/5)) - arctan(1/239) );



I also tried to script Buffon's prabability method but it doesn't work too well.
Attached Files
File Type: nw needle.nw (10.5 KB, 110 views)
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #24  
Old 04-24-2003, 11:15 AM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by Pokilty
Exact value of pi to the millionth digit:
http://www.ecst.csuchico.edu/~tchung/pi_val.html
You'll get one heck of a laggy script if you're using that...
hey, isn't pi a set variable?
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #25  
Old 04-24-2003, 08:36 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
Quote:
Originally posted by adam
NPC Code:

PI = 4*( (4*arctan(1/5)) - arctan(1/239) );


Could you explain me how arctan works? x.x'
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #26  
Old 04-24-2003, 10:27 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by osrs


Could you explain me how arctan works? x.x'

It does what tangent does in reverse.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #27  
Old 04-24-2003, 10:28 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by GoZelda

You'll get one heck of a laggy script if you're using that...
hey, isn't pi a set variable?

You only need to put it in to a certain number of decimal places, graal doen't support all that many... And pi is built in and already set to the number of decimal places graal supports. or cares about.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #28  
Old 04-24-2003, 10:32 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
Quote:
Originally posted by adam
It does what tangent does in reverse.
so helpfull...¬_¬'
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #29  
Old 04-24-2003, 11:42 PM
draygin draygin is offline
Telmont Bandit
draygin's Avatar
Join Date: Feb 2002
Location: Ohio
Posts: 2,550
draygin is on a distinguished road
Quote:
Originally posted by osrs


so helpfull...¬_¬'
Tangent

Making contact at a single point or along a line; touching but not intersecting.
Irrelevant.

n.
A line, curve, or surface meeting another line, curve, or surface at a common point and sharing a common tangent line or tangent plane at that point.
Abbr. tan Mathematics. The trigonometric function of an acute angle in a right triangle that is the ratio of the length of the side opposite the angle to the length of the side adjacent to the angle.
A sudden digression or change of course: went off on a tangent during the courtroom argument.
Music. An upright pin in a keyboard instrument, especially in a clavichord, that rises to sound a string when a key is depressed and stops the string at a preset length to set the pitch.


--------------------------------------------------------------------------------
[Latin (lnea) tangns, tangent-, touching (line), present participle of tangere, to touch. See tag- in Indo-European Roots.]

I think this really helps just think of it as being the opposite of this.
__________________

I stole Spanky's gold!
Reply With Quote
  #30  
Old 04-25-2003, 01:40 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
is that the same as inverse tangent?
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #31  
Old 04-25-2003, 06:45 AM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
you lost me guys i was just testing out simple trig with my clock npc.
__________________
"I have not failed. I've just found 10,000 ways that won't work."
"Logic is in the eye of the logician."
Reply With Quote
  #32  
Old 04-25-2003, 09:30 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
Quote:
Originally posted by Pokilty
you lost me guys i was just testing out simple trig with my clock npc.
We had some relevant questions to tack on
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

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 01:47 AM.


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