
06-11-2001, 08:48 AM
|
|
Darth Cucumber
|
 |
Join Date: Mar 2001
Location: At School
Posts: 2,874
|
|
New Scripts and other stuff From Falados's Inner Mind
|
Ok, Well You all know how I wanna get new scripts that offer cool user customization.. Although I cant spell I will try to get my point across. hahaha...
Number one on the list is Pic Masks...
Ok you all know that graal defines walls on the default PICS one..
I believe To offer flexibility to the rule, We should have a pick mask...
Pics2.png would server as a mask, to define water tiles, onwall tiles. Floor tiles (Maybe 2nd layer tiles? (drawoverplayer)
When your on a player world.. The server will download the pICS one from the server.... And so that would prevent people from editing there pICS mask to be all floors or something (Bad bad cheaters)
And this brings me to my 2nd point..
SETPICS picfile,tilemask;
Ok, For player worlds (Like Damasca, where did that go? I loved that server!) to offer mor of a Development Friendly environment, setpics would enable to client to use the pICS file that is on the server... E.G.: The server makes there own pICS file and pICS mask and then set the player to use them
Much like setting the map file but to set the pICS file... This would be a good thing for player worlds who like to be original..
Ok,,, Now that I got PICS off my brain. Lets go to cool and neat stuff that us scripters want =)
2 dimensional arrays...
2d Arrays are used by the graal board.. You must call them in a different syntax than regular arrays... (remember board[index] ??)
2d arrays would be set by this method
my2darray = { {1,2,3} {4,5,6} {7,8,9} };
Each brace inside the primary brace is a row... in each row there is a collum...
This particular array has a size of 3X3 , 3^2 or 9
And it would be called using my2darray[row# * collum#]
Example... my2darray[1*2] would give me 2 because it is the 1 row and 2nd collem...
And would would HAVE to be propper syntax becuals 1*2 = 2... you COULDNT put my2darray[2] cuz that would loof for the standard array.. wich there is none. (or look for collum 2 in the 1st row?)
Well anyway. I hope thats an adiquit description of 2d arrays...
weapon indexes
you know selectedweapon? Well Maybe we should be more weapon oriented. With an actual
players[index].weaponscount
and things of that nature
and a #w(index) message code... So you could remove weapons that ARE NOT the selected one..
#K()
If you know what I am talking about. #K(index)
Gives you the symbol for the ASCII index you input. Currently you cant put variables in it. Which upsets me greatly. So I want variables inside that cuz it would enabled a load of stuff to be done...
keydown()
Should have support for EVERY button on the keyboard
-50/50 move on NPC server should be fixed =\
Currently it crashes the NPC server.
Ill think of more later.. Tell my what you think if you understand me....
-Falados |
__________________
subliminal message: 1+1=3
|
|
|
|