Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 09-20-2002, 09:59 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #17  
Old 09-20-2002, 10:12 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
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
__________________
GONE, BAI
Reply With Quote
  #18  
Old 09-20-2002, 10:13 AM
VampiricTutorNewHD VampiricTutorNewHD is offline
Banned
VampiricTutorNewHD's Avatar
Join Date: Jun 2002
Location: PEI, Canada
Posts: 712
VampiricTutorNewHD is on a distinguished road
Send a message via AIM to VampiricTutorNewHD
Variables can be used in functions. If statements are run before functions.
Reply With Quote
  #19  
Old 09-20-2002, 01:51 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
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.
__________________
- R0bin
Reply With Quote
  #20  
Old 09-20-2002, 01:53 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
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
__________________
- R0bin
Reply With Quote
  #21  
Old 09-21-2002, 05:56 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 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.
__________________

subliminal message: 1+1=3
Reply With Quote
  #22  
Old 09-21-2002, 05:58 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
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
__________________
GONE, BAI
Reply With Quote
  #23  
Old 09-21-2002, 07:14 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
stop killing my fun dammit!
__________________
- R0bin
Reply With Quote
  #24  
Old 09-21-2002, 07:17 AM
Inphektid Inphektid is offline
Registered User
Join Date: Jul 2002
Location: Here.
Posts: 258
Inphektid is on a distinguished road
Send a message via AIM to Inphektid
*Jealous of Robin's signature image*
__________________
+name+ Inphektid
+email+ [email protected]
+aim+ Inphektid

<3 Rudora
<3 Sanstrata
<3 Divided Kingdoms
<3 Mithica
Reply With Quote
  #25  
Old 09-21-2002, 07:46 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Bwahaha upgrade account for me and i will make one like it for you
__________________
- R0bin
Reply With Quote
  #26  
Old 09-21-2002, 02:18 PM
LilbrojX LilbrojX is offline
why dont you marry it?
LilbrojX's Avatar
Join Date: Mar 2001
Location: hmm
Posts: 1,465
LilbrojX is on a distinguished road
Send a message via AIM to LilbrojX Send a message via Yahoo to LilbrojX
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
__________________

http://www.dictionary.com/search?q=arrogant
kai is an expert on all things arrogant
Reply With Quote
  #27  
Old 09-21-2002, 02:24 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
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
__________________
V$:CONFL16T
Reply With Quote
  #28  
Old 09-21-2002, 02:27 PM
LilbrojX LilbrojX is offline
why dont you marry it?
LilbrojX's Avatar
Join Date: Mar 2001
Location: hmm
Posts: 1,465
LilbrojX is on a distinguished road
Send a message via AIM to LilbrojX Send a message via Yahoo to LilbrojX
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...
__________________

http://www.dictionary.com/search?q=arrogant
kai is an expert on all things arrogant
Reply With Quote
  #29  
Old 09-21-2002, 04:23 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Magnoria... sounds a bit like maloria

just the name :P
__________________
- R0bin
Reply With Quote
  #30  
Old 09-22-2002, 11:25 AM
LilbrojX LilbrojX is offline
why dont you marry it?
LilbrojX's Avatar
Join Date: Mar 2001
Location: hmm
Posts: 1,465
LilbrojX is on a distinguished road
Send a message via AIM to LilbrojX Send a message via Yahoo to LilbrojX
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..?"
__________________

http://www.dictionary.com/search?q=arrogant
kai is an expert on all things arrogant
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:40 PM.


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