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 11-25-2003, 07:03 AM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
Quote:
Originally posted by ForgottenLegacy
However, commands like showtext, allthough necessary, were just added to promote lazyness. I hope you understand now. (Do not remove 'showtext'! I use it all the time!)
I like the showimg 1,@@@ stuff better, because it actually works serverside with an ID < 100. I've tried showtext serverside with an ID < 100, and it doesn't work.
Reply With Quote
  #2  
Old 11-25-2003, 07:15 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 ForgottenLegacy
I would like to see the code, Lance, so I can see how you guys do it. Is it the same code you used on the old Graal 2002 bows? Where you click and the arrow lands where you clicked?
I said "can be" not "I have." It's unnecessary to do so, thus I haven't. And, no, while such things may use the shoot command, what you speak of is extra stuff added to it.

Quote:
Originally posted by xManiamaNx


I like the showimg 1,@@@ stuff better, because it actually works serverside with an ID < 100. I've tried showtext serverside with an ID < 100, and it doesn't work.
In what are you showing such text?
Reply With Quote
  #3  
Old 11-26-2003, 04:46 AM
Hevaricubed Hevaricubed is offline
Registered User
Join Date: Aug 2003
Posts: 262
Hevaricubed is on a distinguished road
Send a message via AIM to Hevaricubed Send a message via Yahoo to Hevaricubed
lol lazyness.

for(i=0;i<10;i++;) {

}

==

i=0;
while (i<10) {

i++;
}

you think not?

Hit F6.
__________________
Reply With Quote
  #4  
Old 11-26-2003, 04:49 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 Hevaricubed
lol lazyness.

for(i=0;i<10;i++ {

}

==

i=0;
while (i<10) {

i++;
}

you think not?

Hit F6.
You're missing the point. Some people are requesting commands for things which can easily be scripted, just so they don't have to script it themselves. There's a difference between a time-saving command and one which is incarnated just because of someone's laziness. In other words, they're asking for something that they'll only use once or twice, not a script command which would come into use frequently.
Reply With Quote
  #5  
Old 11-26-2003, 05:14 AM
Hevaricubed Hevaricubed is offline
Registered User
Join Date: Aug 2003
Posts: 262
Hevaricubed is on a distinguished road
Send a message via AIM to Hevaricubed Send a message via Yahoo to Hevaricubed
Re: Suggested commands?

The rotate commands are very good ideas, and i doubt they are original ideas.
They will probally be introduced in this new scripting language ive been hearing about.
__________________
Reply With Quote
  #6  
Old 12-04-2003, 05:41 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
replacestring2 list,text,text;

replaces the string at position 'index' with 'text'

Or is there one o_O?
Reply With Quote
  #7  
Old 12-04-2003, 05:43 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 napo_p2p
replacestring2 list,text,text;

replaces the string at position 'index' with 'text'

Or is there one o_O?
You listed two text params, yet only defined one in your explanation.

What you explained is actually the replacestring command.

It seems like you want to modify a substring of a member of a string list. Is this correct? If so, just use #e o_O
Reply With Quote
  #8  
Old 12-05-2003, 06:49 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally posted by Lance


You listed two text params, yet only defined one in your explanation.

What you explained is actually the replacestring command.

It seems like you want to modify a substring of a member of a string list. Is this correct? If so, just use #e o_O
sorry i meant to say
replaces the string 'text' with new 'text'

I can use #e. I guess this command would just promote laziness ....
Reply With Quote
  #9  
Old 12-05-2003, 07:23 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally posted by napo_p2p


sorry i meant to say
replaces the string 'text' with new 'text'

I can use #e. I guess this command would just promote laziness ....
You don't need #e:

setstring this.array,a,b,c,def;
this.replace = lindexof(c, this.array);
replacestring this.array,this.replace,replaced;

would replace "c" with "replaced" making this.array = a,b,replaced,def
Reply With Quote
  #10  
Old 12-05-2003, 08:15 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 Riot

You don't need #e
Reading is apparently underrated, man, as I said #e would work if he was trying to replace part of a string in a string list, not a whole string.
Reply With Quote
  #11  
Old 12-06-2003, 10:22 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally posted by Lance


Reading is apparently underrated, man, as I said #e would work if he was trying to replace part of a string in a string list, not a whole string.
I was under the impression that he wanted to replace "text" with "new text" in a string list. Which is what I gave him.

Sorry if I misunderstood.
Reply With Quote
  #12  
Old 12-07-2003, 06:26 PM
KuJiGX KuJiGX is offline
Registered User
Join Date: Dec 2003
Location: New York
Posts: 52
KuJiGX is on a distinguished road
Send a message via AIM to KuJiGX
Well they should have a disablesword command. But not needed as i found a way to disable sword myself :-)
http://forums.graal2001.com/forums/s...threadid=49531 <---
__________________
-KuJi
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 05:23 PM.


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