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
  #1  
Old 07-23-2001, 03:13 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Post New Ideas

that way you can do something like..

rote#s(string)();

so you can do different things like..

function rote1(){}

function rote2(){}

instead of having if (strequals(#s(rote),1)){
rote1();}

it would be alot easier and cut down on scripting.

;-)

Reply With Quote
  #2  
Old 07-23-2001, 07:13 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Dont you hate it when like 74 people view ur post and 0 repspond? LOL
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #3  
Old 07-23-2001, 07:51 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Ummmmmm

Warcaptian...... what.... the hell are you talking about?
__________________

To the sun of your age, I arise
Reply With Quote
  #4  
Old 07-23-2001, 08:42 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Re: Ummmmmm

Quote:
Originally posted by TB3
Warcaptian...... what.... the hell are you talking about?
He's trying to say that he wants the possibility of using strings in certain places when calling functions etc.
Although it'd just be better if they added the possibility for adding arguments to functions.
__________________

Reply With Quote
  #5  
Old 07-23-2001, 11:05 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Shes so smart!!!
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #6  
Old 07-23-2001, 11:12 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by ownerofbabylon
Shes so smart!!!
Hmm, I'll give you a standard answer:
  1. No I don't want to:
  2. Be your Girlfriend
  3. Work on your server
Since I noticed you keep saying such things.
__________________

Reply With Quote
  #7  
Old 07-23-2001, 11:17 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
LOL, I know. First off im 15 and I dont need a 20 year old GF on the internet. Second, I would like if you helped but your not needed that badly. Third, I was saying those things as a joke because You go to everyones post who doesnt know somthing and script it. Your kinda like a female Kaimetsu.

Sorry, I will stop now
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #8  
Old 07-23-2001, 11:32 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

I have never ever gotten what you mean arguments in a function?

I never really learned functions in my ---vast--- experience with C++ so are arguments the stuff in the ()'s?

Or do you mean arguments as in && and ! and || and hi.
Reply With Quote
  #9  
Old 07-23-2001, 11:38 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by Brady2
Jadis:

I have never ever gotten what you mean arguments in a function?

I never really learned functions in my ---vast--- experience with C++ so are arguments the stuff in the ()'s?

Or do you mean arguments as in && and ! and || and hi.
Here, I'll give you a bit of code:
NPC Code:
this.z=multiplier(2,1);
function Multiplier(var1,var2) {
return var1*var2;
}


That's what I'm talking about. That you can use those var1 var2 things.
__________________

Reply With Quote
  #10  
Old 07-23-2001, 11:42 PM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

Oh..
Ok..
I see... Oh wait.. No I don't.
I should go read some C++ tutorial or something.
Thanks though..
Reply With Quote
  #11  
Old 07-24-2001, 01:48 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
Hey i'm in tb3's sig i feel the love.
Reply With Quote
  #12  
Old 07-24-2001, 03:42 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
let me give you two pieces of code to show you
NPC Code:

//Code 1 - Functions take arguments
function happy(a,b) {
return a*b;
}
variable = happy(2,2);



NPC Code:

//Code 2 - No arguments
fucntion happy() {
this.return=a*b;
}
a=2;
b=2;
happy();
variable=this.return



in both cases variable winds up equaling 4...but notice how much shorter Code 1 is than code 2
Reply With Quote
  #13  
Old 07-24-2001, 04:14 AM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by General
let me give you two pieces of code to show you
NPC Code:

//Code 1 - Functions take arguments
function happy(a,b) {
return a*b;
}
variable = happy(2,2);



NPC Code:

//Code 2 - No arguments
fucntion happy() {
this.return=a*b;
}
a=2;
b=2;
happy();
variable=this.return



in both cases variable winds up equaling 4...but notice how much shorter Code 1 is than code 2
Well yes, it can be done like that but something like this won't work as good with that:
NPC Code:
function multiplier(var1,var2) {
return var1*var2;
}
blah=1;
blahblah=2;
blahblahblah=3;
this.a=multiplier(blah,blahblah);
this.b=multiplier(blahblah,blahblahblah);


__________________

Reply With Quote
  #14  
Old 07-24-2001, 09:06 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Jadis:

Golly guys
I appreciate this as much as I do when ma cooks me some macaroni!

Anyway gracias para me ayudando.
Reply With Quote
  #15  
Old 07-24-2001, 09:09 AM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
Quote:
Originally posted by grim_squeaker_x
Hmm, I'll give you a standard answer:
  1. No I don't want to:
  2. Be your Girlfriend
  3. Work on your server
Since I noticed you keep saying such things.
ROFL!! Thats funny =D
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #16  
Old 07-24-2001, 09:46 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
haha lord walnut or whatever got told
Reply With Quote
  #17  
Old 07-24-2001, 11:05 AM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
Quote:
Originally posted by Merlin
haha lord walnut or whatever got told
WALNUT ROFLMAO!!! =D
__________________
Xerphier Dintch
Featuring
Reply With Quote
  #18  
Old 07-24-2001, 12:12 PM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
lol @ walnut
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:46 AM.


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