Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-01-2005, 02:55 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Talking TGC's School of Script: docu_emitters.txt

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'
Attached Files
File Type: txt docu_emitters-1.03.txt (9.2 KB, 678 views)
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight

Last edited by ForgottenLegacy; 09-02-2005 at 02:20 AM..
Reply With Quote
  #2  
Old 09-02-2005, 12:56 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to 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
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #3  
Old 09-02-2005, 01:28 AM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
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.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote
  #4  
Old 09-03-2005, 04:27 AM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
Quible!
All hail the quible!


oh, and good work, tgc.
I'll look at the docu in little awhile.
__________________
Reply With Quote
  #5  
Old 09-03-2005, 05:06 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
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
Attached Files
File Type: txt weaponStefan%047Emitters%032Demo.txt (17.0 KB, 1220 views)
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #6  
Old 09-03-2005, 09:13 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
I have written a reference document with some more functions/explanations/error corrections here:
http://ilfirin.org/graal/Particle_Engine
Reply With Quote
  #7  
Old 09-03-2005, 05:35 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
Reply With Quote
  #8  
Old 09-03-2005, 05:41 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
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. 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.

Also, please advertise when you release the official documentation on emitters. I'd love to see the docu once it's finished
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #9  
Old 09-03-2005, 07:57 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
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.

http://ilfirin.org/graal/Particle_Engine

Anyway, here's the latest docu_emitters.txt:
Attached Files
File Type: txt docu_emitters-1.10.txt (10.4 KB, 295 views)
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #10  
Old 09-03-2005, 11:48 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #11  
Old 02-13-2006, 02:22 AM
darkblade098x darkblade098x is offline
Green Eggs and Ham
darkblade098x's Avatar
Join Date: Apr 2005
Location: Massachusetts, USA
Posts: 14
darkblade098x is on a distinguished road
Send a message via AIM to darkblade098x
A little old but...

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:
Attached Thumbnails
Click image for larger version

Name:	graal_1139789901.png
Views:	271
Size:	88.7 KB
ID:	35539  
__________________
Reply With Quote
  #12  
Old 02-13-2006, 02:23 AM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
howd you do that offline? O_O
__________________


AIM: Rapidwolve Graal
MSN: [email protected]


2/12/06 - Crossroads NPC Admin
Reply With Quote
  #13  
Old 02-13-2006, 02:33 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by talkingnoodle
howd you do that offline? O_O
Who said anything about offline?
__________________
Liek omigosh.

Reply With Quote
  #14  
Old 02-13-2006, 02:37 AM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
o_O
__________________


AIM: Rapidwolve Graal
MSN: [email protected]


2/12/06 - Crossroads NPC Admin
Reply With Quote
  #15  
Old 02-14-2006, 04:09 AM
darkblade098x darkblade098x is offline
Green Eggs and Ham
darkblade098x's Avatar
Join Date: Apr 2005
Location: Massachusetts, USA
Posts: 14
darkblade098x is on a distinguished road
Send a message via AIM to darkblade098x
Quote:
Originally Posted by talkingnoodle
howd you do that offline? O_O
It's an online script.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:58 PM.


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