Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help (https://forums.graalonline.com/forums/showthread.php?t=38161)

emortylone 09-20-2002 09:59 AM

Okay, I must admit I am QUITE confused. Are you saying functions aren't able to use vars?!?! What is the point of vars that ONLY can be read and edited by functions? It shouldn't matter because if you have a this.var and the only thing that modifies it is the functions, it works out. I guess I must be missing what you guys are saying...
---Shifter

Graal2001_NAT 09-20-2002 10:12 AM

Quote:

Originally posted by emortylone
Okay, I must admit I am QUITE confused. Are you saying functions aren't able to use vars?!?! What is the point of vars that ONLY can be read and edited by functions? It shouldn't matter because if you have a this.var and the only thing that modifies it is the functions, it works out. I guess I must be missing what you guys are saying...
---Shifter

in php and other programming languages(i think c and c++ as well) there are things such as params, like in php

function(showing,stuff);
if i called that and the function name was

function($1,$2){
echo "$1";
echo "$2";
}
it would display this


showing
stuff

VampiricTutorNewHD 09-20-2002 10:13 AM

Variables can be used in functions. If statements are run before functions.

R0b1n-NPC 09-20-2002 01:51 PM

meh but im so lazy... and i dont see why it cant be done this way.

i can see(by the brackets at the end of the function) that this way was in use once or was planned to be in use.

R0b1n-NPC 09-20-2002 01:53 PM

Quote:

Originally posted by Falcor
Function arguments, it was suggested by me and a few other people long long time ago, yet never added, Some problem that graal isn't too object-orientated. *shrugs*
:\ make it object oriented x.x

Falcor 09-21-2002 05:56 AM

Quote:

Originally posted by R0b1n-NPC


:\ make it object oriented x.x

Directed that to me? I am hardly in a position to edit graal's sorce code, nore would I have any knowledge on what to do.

Graal2001_NAT 09-21-2002 05:58 AM

Quote:

Originally posted by R0b1n-NPC
meh but im so lazy... and i dont see why it cant be done this way.

i can see(by the brackets at the end of the function) that this way was in use once or was planned to be in use.

or maybe stefan needed a way for graal to tell what is a function

R0b1n-NPC 09-21-2002 07:14 AM

stop killing my fun dammit!

Inphektid 09-21-2002 07:17 AM

*Jealous of Robin's signature image* :(

R0b1n-NPC 09-21-2002 07:46 AM

Bwahaha upgrade account for me and i will make one like it for you

LilbrojX 09-21-2002 02:18 PM

blah blah blah why are you trying to script? your just copying some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script who copied some one else who learned how to script and it keeps going on and on so if you dont wanna be flamed like this pointless post you should just give up now because being original is the shnap

WanDaMan 09-21-2002 02:24 PM

well
 
i really need help on how to make money on graal with scripts like bread making from 2001 and so on
thats all i really wanna learn i think i got the hang of vars
this.x=+4;
blah de blah XD

-Snakeandy

LilbrojX 09-21-2002 02:27 PM

Re: well
 
Quote:

Originally posted by WanDaMan
i really need help on how to make money on graal with scripts like bread making from 2001 and so on
thats all i really wanna learn i think i got the hang of vars
this.x=+4;
blah de blah XD

-Snakeandy

wut helped me out the most is that cyb gave me access to the NPC server on frolic and I took a look at those scripts... maybe that's the best way to learn, I'm not too good but I'm a lot better than I used to be...

R0b1n-NPC 09-21-2002 04:23 PM

Magnoria... sounds a bit like maloria

just the name :P

LilbrojX 09-22-2002 11:25 AM

Quote:

Originally posted by R0b1n-NPC
Magnoria... sounds a bit like maloria

just the name :P


is that why I get flamed? the name?? maybe I'll change it... but I thought of magnoria a long time ago and posted some stuff on it then maloria came up and I was like "wut the heck..?"


All times are GMT +2. The time now is 08:48 PM.

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