![]() |
Getting the destination of a level link?
I've been messing around with testing for level links. I can test for them... the question is, how do you get the level that the link is supposed to be going to? Also--- If I can do this, would there be a way to disable the default link system?
|
Why would you want to disable the default link system? o_o
|
I would say the link.name is giving you the destination level name, but would need to check that.
|
Quote:
or to add some new link functionality stuff maybe. *shrug* |
Quote:
|
I have checked the links, you cannot access the destination level right now, will add a variable for that soon.
|
Quote:
|
For external levels using a gmap I don't think requires the use of level links, and then for internal levels you can always use an NPC for level links (I've never been fond of using the premade links anyway).
|
Quote:
If your server runs on scripted systems, then you have a lot more control over how you can interpret the behavior of default classes. In particular level links and signs. To interpret letters.png for signs, etc, you would need to be able to access the rgba of a pixel from an image at a specified coordinate. (I've suggested this without response). The lack of clientside access to signs means that you can't unlag them. However, if you could simply detect the sign and interpret letters.png, you could add some transition effects to the loading of the sign while waiting for the string to return from the server (probably .2 sec at most, avg .1). Links are similar to signs, but they put you in a new level. The easiest default class to reinterpret would probably be chests. It doesn't matter what the chest contents are as long as you can interpret them and know when the chest switches from closed to open. The hardest default class to interpret: BADDIES... what a pain in the neck. |
Quote:
|
Quote:
It isn't possible to read from letters.png right now, and that creates a problem in trying to make a new system regarding it. If I were to make a new system regarding it, I would want to make it automatically wrap text and give it the ability to align the text for a line, etc. The END graphic on Classic can't use letters.png because there's no possible way to grab the background color of letters.png from a pixel. In the meantime, redrawing the pixel a gajillion times would be quite inefficient. |
The pixel retrieval functions were added one month ago with v4.04,
http://forums.graalonline.com/forums...ad.php?t=64166 |
Quote:
|
| All times are GMT +2. The time now is 09:24 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.