Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-17-2007, 03:22 AM
RyDaze RyDaze is offline
Graal682686
RyDaze's Avatar
Join Date: Sep 2007
Location: Utopia
Posts: 43
RyDaze is an unknown quantity at this point
Send a message via AIM to RyDaze Send a message via MSN to RyDaze
Cool if (dontknow == "Particles") { player.help = true; }

Anywho if you didnt read the header, I need help with Particles. So could someone make a Tutorial? or Something??

__________________

Support Center | Forum Rules | Graal Staff Contacts

A little knowledge is dangerous. So is a lot.



Reply With Quote
  #2  
Old 09-17-2007, 03:38 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
If I had a dollar for every thread title in this section of the forums like this one...

http://wiki.graal.net/index.php/Particle_Engine
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #3  
Old 09-17-2007, 03:44 AM
PrinceOfKenshin PrinceOfKenshin is offline
That guy with a beard
PrinceOfKenshin's Avatar
Join Date: May 2004
Location: Ontario, Canada
Posts: 819
PrinceOfKenshin has a spectacular aura aboutPrinceOfKenshin has a spectacular aura about
Quote:
Originally Posted by coreys View Post
If I had a dollar for every thread title in this section of the forums like this one...

http://wiki.graal.net/index.php/Particle_Engine
aw you beat me to it =(
__________________


Quote:
Game Master (Server): Greetings PrinceOfKenshin, there are new posts on the forums that demand your urgent attention! God speed, the fate of the world is in your hands. If you fail, middle earth will forever be in the darkness and your children will be enslaved by McKain.
Reply With Quote
  #4  
Old 09-17-2007, 03:49 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Sorry, but if that's the same page in the wiki I remember, it doesn't help. At all. It's not written to 'help', but more as a reference.

I've yet to find a good tutorial on the particle engine. So no need to go all over him about it.
Reply With Quote
  #5  
Old 09-17-2007, 04:32 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally Posted by DustyPorViva View Post
Sorry, but if that's the same page in the wiki I remember, it doesn't help. At all. It's not written to 'help', but more as a reference.
It's good if you know how to script but don't know how to use the particle engine.
__________________
Reply With Quote
  #6  
Old 09-17-2007, 03:09 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by Googi View Post
It's good if you know how to script but don't know how to use the particle engine.
Yeah. o_o

And if you don't know how to script, why would you be trying to learn particles before learning how to script? :3
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #7  
Old 09-17-2007, 05:21 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
Hmmm we should eventually copy all the v4.0 release notes to the wiki, they were containing a lot of information about the particles, e.g.
http://forums.graalonline.com/forums...ad.php?t=62877
(not sure if you can see that thread)
Reply With Quote
  #8  
Old 09-17-2007, 06:31 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Well, personally, for me I learn by example.
That's my main problem with it, that it doesn't have a working example that I can mess around with.

EDIT: Just like the one in Stefan's link
That's what the wiki needs.
Reply With Quote
  #9  
Old 09-17-2007, 07:57 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
I'll be happy to make an example.
__________________
Do it with a DON!
Reply With Quote
  #10  
Old 09-18-2007, 01:12 PM
MrAnonymous_P2P MrAnonymous_P2P is offline
Retired Oldbie
MrAnonymous_P2P's Avatar
Join Date: Oct 2006
Location: Cambodia
Posts: 722
MrAnonymous_P2P is an unknown quantity at this point
I tried to learn particles first lol and failed miserably. I wouldn't try it kids.
Reply With Quote
  #11  
Old 09-18-2007, 03:17 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
with (findImg(200)) {
    
// Falling leaves

    // Emitter attributes
    
layer 2;
    
player.xplayer.y;
    
emitter.delaymin 0.1;
    
emitter.delaymax 0.3;
    
emitter.nrofparticles 5;
    
emitter.emissionoffset = {-12, -1550};
    
emitter.checkbelowterrain true;

    
// Basic particle attributes
    
emitter.particle.lifetime 20;
    
emitter.particle.zoom 2;
    
emitter.particle.image "mal_particle_rain.gif";
    
emitter.particle.rotation = -degtorad(10);

    
// Movement
    
emitter.particle.zangle = -1;
    
emitter.particle.speed 15;
    
emitter.particle.alpha 1;
    
emitter.particle.mode 0;

    
emitter.addglobalmodifier("impulse"0.20.2"zangle""multiply"0.950.95);
    
emitter.addlocalmodifier("impulse"020,  "zoom""add", -1.5, -.25);
    
emitter.addlocalmodifier("once"00"angle""replace"degtorad(260), degtorad(230));
    
emitter.addlocalmodifier("once"00"x""add", -6464);
    
emitter.addlocalmodifier("once"00"zoom""replace"0.61.2);
    
emitter.addlocalmodifier("range"0100000"speed""add"33);
  }
  
setTimer(0.1);
}
function 
onTimeOut() {
  
this.findImg(200);
  
this.i.player.xthis.i.player.y;
  if (
this.i.emitter.nrofparticles 200)  this.i.emitter.nrofparticles++;
  
setTimer(0.1);

Here's an old emitter I made for rain.
Image attached.

I believe I emulated wind in there, it's an old backup though, so I'm not sure.
Attached Images
 
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #12  
Old 09-24-2007, 06:51 AM
RyDaze RyDaze is offline
Graal682686
RyDaze's Avatar
Join Date: Sep 2007
Location: Utopia
Posts: 43
RyDaze is an unknown quantity at this point
Send a message via AIM to RyDaze Send a message via MSN to RyDaze
So.. that is basically against the rules of just posting the script... And if you didnt notice i asked for Tutorial not just a script.. I believe a tutorial is something that describes each action of a line.. So ya.. I really dont think thats a help, But thanks for trying..
__________________

Support Center | Forum Rules | Graal Staff Contacts

A little knowledge is dangerous. So is a lot.



Reply With Quote
  #13  
Old 09-24-2007, 08:18 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
2. Similarly, do not just post whole scripts for people as a response to their difficulties. If you wish to post a wordy solution, then please feel free; however, please do not post things that people can just copy and paste. It isn't helping people to learn just by doing so. If you'd like to show off your scripts to others, post them in the Code Gallery subforum.
He didn't break any rules. He didn't post because you asked, he posted for strictly teaching purposes. You may not have asked for it, but others, like me, learn by examples. Only reason it's against the rules is if he provided a script for someone who asked for one when they clearly aren't going to try to learn it on their own.
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:06 PM.


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