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-27-2006, 03:39 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Particle help

okay 2 questions. How can I make so the particle is draw under the player -_- I've tried layers and drawunderplayer and stuff. Also how can I make so other people see the particles aswell?

The wiki doesnt help much. The wiki really just gives you the command and not a full description T_T
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 04-27-2006, 04:05 AM
hotrian hotrian is offline
Who?
Join Date: May 2003
Location: Eatonville, Washington, 98328
Posts: 56
hotrian is on a distinguished road
Send a message via AIM to hotrian Send a message via MSN to hotrian
1)
NPC Code:
function onCreated(){
showimg(200,"",player.x,player.y);
with (findimg(200)) {
layer = 0;



2) You have to stick it into a gani
(see attachment)
You have to open a Gani file with notepad, or wordpad, or a program alike,
to put a script into it (atleast asfar as I know...)

Please excuse my poor excuse for a Particle Emitter btw
(Not how its coded, just what it does/lookslike ...)
Attached Files
File Type: gani H_Glow.gani (1.0 KB, 161 views)
__________________
Sometimes I wonder if I think too big.
Quote:
Originally Posted by Admins
I've moved the fox map to "levelstoobig/" because a terrain gmap of 1024x1024 levels is clearly too huge (the kingdoms main map is 40x40 and is already quite big). It was taking a lot of memory and was slowing down the computer.
Reply With Quote
  #3  
Old 04-27-2006, 04:09 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by hotrian
NPC Code:
function onCreated(){
showimg(200,"",player.x,player.y);
with (findimg(200)) {
layer = 0;

You may just do
HTML Code:
function onCreated() {
  with (findimg(200)) {
    layer = 0;
    ...
  }
}
The Wiki/Bible is also very helpful for particles: http://wiki.graal.net/index.php/Particle_Engine
Reply With Quote
  #4  
Old 04-27-2006, 08:27 AM
Raeiphon Raeiphon is offline
I never asked for this.
Join Date: Jun 2005
Posts: 855
Raeiphon is on a distinguished road
The bible fails to present any working examples of the engine in action, it's all basically syntax. I tinkered around with the system from a sample Skyld generously gave me, and I learnt most of what I utilize now from that.

EDIT:

You also dont have to put it in a gani. onWeaponFired() will suffice for that, I believe you'd have to set the localmodifer movex to playerx+1.5 though.

EDITx2:

Also, dont ever put it in onCreated(), as you'll have to remove the npc from every player using it unless you set a toggle.
__________________

I hope for nothing. I fear nothing. I am free.
Reply With Quote
  #5  
Old 04-27-2006, 09:39 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
ok thank you all ^.^ but still. How can I make so other players can see the light effects and particles?
__________________
Deep into the Darkness peering...
Reply With Quote
  #6  
Old 04-28-2006, 01:03 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Gani scripts
Reply With Quote
  #7  
Old 04-28-2006, 02:53 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
ok hmmm :/
__________________
Deep into the Darkness peering...
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 06:54 PM.


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