Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   addspritedef (https://forums.graalonline.com/forums/showthread.php?t=21666)

Thak2 01-21-2002 10:45 AM

addspritedef
 
Don't know if this has been suggested before, or if it is avaliable in NPC Server, but...

A command like addtiledef, except adding over sprites.png instead of pics1.png.

It would be useful if a sign's image was changed, or a bushes, or if someone wanted to replace the arrow graphic with their own.

Maybe the code would be like:

addspritedef spritesimage,levelstart,x,y;

Python523 01-21-2002 10:47 AM

Re: addspritedef
 
Quote:

Originally posted by Thak2
Don't know if this has been suggested before, or if it is avaliable in NPC Server, but...

A command like addtiledef, except adding over sprites.png instead of pics1.png.

It would be useful if a sign's image was changed, or a bushes, or if someone wanted to replace the arrow graphic with their own.

Maybe the code would be like:

addspritedef spritesimage,levelstart,x,y;

That's a really good idea, they could also add
addstatedef (for people who want a new state but dont want to script it)

jeff335 01-22-2002 05:20 AM

Or better:


addimgdef image,targetimage,levelstart,x,y;


Image is the image you are applying, targetimage is the image you are applying it to (can be pics1, state, or anything else), and the rest is just like tiledef.

ArchOwl 01-22-2002 08:06 AM

Quote:

Originally posted by jeff335
Or better:


addimgdef image,targetimage,levelstart,x,y;


Image is the image you are applying, targetimage is the image you are applying it to (can be pics1, state, or anything else), and the rest is just like tiledef.

I NEED THAT BADLY I NEED THAT BADLY I NEED THAT BADLY I NEED THAT BADLY STEFAN PLEASE IMPREMENT IT INTO THE NEW VERSION AHHHHHHHHHHH :(:(:(:(:(:(

G_yoshi 01-22-2002 09:10 AM

Um, it should be setstate and setsprite and the appropriate file for each.

Doing levelstartname etc is pointless and would be very tedious. You could also add an line in serveroptions.txt that specifies custom state and sprites.

jeff335 01-23-2002 05:59 AM

In imgdefs you'd just leave the start blank for everywhere, like tiledefs. It'd allow interchangeable parts if the scripter did it right (Easy!).

G_yoshi 01-23-2002 01:15 PM

if your playerworld is using custom tilesets, then having a startlevelname varible is kinda pointless. The whole point of being able to define custom sprites and states is so that it matches your tileset and server atmosphere.

What would be the point of selectively defining sprites.png? As I said before, state.png should be defined in serveroptions.txt or run from an NPC once. It could save it to the tiledefs for that PW so that their is less waste ;)

Ideal commands:
setstate newstateimg;
setsprites newspritesimg;

Those would be all that is needed. That way they are simple and work like setletters ;) I haven't seen many servers use setletters other than mine :D

Thak2 01-23-2002 07:13 PM

Quote:

Originally posted by G_yoshi
if your playerworld is using custom tilesets, then having a startlevelname varible is kinda pointless. The whole point of being able to define custom sprites and states is so that it matches your tileset and server atmosphere.

The startlevelname variable would be useful for such playerworlds that would like a certain sign in their snow town, and a different one in their other town, it would be very useful if different areas that all have different looks.

But, everything else you suggested I agree with.

G_yoshi 01-23-2002 08:54 PM

Quote:

Originally posted by Thak2


The startlevelname variable would be useful for such playerworlds that would like a certain sign in their snow town, and a different one in their other town, it would be very useful if different areas that all have different looks.

But, everything else you suggested I agree with.

If all they want is one image...then just make one image....no sense in wasting all that space for just one measly image.

Or making one png file that has several different signs and then do setimgpart img,width,height,x,y; and you'd be fine. Creating a custom sprites file just for a custom sign in only 1 or 2 towns is absolute waste :(

Mrmicro 01-24-2002 07:20 PM

just like

set letters is already there. Those were be a good addition

royce 01-25-2002 09:28 AM

Set letters is very useful. I use it alot because I am constantly making my own Gfx for Signs and such.


All times are GMT +2. The time now is 06:38 AM.

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