Graal Forums

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

Falcor 10-26-2002 09:45 AM

Public Strings
 
It would be a nice thing to have public strings that can be accessed by people on the same level. Customized data that is sent to other clients.. it would be like..

setstring public.stringname,<stuff>;
and could be accessed via a message code like
#S(public.stringname,playerindex)
(Public Variables would be nice aswell)

It could be useful for things like mouseover status and stuff like that, things that would normally require some interaction between the server via triggeractions and stuff.


Another thing that could be useful is if showani worked in Weapons... Currently it doesn't (Someone prove me wrong if it does). Also Graalshop doesn't load the new attributes... (unless there is a new graalshop out, however I dont think the devpack was update.)

Tyhm 10-26-2002 12:57 PM

I remember the old workaround for that...an invisible showcharacter NPC that used his #n for public string storage. Those were the days...

R0bin 10-27-2002 03:58 AM

jagen had a similar idea in http://forums.graal2001.com/forums/s...threadid=38235 <3

Falcor 10-27-2002 12:38 PM

Quote:

Originally posted by R0bin
jagen had a similar idea in http://forums.graal2001.com/forums/s...threadid=38235 <3
What does that have to do with anything? Some things must be reinstated and I talked to stefan about something like this prior to his thread anyhow... He even said he'd add something similar, alas he hasn't.



And Thym, I'm starting to like your floating point layers thing, as I run out of layers on the level-based layers very quickly. Maybe something like
changeimgvis2 i,layer,sublayer; and the sublayer would determine which image was draw over the others on the same layer... in changeimgvis i,layer; the sublayer would default to 0.

R0bin 10-27-2002 09:30 PM

Falados.. is all you talk about layers? geh.

Falcor 10-27-2002 11:56 PM

Quote:

Originally posted by R0bin
Falados.. is all you talk about layers? geh.
was that post really necessary? No I dont just talk about layers, but better control over them is something I NEED.

Tyhm 10-28-2002 12:23 AM

The float part of the number (.1 of the 2.1) would be the sublayer...

Falcor 10-28-2002 01:46 AM

Quote:

Originally posted by Tyhm
The float part of the number (.1 of the 2.1) would be the sublayer...
Whatever...

Another thing that needs to be added is a nearestplayer(x,y) function and maybe even a nearestnpc(x,y) function too. It would return the index of the nearest player or npc to that point on the level. Might be good for baddies and such.

R0bin 10-28-2002 02:21 AM

Quote:

Originally posted by Falcor
nearestplayer(x,y)
No offence. You are a *****. x.x

Quote:

Originally posted by Python523
Hidden Command #1:
getnearestplayer(x,y);
serverside command, gets the index of the closest player to the specified index, the index can then be used like
near=getnearestplayer(x+1,y+2.5);
with(players[near]){
//stuff here;
}


Spark910 10-28-2002 02:25 AM

lol!
And btw you can already do something like that I think, As thats how 2002 and other servers make the music fade as you walk away.

R0bin 10-28-2002 02:28 AM

OK first off, read what i quoted from jagen. Second off, they would have done this :

http://forums.graal2001.com/forums/s...759#post735759

Falcor 10-28-2002 03:30 AM

Quote:

Originally posted by R0bin

No offence. You are a *****. x.x


Sorry, Mr. Know-it-all. I didn't know. And didn’t you notice it said HIDDEN COMMAND. As in most people don’t know about it? I know I sure didn’t, either that or I did at one point but never used it do to its inherent limitations. I even looked in the EXE for something like it before I posted. Don't have to be such a jackass about it. It would be better if it were a client side command anyhow, some additional things could be done w/ it if it were client side. Pfftt.. I have no clue what you are trying to prove, it wasn't necessary for something derogatory like that to be said.

screen_name 10-28-2002 04:00 AM

Re: Public Strings
 
Quote:

Originally posted by Falcor
It would be a nice thing to have public strings that can be accessed by people on the same level. Customized data that is sent to other clients.. it would be like..

setstring public.stringname,<stuff>;
and could be accessed via a message code like
#S(public.stringname,playerindex)
(Public Variables would be nice aswell)

It could be useful for things like mouseover status and stuff like that, things that would normally require some interaction between the server via triggeractions and stuff.


Another thing that could be useful is if showani worked in Weapons... Currently it doesn't (Someone prove me wrong if it does). Also Graalshop doesn't load the new attributes... (unless there is a new graalshop out, however I dont think the devpack was update.)

level.strings?

Falcor 10-28-2002 04:31 AM

Re: Re: Public Strings
 
Quote:

Originally posted by screen_name


level.strings?

Not really. Need something that works like players[index].heats only custom strings and variables.

Admins 10-28-2002 12:35 PM

Why not using the 'gani' attributes #P(1) - #P(30) ?
#P(playerindex, attributenumber)

Falcor 10-29-2002 07:45 AM

Quote:

Originally posted by Stefan
Why not using the 'gani' attributes #P(1) - #P(30) ?
#P(playerindex, attributenumber)

Because they could be better used to manipulate ganis. I'd hate to use workarounds because they always seems to come around and bite you in the posterior

R0bin 10-30-2002 06:33 AM

like you can only use gani attributes on showcharacter npcs? x.x


All times are GMT +2. The time now is 06:11 PM.

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