Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   Attribute Question (https://forums.graalonline.com/forums/showthread.php?t=76363)

TalonShriner 08-19-2007 04:28 AM

Attribute Question
 
Say that I want to be lazy and use one custom weapon attack gani. When I create the sprites for the weapon, what ATTR would I set it as? I don't want to go through and make a separate gani for each weapon. And also for bonus points, who could tell me the script I would use IN GS2 to apply the image?

Goodnight and good luck. (Good movie, good movie)

PrinceOfKenshin 08-19-2007 05:09 AM

Im on my psp so im not going to type the script. All the weapons have the same cords. then it will work.

DustyPorViva 08-19-2007 05:14 AM

set it to whatever attr you want(1 is reserved for player hats)
player.attr[2-30]="swordimage.png";

Then in Graalshop, it's ATTR2-30(whatever you chose to set the sword image as).

TalonShriner 08-19-2007 05:05 PM

So to clarify, i make my gani and set the image on the sprite to ATTR2? As for the script, i would put exactly: player.attr[2]="swordimage.png";

DustyPorViva 08-19-2007 05:34 PM

Ya.

Chompy 08-19-2007 08:03 PM

Hmm..

When you finish the gani, save it.
Then open it up with notepad then go down under all the sprite #'s

DEFAULTATTR # <imagename used in gani>

for example if you used graal_sword7.png in your gani and wants to use attr2:

DEFAULTATTR 2 graal_sword7.png

Now save the file with notepad ;o

Now ingame you can do player.attr[2] = "graal_sword1.png";
and it will display sword1 instead of 7 ;o

DustyPorViva 08-19-2007 08:23 PM

I believe graalshop allows you to edit the first three ATTR's in the program itself, without notepad.

Chompy 08-19-2007 08:44 PM

Quote:

Originally Posted by DustyPorViva (Post 1341437)
I believe graalshop allows you to edit the first three ATTR's in the program itself, without notepad.

And that's bad :(

It isn't that hard to add a little scroll :p

zokemon 08-22-2007 10:15 AM

Why don't you just use the sword variable? x_x


All times are GMT +2. The time now is 01:15 AM.

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