PDA

View Full Version : New Features PLEASE!


Falcor
08-17-2001, 08:51 AM
Some things need to be added...

Function Arguments

All us people who code in another language other than Gscript LUV FUNCTIONS ARGUMENTS! Please add them.

Fuctions aregument syntax is as follows

funcname(aug1,aug1,...)

and

function funcname (name for aug1,name for aug 2,...) {
routein......
}

and also there needs to be

return value;

example : return true; return false: return HAPPY MONKEY!; return #v(money);

So we can do l33t things like

if(getArea(x,y)) {
message OMG LIKE THE OBJECT IS IN THE AREA!!!!!!!;
}

Next on the agenda........

Script Ganis!

Kaimetsu suggested it and I luv the idea. There must be some way to add this option. :(

Also if sever-side showimg wouldnt round to the closes half (.5) it would be good =\

Oh my... Playerspeed Variable
This is a good option that GodSpeed suggested.. I hope it gets on =\

NPC Server programing

It would be nice if there was an NC option to give the player a pm if a certain condition is true.

Like a script command
PM Commands for NPC server
pmplayer account,message text;
masspm message text;

And int he NPC server you could do stuff like
NPCs server Programming
if(strequals(#pm,Hello!)) {
pmplayer #a,Hi!;
}

And stuff.


OH OH!!!

hidden NPCs should be able to show images!

And....

New Flags!
playerkillsbaddie
playerkills
playerkillsplayer
playerkillsnpc

It would be nice for EXP. Since detecting if a play has killed an enemy is really difficult to do perfectly. =\

[b]playerids in With operation
with(getplayer(id))

and idscount varaible

the idscount variable woudl be the hiest id on the server so if ids

4,7,8,13 were online... idscount == 13

Bug
Graal:Offline bug was never fixed =\


Style show insert a newline character after semicolons and Braces or Brace+semicolon combos (for arrays and such).

thats all I can think of now.

LilbrojX
08-17-2001, 09:40 AM
very good ideas, like baddykilled and pm stuff, but hidden NPCs are able to show images! in the new bug fix version:)

Falcor
08-17-2001, 10:16 AM
Oh, It wasnt in the new features txt. hehe cool.

dragoonvenganc
08-17-2001, 12:17 PM
nice ideas.
function arguments are great you are right about that

Falcor
08-18-2001, 02:37 AM
Yeah. They make jops so much EZer...

Admins
08-18-2001, 03:57 AM
function parameters: possible, although the current
script engine is object-orientated instead of linear,
so i would need to change some stuff first (imagine
you do a sleep in such a function)

playerkills: npcs can detect their own 'dead',
the player-kills-player thing can be added

Falcor
08-18-2001, 04:01 AM
nice. im looking forward to seeing this :)

Falcor
08-19-2001, 06:08 AM
You know what would be good and nice also? Server Accounts saved on a txt file

For like reference. I dont mean that you can edit the account but jsut to reference info from the account would be cool. Like there current gralats and stuff. Then we could do some CGI junk and make some Server stuff like popular shields and stuff on our own.

LiquidIce00
08-21-2001, 07:33 AM
get object exists .. they got board[] and testnpc, testplayer,testbomb.. and function argument has already been suggested a few times. .
and return is kinda useless since Graal variables are avaible to the whole script

LiquidIce00
08-21-2001, 07:35 AM
oh oh and I forgot
its not that hard to check if the player pk'ed
all you have to do is save the current ap of the player then check if it went down ..

few things that come from there
been able to check the player kills, deaths, rating would be nice..
u can do exp systems based off how much kills ppl got and such that be cool . but it would be pk fest

G_yoshi
08-21-2001, 11:24 AM
I have also had the same idea about adding better scripting to ganis. Then stefan could do away with the animation checking the graal engine does ;)

IceHawk
08-21-2001, 11:46 AM
Originally posted by LiquidIce00

its not that hard to check if the player pk'ed
all you have to do is save the current ap of the player then check if it went down ..
He meant so he could set different enemies could give like different EXP
like lets say you killed a blue baddie, you got 10 EXP points, and if you killed a lizardon you got 50 EXP points.
You couldn't do that with a check-if-AP-went-down system

Kaimetsu
08-21-2001, 08:10 PM
Originally posted by IceHawk
He meant so he could set different enemies could give like different EXP
like lets say you killed a blue baddie, you got 10 EXP points, and if you killed a lizardon you got 50 EXP points.
You couldn't do that with a check-if-AP-went-down system

And also stuff like "go kill player x". It'd have to know who you'd killed to work.

Falcor
08-22-2001, 12:35 AM
Originally posted by LiquidIce00
get object exists .. they got board[] and testnpc, testplayer,testbomb.. and function argument has already been suggested a few times. .
and return is kinda useless since Graal variables are avaible to the whole script

board[] = An array, Not a function

All the other things are predifined functions. I want it enabled to that you can do funciton arguments when you create your own functions

return IS usefull

if(getcoolplayer(#a,ap)) {
setplayerprop #c,I AM COOL!;
} else {
setplayerprop #c,I AM A LOSER
}

function getcoolplayer(account,alignment) {
if(strequals(#p(account),Falcor) && strtofloat(#p(alignment)) > 90) {
return true;
} else {
return false;
}
}

It would take up extra code if you had to prefor variable operations. Why make your code longer? Why not make it simple?

I sugested Function Arguments twice before.. Stefan never saw them i dont think.

Tyhm
08-22-2001, 12:29 PM
board[]'s math would be very handy in the commands.rtf...I have to go back to the shovel and hammer script every time, personally. If it's left out to prevent hackers from learning it, it doesn't work...they just all ask me. =_=

Falcor
08-22-2001, 01:20 PM
board[] is a silutated 2d array. Its not that hard to memorize really

x+(64*y)

so line one would be 0-63
then line 2 would be
64-127

ect ect ect.

and board tiles are the same syntax right?

tilex+tiley*16???

Birdbird_0
08-22-2001, 01:49 PM
You menchoned scripted ganies,
what about the posiblitys for ganies to have blank sprites, that can be changed with showimg and such, instead of making 23923 for 2309238 sprites, each with a diffrent gani?

SagaTCN
08-23-2001, 05:33 AM
all I know is I started to understand when I made a tile editer Npc

works wonderful =)

you say
"board copy" then it copies the tile information of the level
then u say
"board replace" and it replaces the board tiles with the tiles saved from board copy

it's fun =)

also you can edit any x y width height to any 1 tiles

using the one number for the tile. which can be found if you can see the tile by saying
"board study" and moving the image over the tile.
also displays the x and y for more precise editing.

trouble is I tried it online and only I could see the changes =(