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 10-29-2003, 03:12 PM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
Quote:
Originally posted by osrs


#v(playerscount)..?
I was giving an example of what could be done with the other command. That is why both descriptions is in a paragraph so to give a basic explanation and example.
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #17  
Old 11-01-2003, 04:35 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
I have another idea:

Have the string commands that we take for granted (replacestring, insertstring, deletestring, removestring) be usable for arrays. Like, have a 'replacearray' command, or 'insertarray' or 'deletearray' etc...
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #18  
Old 11-01-2003, 04:57 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by ForgottenLegacy
I have another idea:

Have the string commands that we take for granted (replacestring, insertstring, deletestring, removestring) be usable for arrays. Like, have a 'replacearray' command, or 'insertarray' or 'deletearray' etc...
in the new engine... and why would you need replacearray? oO var[index]=
Reply With Quote
  #19  
Old 11-18-2003, 07:26 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Some commands that would be nice would be
NPC Code:

setplayercomments account,"comments";
message #s(getcomments(account));
message #s(getban(account));


This would be so we wold not have to give our GPs RC, so they can set the comments of a player via script, and resd them too.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #20  
Old 11-18-2003, 07:36 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I believe, since the new engine allows the RC to be scripted, that, along with ban and such, is all possible.
Reply With Quote
  #21  
Old 11-19-2003, 01:07 AM
MrGannondorf MrGannondorf is offline
Teh Lunpa
Join Date: Apr 2002
Location: usa, alas
Posts: 395
MrGannondorf is on a distinguished road
Send a message via AIM to MrGannondorf
oo yes! scriptable rc interface!!!! thought I supose that makes my ingame-rc gui idea obsol33t.... oh well...

Anyhow, I don't think commands that 'support lazyness' are a bad thing, since it would make it alot faster to create stuff. Less to type sounds more like 'efficiency' to me, than 'lazyness'.

A command that would compleatly suport lazyness would be something like...

NPC Code:
putnpc player[index].idea;



Graal needs a mind reading variable.
__________________
Reply With Quote
  #22  
Old 11-19-2003, 01:55 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by MrGannondorf
Less to type sounds more like 'efficiency' to me, than 'lazyness'.
Less doesn't mean more efficient
Reply With Quote
  #23  
Old 11-19-2003, 02:30 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by MrGannondorf
Anyhow, I don't think commands that 'support lazyness' are a bad thing, since it would make it alot faster to create stuff. Less to type sounds more like 'efficiency' to me, than 'lazyness'.
Hi, you're not listening.

I could write a three-line script and an eighteen+ line script to do the same thing. The three-line script'd be preferable for conveniences's sake - it's not like it's any more efficient. If you want to make a complicated script into a single command, turn it into a function, and use it in your scripts. There's no sense in adding commands for simply-doable scripts, just because some scripters are too lazy to script it for themselves.
Reply With Quote
  #24  
Old 11-19-2003, 02:40 AM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
Efficient Laziness.

replacearray var?? X.x

I was thinking of something like
myvar = {0,1,2,3,4};
deletearrvar 2;
then have myvar = {0,1,3,4};
... buuuuuut there's another way to do this I think. I haven't tested it out yet though so I'm not completely sure.
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #25  
Old 11-19-2003, 02:53 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by DarkShadows_Legend
Efficient Laziness.

replacearray var?? X.x

I was thinking of something like
myvar = {0,1,2,3,4};
deletearrvar 2;
then have myvar = {0,1,3,4};
... buuuuuut there's another way to do this I think. I haven't tested it out yet though so I'm not completely sure.
It's not really advisable to use things that you don't understand in your scripts.
Reply With Quote
  #26  
Old 11-19-2003, 03:07 AM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
There is a way to do that though isn't there?
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #27  
Old 11-19-2003, 03:10 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by DarkShadows_Legend
There is a way to do that though isn't there?
Naturally. My best advice for any scripting problem is to think about just how such a command would work, and then script it.
Reply With Quote
  #28  
Old 11-19-2003, 04:21 AM
MrGannondorf MrGannondorf is offline
Teh Lunpa
Join Date: Apr 2002
Location: usa, alas
Posts: 395
MrGannondorf is on a distinguished road
Send a message via AIM to MrGannondorf
o.o a lazy method. and its not to efficient on helping him get the command learned. oh, and fyi, thats sarcasm.

a command I'd like to see would be one to forcedownload files from remote servers.

forexample, lets say I have a cool mp3, thats just a *tad* to big to put on the ftp, or a pwa says we can't have it on the ftp, because graal doesn't want to be resposible for it being on thier ftp if it turns out to be copyrighted, or whatever reason you want that it would not be on the server's main ftp........

anyways, but its nice to have the file on the person's computer or in cache or something so it can be used.

so, one could script the npc to open a browser pointed at the url of the download... and hope that the player has the compitence to know where to put it, even after being told (wich most lack)...

or you could have it invisibly download behind the scenes, and come to the right place O.O

and if such a command does exist, then YATTA!
__________________
Reply With Quote
  #29  
Old 11-19-2003, 04:31 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally posted by MrGannondorf
o.o a lazy method. and its not to efficient on helping him get the command learned. oh, and fyi, thats sarcasm.
Making sense is rather underrated these days, isn't it? When scripters speak of efficiency, they speak of script efficiency - how stupid the wannabe-scripter is has nothing to do with it.
Reply With Quote
  #30  
Old 11-20-2003, 01:59 AM
MrGannondorf MrGannondorf is offline
Teh Lunpa
Join Date: Apr 2002
Location: usa, alas
Posts: 395
MrGannondorf is on a distinguished road
Send a message via AIM to MrGannondorf
wow, scripters seem to have thier own solcial clicks, too.
just a small point you guys seem to neglect though...

Just because a potentual comand could make what would be a more complex script into a simple script, doesn't garentee that the command would be ineficient for the game to process, etc.

What you guys make it seem like, weather its your own thickheadedness or the inability to effectivly make a point, is that because there is a chance the new command in question could be taxing on the game, the command should be rule out of all consideration altogether.

Or are you afriad it would make your scripts seem mundane and have to think of new stuff?

I think the amount of content for the server you can make with one's methods should also be calculated somehow into what makes it efficient: not just how well it runs.
__________________
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 12:26 AM.


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