Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   TGC's School of Script: docu_emitters.txt (https://forums.graalonline.com/forums/showthread.php?t=60909)

ForgottenLegacy 09-01-2005 02:55 AM

TGC's School of Script: docu_emitters.txt
 
1 Attachment(s)
Well, as promised, I have written an emitters tutorial docu. It is basically the post I made a while back, but I added a few more things this time around. I am still trying to learn more about emitters, so yeah. I don't know everything about them but I do plan to when I get enough time to. Anyway, here's the document.

<3 ^^

EDIT: Always scroll down if there are more than one posts by me on this thread; I might have uploaded a newer version of the docu.

EDIT: Added 'emitter.particle.spin'

ForgottenLegacy 09-02-2005 12:56 AM

Questions, comments, thoughts? o-o I know the paragraph about the modifiers is rather... hard to understand, but yeah. Anything anyone wants to say? z-z

Polo 09-02-2005 01:28 AM

Quote:

Originally Posted by ForgottenLegacy
Questions, comments, thoughts? o-o I know the paragraph about the modifiers is rather... hard to understand, but yeah. Anything anyone wants to say? z-z

You left out 'emitter.particle.spin' I think (Spins each particle by what value you give this each tick (in radians? not tested...)), but apart from that minor quible, it looks good. ^^

calani 09-03-2005 04:27 AM

Quible!
All hail the quible!


oh, and good work, tgc. ^^
I'll look at the docu in little awhile.

ForgottenLegacy 09-03-2005 05:06 AM

1 Attachment(s)
Under popular demand, this is the script Stefan released on emitters.

EDIT: If this post is actually illegal for some reason, then delete it. o-o I don't think it violates Rule 2, so yeah. I should be safe with this post. o-o

CheeToS2 09-03-2005 09:13 AM

I have written a reference document with some more functions/explanations/error corrections here:
http://ilfirin.org/graal/Particle_Engine

Admins 09-03-2005 05:35 PM

Thanks for the particle engine docu, I think I will combine them and add some stuff to complete the documentation. I will need to explain how the emitter works.
PS: addemitmodifier - modifies the "default" emitter.particle, can be used if you want to emit bigger particles each time (zoom), or emit the particles in a ring (angle).
addglobalmodifier - is modifying all particles, can be used for effects like graviation or if you want to change the angle, color, spin etc. of all particles at once using an impulse
spin - for letting particles rotate automatically and changing the rotation speed
checkbelowterrain - destroys the particle if it falls below the terrain, which means the z value is below the terrain height (or 0 on flat maps), similar to projectiles
clippingbox - {xd1,yd1,zd1, xd2,yd2,zd2} - defines a box around the emitter, particles are automatically destroyed when they leave that box

ForgottenLegacy 09-03-2005 05:41 PM

Quote:

Originally Posted by Stefan
Thanks for the particle engine docu, I think I will combine them and add some stuff to complete the documentation. I will need to explain how the emitter works.
PS: addemitmodifier - modifies the "default" emitter.particle, can be used if you want to emit bigger particles each time (zoom), or emit the particles in a ring (angle).
addglobalmodifier - is modifying all particles, can be used for effects like graviation or if you want to change the angle, color, spin etc. of all particles at once using an impulse
spin - for letting particles rotate automatically and changing the rotation speed
checkbelowterrain - destroys the particle if it falls below the terrain, which means the z value is below the terrain height (or 0 on flat maps), similar to projectiles
clippingbox - {xd1,yd1,zd1, xd2,yd2,zd2} - defines a box around the emitter, particles are automatically destroyed when they leave that box

Okay, Stefan, you're simply awesome. :D I'll add all of that to the docu.

Anyway, a note on the emitter NPC that Stefan released: You need to press a number on your keyboard between 1 thru 8 to see different effects. Look for each numerical case inside the script to see just how Stefan scripted it. :D

Also, please advertise when you release the official documentation on emitters. I'd love to see the docu once it's finished :D

ForgottenLegacy 09-03-2005 07:57 PM

1 Attachment(s)
Okay, here's the new emitter docu. As stated, I will take responsibility for keeping the emitters reference on GraalWiki up-to-date. The GraalWiki entry was made by CheeToS (CheeToS2), so give him props for it. :D

http://ilfirin.org/graal/Particle_Engine

Anyway, here's the latest docu_emitters.txt:

Admins 09-03-2005 11:48 PM

Ok I have added my docu, which is partly based on TGCs docu, to the Wiki, I have not removed the old stuff though (its still at the end of the wiki page) even if most of it is already mentioned by my text. It is currently missing examples and such, so there could be a few chapters which are explaining more how to use it, with concrete values. I can also imagine a list + pictures of possible particle effects. The tornado and the falling leaves are examples for "uncommon" particle effects which can be quite interesting.

darkblade098x 02-13-2006 02:22 AM

A little old but...
 
1 Attachment(s)
I know this thread is considerable old... but I was able to make an
emitter thanks to you, TGC. ^^

Here's a pic of what I did:

talkingnoodle 02-13-2006 02:23 AM

howd you do that offline? O_O

Ajira 02-13-2006 02:33 AM

Quote:

Originally Posted by talkingnoodle
howd you do that offline? O_O

Who said anything about offline?

talkingnoodle 02-13-2006 02:37 AM

o_O

darkblade098x 02-14-2006 04:09 AM

Quote:

Originally Posted by talkingnoodle
howd you do that offline? O_O

It's an online script. >_<


All times are GMT +2. The time now is 10:29 AM.

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