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, 06:04 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
flag thing

I'm not really posting this to show support for the war, I just think it looks cool. I've started on the German and UK flags, but they don't look that great yet. Anyhow, enjoy!
(press num keys to change wind)
Attached Files
File Type: zip flag.zip (1.6 KB, 188 views)
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #2  
Old 04-17-2003, 06:07 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
screenies
Attached Thumbnails
Click image for larger version

Name:	flag.png
Views:	228
Size:	34.6 KB
ID:	23531  
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #3  
Old 04-17-2003, 06:12 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

Very nice npc you got there.
__________________
- Criminal X: certified nut case
Reply With Quote
  #4  
Old 04-17-2003, 07:17 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
Quote:
Originally posted by Kaimetsu
Pretty cool, but:

Sleep = bad.
Why use string arrays? A normal array with some sort of code would be infinitely better. This kind of script shouldn't use any kind of strings at all.
Your method for determining shadow is a little iffy. It looks okay, but it could look better.
Too many trigonometric calls! It would be better to use some simple vector stuff - both faster and more realistic.
hehe, yeah, I know, I was just lazy today and didn't feel like making it too realistic. Heck, I just happened upon that method of making it wave, I was going to let it stay as a simple sin wave.

Oh, I get it, you're a little upset cause I didn't finish the British flag before posting this. Hehe... yep, I definately need some sleep
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #5  
Old 04-17-2003, 08:16 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
Impressive, I definitely approve of the results.
__________________
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
  #6  
Old 04-17-2003, 03:39 PM
Pokilty Pokilty is offline
Registered User
Join Date: Nov 2002
Posts: 101
Pokilty is on a distinguished road
That's a pretty cool flag there i like it a lot
__________________
"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
  #7  
Old 04-17-2003, 05:04 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..
__________________
"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
  #8  
Old 04-18-2003, 01:05 AM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
NICE LEVEL DUDE!
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #9  
Old 04-18-2003, 02:02 AM
Jeff Jeff is offline
Registered User
Join Date: Oct 2002
Location: Nebraska, USA
Posts: 707
Jeff is on a distinguished road
A bit inefficient, like Kai said.

And a German flag should be easy, like France etc. Simple stripes


UK will be a bit trickier because of the red diagonal stripes needing to be in the white ones and still look good.
__________________
Jeff, the Archduke of Dustari
Member of the LAT on Graal The Adventure
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d+ s++:+ !a C++ UL+(UL+++)@ P+ L+(++)>+++ E---- W++@ N- !o ?K w(w--) !O !M@ !V PS- PE+ Y PGP t+ 5 X R tv(tv+) b++(b+)>b++++ DI(DI+) D-- G e->e++++ h! !r y
------END GEEK CODE BLOCK------
Reply With Quote
  #10  
Old 04-18-2003, 05:57 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
I ditched the polygons and found a bunch of flag images online, so now the script is more efficient (save the mass of trig crap, hehe). Well, I really just wanted to see if I could make an image like a flag out of pure gscript (idea came before polygons, when it was more of a challenge), but this is more entertaining, nay?
Attached Files
File Type: zip flag2.zip (186.4 KB, 160 views)
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #11  
Old 04-18-2003, 06:33 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
I made something similar in 70 minutes. almost on the dot.
Attached Files
File Type: zip flagstuff.zip (2.5 KB, 164 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
  #12  
Old 04-18-2003, 05:47 PM
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
Quote:
Originally posted by adam
I made something similar in 70 minutes. almost on the dot.
cept that is basically a sine wave, in that the perceptive length of the flag does not change, it merely moves up and down. Still looks cool though, I like to watch the shaded part of the flag move across the screen, it's so mesmerizing...
*drools on keyboard* KZZZZAAAPP!!!!
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #13  
Old 04-18-2003, 06:12 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 Dach


cept that is basically a sine wave, in that the perceptive length of the flag does not change, it merely moves up and down. Still looks cool though, I like to watch the shaded part of the flag move across the screen, it's so mesmerizing...
*drools on keyboard* KZZZZAAAPP!!!!
Yeah that's why I said similar

Yours is better at mimicing how it is, mine just looks sharper for what it does.

It can get pretty darn funky if you mess with the 2 values that control most of it.

this.power and this.wind I believe

this.power being how much it moves up and down

and this.wind being how much it increments the angle being used. which is rather vital it totally changes how it looks when moved like .0001

If you increment the angle pi but a little off it will be like there are 2 transparent flags waving in the wind.
__________________
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
  #14  
Old 04-22-2003, 07:30 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
Omi, I LOVE the original one! It's LEETO! Shadows and 3d stuff are not my cup of tea, but I love it! I mean, the whole American Flag makes it like 100x better XP. From me, I give it a 9.9994 out of a 10. You lost a slight bit for the movement style.
I must say, the 2nd one is a bit different. I like it but I don't. The American flag gets you an automatic 9, so you get an A for effort, but a 9.4 overall (out of 10).
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #15  
Old 04-23-2003, 04:59 PM
Jeff Jeff is offline
Registered User
Join Date: Oct 2002
Location: Nebraska, USA
Posts: 707
Jeff is on a distinguished road
Quote:
Originally posted by Projectshifter
Omi, I LOVE the original one! It's LEETO! Shadows and 3d stuff are not my cup of tea, but I love it! I mean, the whole American Flag makes it like 100x better XP. From me, I give it a 9.9994 out of a 10. You lost a slight bit for the movement style.
I must say, the 2nd one is a bit different. I like it but I don't. The American flag gets you an automatic 9, so you get an A for effort, but a 9.4 overall (out of 10).
---Shifter

You give people high special credit for including an American flag in their stuff? That makes no sense. Admittedly the script does deserve high marks, but you should grade it the same as if it were a German flag, or a French flag, or any other flag.
__________________
Jeff, the Archduke of Dustari
Member of the LAT on Graal The Adventure
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d+ s++:+ !a C++ UL+(UL+++)@ P+ L+(++)>+++ E---- W++@ N- !o ?K w(w--) !O !M@ !V PS- PE+ Y PGP t+ 5 X R tv(tv+) b++(b+)>b++++ DI(DI+) D-- G e->e++++ h! !r y
------END GEEK CODE BLOCK------
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 08:38 PM.


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