View Single Post
  #14  
Old 08-22-2001, 12:35 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Quote:
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.
__________________

subliminal message: 1+1=3

Last edited by Falcor; 08-22-2001 at 12:40 AM..
Reply With Quote