Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   A bunch of new script thingies that would really be useful (https://forums.graalonline.com/forums/showthread.php?t=5106)

sharkey 06-18-2001 11:44 PM

A bunch of new script thingies that would really be useful
 
Couple of things that would be helpful in making new features.

For changeimgvis, a layer 5 which would be drawn above layer 4(obviously) and act just like layer 4, so you have more control over status bar-like images.

Weapon attribute variables(that might not be so clear, but itll make more sense in a bit). Such as:
weapon.src image file of the weapon
weapon.id id # of the weapon
weapon.imgwidth width of the file image
weapon.imghight hight of the image file
weapon.timeout timeout of the weapon
Can't remember what the others for this were.

Image attribute variable, only accessible for the showimg images of the npc itself
image.src image file of the showimg
image.level draw level of the image
image.width width of the image file
image.hight hight of the image file
image.x and image.y x/y position of the image
Again, there were more, but I can't remember them right now.

That's all for now. If i can remember the others, I'll post them too.

Kaimetsu 06-19-2001 12:04 AM

Re: A bunch of new script thingies that would really be useful
 
Quote:

Originally posted by sharkey
For changeimgvis, a layer 5 which would be drawn above layer 4(obviously) and act just like layer 4, so you have more control over status bar-like images.
Practical example?

Quote:

Weapon attribute variables(that might not be so clear, but itll make more sense in a bit). Such as:
weapon.src image file of the weapon
weapon.id id # of the weapon
weapon.imgwidth width of the file image
weapon.imghight hight of the image file
weapon.timeout timeout of the weapon
Can't remember what the others for this were.

Again, why would you need these?

Quote:

Image attribute variable, only accessible for the showimg images of the npc itself
image.src image file of the showimg
image.level draw level of the image
image.width width of the image file
image.hight hight of the image file
image.x and image.y x/y position of the image
Again, there were more, but I can't remember them right now.

They can be done already just by tracking showimg commands.

sharkey 06-19-2001 08:40 AM

for a 5th layer, because some images dissapear behind other ones, and a 5th layer could keep certain images on top.

the weapon stuff, k i forget the reason for those. actually, forget about those, i cant remember why.

this image ones, so that u can can get those variable later on. like if you want to move an image -1y every so many seconds, you could just do like image[0].y-=1. the width and higth arn't how much of it is drawn, its the width and hight of the actual image.

So, some of these arent exactly necessary, but it'd be good to have some of these for completeness sake(maybe not the weapon stuff.) although i knew i had a good reason for one of them, maybe its one that i forgot.

Falcor 06-20-2001 06:06 AM

I think I get what hes saying Kai...

Like sometimes when you wanna deisplay. Lets say.. Numbers on a Backgrond. If there too high then they will be draw behind the background.... Layer 5 would ALWAYS draw above layer 4.....
I think there should be also a layer 4.5 or sowething.. So you can draw BEHIND the ASD.

sharkey 06-20-2001 10:13 PM

exactly!

Kaimetsu 06-20-2001 10:19 PM

Just put holes in the background and you can see the numbers then.

Falcor 06-20-2001 11:53 PM

Kai
 
here comes my quote kia..

"WHY MAKE LIFE HARDER????"

hehe

Bus seriously why? What id you WANT a background behind the number? OR you WANT a background behinf the HP bar? Im not cutting off the background If I dont have to... =P


Kaimetsu 06-20-2001 11:55 PM

Re: Kai
 
I'm only being awkward. Yeah, it could be kinda useful sometimes.

Anyway, I'm gonna PM you, Fal.

Slaktmaster 06-24-2001 01:43 AM

That layer thingy would be really good.
Npcs[0].layer = 1-5;
Or something?

Why not a few tile layers? :D


All times are GMT +2. The time now is 09:58 AM.

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