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 01-21-2002, 07:36 AM
Xythar Xythar is offline
Banned
Xythar's Avatar
Join Date: Aug 2001
Location: NOT (quite) HERE
Posts: 1,241
Xythar is on a distinguished road
Send a message via AIM to Xythar Send a message via Yahoo to Xythar
Gani lighting effects

I seem to recall Stefan saying a while back that it was possible to use lighting effects in .ganis. Is that true, and how would you do it?
Reply With Quote
  #2  
Old 01-21-2002, 08:33 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
The torch on g2k1 uses light effects in a gani but not sure on how to make it do that
Reply With Quote
  #3  
Old 01-21-2002, 10:05 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
I think you have to edit the .gani file in the txt like open it in wordpad like a .nw file
Reply With Quote
  #4  
Old 01-23-2002, 09:52 AM
XeroMaster XeroMaster is offline
Registered User
Join Date: Dec 2001
Location: Washington-=USA=-
Posts: 143
XeroMaster is on a distinguished road
Send a message via AIM to XeroMaster Send a message via Yahoo to XeroMaster
yep...

here is torch_idle in .txt form

NPC Code:

SPRITE 0 SPRITES 0 0 24 12 shadow
SPRITE 1 fire.gif 0 0 30 52 torch fire
SPRITE 2 fire.gif 8 0 14 52 torch light
SPRITE 4 ATTR2 0 0 28 32 torch
SPRITE 40 ATTR1 0 0 48 48 hat up
SPRITE 41 ATTR1 48 0 48 48 hat left
SPRITE 42 ATTR1 96 0 48 48 hat down
SPRITE 43 ATTR1 144 0 48 48 hat right
SPRITE 100 HEAD 0 0 32 32 head up
SPRITE 101 HEAD 0 32 32 32 head left
SPRITE 102 HEAD 0 64 32 32 head down
SPRITE 103 HEAD 0 96 32 32 head right
SPRITE 217 BODY 32 128 32 32 body walking4 left
SPRITE 226 BODY 64 192 32 32 body sword1 down
SPRITE 227 BODY 96 192 32 32 body sword1 right
SPRITE 248 BODY 0 384 32 32 body pushing3 up

DEFAULTATTR1 hat0.png
DEFAULTHEAD head19.gif
DEFAULTBODY body.png
COLOREFFECT 2 1 1 1 0.99
ZOOMEFFECT 2 2

SCRIPT
if (playerenters || timeout) {
if (playerdir==0) showimg 1,light2.png,playerx-31/16,playery-74/16;
if (playerdir==1) showimg 1,light2.png,playerx-52/16,playery-76/16;
if (playerdir==2) showimg 1,light2.png,playerx-56/16,playery-76/16;
if (playerdir==3) showimg 1,light2.png,playerx-32/16,playery-74/16;
changeimgvis 1,3;
changeimgcolors 1,1,0.5,0.5,0.99;
changeimgzoom 1,1.5;
timeout = 0.05;
}
SCRIPTEND

ANI
0 12 34, 248 8 14, 4 23 -4, 1 23 -46, 2 31 -72, 100 8 2, 40 0 -16
0 12 36, 217 10 16, 4 0 -6, 1 0 -48, 2 8 -74, 101 10 2, 41 -2 -16
0 12 34, 226 8 16, 102 8 2, 42 0 -16, 4 -4 -6, 1 -4 -48, 2 4 -74
0 12 36, 227 4 14, 103 4 2, 43 0 -16, 4 20 -4, 1 20 -46, 2 28 -72

ANIEND

__________________
OUT OF MY MIND!
BACK IN 5 MIN.
AIM=Da First Bug
[email protected]
Reply With Quote
  #5  
Old 01-23-2002, 09:22 PM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
ummmmm ya lolz
__________________
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 07:08 PM.


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