Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GANI Scripts accessing strings (https://forums.graalonline.com/forums/showthread.php?t=24731)

Faheria_GP2 02-28-2002 06:20 AM

GANI Scripts accessing strings
 
can they?

Faheria_GP2 02-28-2002 06:37 AM

*bump*

neomaximus2k 02-28-2002 06:41 AM

Re: GANI Scripts accessing strings
 
Quote:

Originally posted by Faheria_GP2
can they?
No they can't, only zoom, lighting and all those other effects

Faheria_GP2 02-28-2002 06:42 AM

*read* strings

neomaximus2k 02-28-2002 06:44 AM

Quote:

Originally posted by Faheria_GP2
*read* strings
? and what is all that about?

Phenom1K 02-28-2002 07:47 AM

No need, just access it directly from the NPC that causes you to have that animation. If it's needed for something in the animation, use it as a parameter.

Faheria_GP2 02-28-2002 09:14 AM

well, I am making a guy that floats, and I want a shadow to be displayed below the player by reading string "altitude", so yes, maybe a parameter is the best way

Phenom1K 02-28-2002 10:02 AM

Quote:

Originally posted by Faheria_GP2
well, I am making a guy that floats, and I want a shadow to be displayed below the player by reading string "altitude", so yes, maybe a parameter is the best way

Hey! If you want that, you don't need a parameter. Just save the player x and y+3, put a little shadow image there, and then change the player's y- according to the specified altitude, and then have the shadow move along with the player. Is that genius or what?

Faheria_GP2 02-28-2002 10:11 AM

hey, maybe I want whatever lag there will be to be in synch with the lag of the player? so the altitude won't appear to change when it really isn't

Phenom1K 02-28-2002 10:13 AM

Quote:

Originally posted by Faheria_GP2
hey, maybe I want whatever lag there will be to be in synch with the lag of the player? so the altitude won't appear to change when it really isn't
Can't be done yo

Faheria_GP2 02-28-2002 10:19 AM

yes, the gani does the showimg clientside for each player who sees the gani, so the shadow will always appear to be "in synch" with wherever the player seems to be for each user

neomaximus2k 02-28-2002 02:24 PM

Quote:

Originally posted by Kaimetsu
Supersonic is right. If the gani scripts can get the info then they can draw it properly.
i've never really messed with gani scripting but
cant he create a GANI with different frames in and then use a command to over but only show certain frames???
that way he can put the char shadow at different heights in the gani :)

If not then why hasn't it been invented!!!!

neomaximus2k 02-28-2002 02:48 PM

Quote:

Originally posted by Kaimetsu
So you're saying something like make a gani with a million frames and then have the gani's script choose one?

Pretty icky way to do it. Why not let the gani draw it itself?

i mean a range of frames.
ok lets use the example above
make a hovering Gani 10 frames long. then within that same gani create another one 10 frames long but make the shadow a bit further down, etc etc
obv not a big gani but lets say you do 5 of these.
the rather than using showimg or any other way of doing it you could use a script to play first of ll
0 to 9
then if the altatidu is higher you could oplay
40 to 49
see what i mean?

neomaximus2k 02-28-2002 10:51 PM

Quote:

Originally posted by Kaimetsu
Yes. But it leads to bigger files etc - what's wrong with simple gani scripts?
nothing i dont think i havn't tried scripting with gani's tho so i wouldn't know

Admins 03-01-2002 12:19 AM

Gani scripts can only read things like #Px,
because if they could read normal variables then
you could add script to display the value and
possibly cheat or so

Saga2001 03-01-2002 12:34 AM

Quote:

Originally posted by Stefan
Gani scripts can only read things like #Px,
because if they could read normal variables then
you could add script to display the value and
possibly cheat or so

like make your own new ganis?

Saga2001 03-01-2002 05:41 AM

Quote:

Originally posted by Kaimetsu


Yeah, like replacements for idle.gani. I never thought of that...

man thats a solutionless problem...:-/...oh well, no access in ganis...

Faheria_GP2 03-01-2002 06:18 AM

just make the string a gani parameter I guess, like

setani fly,#s(altitude);

but, can script ganis even access that? Or can they only read permanant things like #P1?

TDK_RC6 03-01-2002 06:45 AM

Quote:

Originally posted by Phenom1K
No need, just access it directly from the NPC that causes you to have that animation. If it's needed for something in the animation, use it as a parameter.
exactly, just used setani ganiname,parameters


All times are GMT +2. The time now is 07:17 PM.

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