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 02-04-2005, 11:40 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
I will refuse to come back to that with fierce insults because I am not like that. What would be good however is if you dont assume the worst of everyone.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #2  
Old 02-05-2005, 12:16 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by falco10291029
I will refuse to come back to that with fierce insults because I am not like that. What would be good however is if you dont assume the worst of everyone.
While I do not agree with Kaimetsu's mention of reading the rules in this thread, I think he made the correct assumption about posting entire scripts. Nine tenths of the newbie scripters out there, will simply copy and paste the code, even if they have the initial intent to learn it, a free piece of code is much more attractive than sitting there and trying to figure out on your own the proper procedure.

The solution to that is to give the person hints as to how he can make it, instead of giving the entire script. That way, the rules will remain enforced, and the person who is requesting help, will get what he is requesting.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #3  
Old 02-05-2005, 02:00 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
It is fairly basic scripting, and everyone must start somewhere, and not everyone is sure where to start.

What of all the scripts Stefan has posted to help people become more advanced with newer gscript additions? Should Stefan also Adhire to the rules of not posting full scripts, and leave his documents and script to himself?

Where would you be without those? Asking for help, unless you were a part of designing it, or just somehow knew all the commands before they were finished.

First he has not really said if he is using this offline or online, That would have helped a bit in giving him more help, however I assume he would like to use it online.

NPC Code:

if (actionserverside) {
playerhearts += 3;
removeweapon Healer;
}
//#CLIENTSIDE
if (weaponfired) {
triggeraction 0,0,serverside,Healer;
}



You just need to add the weapon to yourself with a simple addweapon line, you can use whatever means you find neccessary to do this, however I did it like so.

NPC Code:

if (playerenters) {
addweapon Healer;
}



Simple Barebones 1 use Healing item to heal 3 hearts, you can only have one at a time, but you can always go back for more.
__________________
Reply With Quote
  #4  
Old 02-05-2005, 02:34 AM
Methril Methril is offline
Registered User
Join Date: Jan 2005
Posts: 237
Methril is on a distinguished road
Goodjob Andy, I'm glad that someone was decent enough to help the guy out with a simple question.

Kaimetsu, we know that you are a l33t7!1oneone scripter but you don't own gscript and your ideal way of teaching gscript to people is less than fantastic.
Reply With Quote
  #5  
Old 02-05-2005, 05:13 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
By the way, I learned to script from the Copy+Paste method. Although, unlike most newbie scripters today, I had an extra step called Experiment. I found whole scripts, put them in the editor, and played around with the script until I broke it or made something really cool. Most people today just use the script they find and never really try to learn something from it.

Last edited by Lance; 02-05-2005 at 07:35 AM.. Reason: flaming/spam removed
Reply With Quote
  #6  
Old 02-05-2005, 07:13 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Andy0687
It is fairly basic scripting, and everyone must start somewhere, and not everyone is sure where to start.
We gave him ideas of where to start, you should not have posted full code. Especially seeing as how that is NOT the best way to do it.

Quote:
Originally Posted by Andy0687
What of all the scripts Stefan has posted to help people become more advanced with newer gscript additions? Should Stefan also Adhire to the rules of not posting full scripts, and leave his documents and script to himself?
Stefan has posted NEW material, and also, things that are helpful to everyone, and not demanded by one person.

Quote:
Originally Posted by Andy0687
Where would you be without those? Asking for help, unless you were a part of designing it, or just somehow knew all the commands before they were finished.
Once again, if you really wanted to help him, you would not have posted entire code for him to copy+paste. We gave him the commands to use, he could have easily have put them together, and actually learned something.


Quote:
Originally Posted by Andy0687
blah blah, code here
You should have either done the heart manipulation clientside, or what my other post suggested, and did a check to see if the player's AP is below fourty.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #7  
Old 02-05-2005, 07:42 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 Andy0687
What of all the scripts Stefan has posted to help people become more advanced with newer gscript additions? Should Stefan also Adhire to the rules of not posting full scripts, and leave his documents and script to himself?
You should actually read the rule you're criticizing. It says not to post full scripts to solve people's problems. Posting a full script you designed and want to show off or want to release to the public certainly does not fit the rule's description.
Reply With Quote
  #8  
Old 02-06-2005, 01:40 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally Posted by Lance
You should actually read the rule you're criticizing. It says not to post full scripts to solve people's problems.
So some problems some people were having getting adjusted to the new gscript engine, was not solved by Stefan creating example code?

Say i was eager to use the RC Item he posted, had he not posted, would many people have had a way to do it alone?

I am just saying, Stefan has helped solve a lot of problems by posting his code, I am not criticizing the rule, but bringing it into a diffrent perspective.
__________________
Reply With Quote
  #9  
Old 02-06-2005, 01:45 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Andy0687
So some problems some people were having getting adjusted to the new gscript engine, was not solved by Stefan creating example code?

Say i was eager to use the RC Item he posted, had he not posted, would many people have had a way to do it alone?
The RC Item he posted was not example code. It was a tool that people can use on their server because it is not installed by default.


Quote:
Originally Posted by Andy0687
I am just saying, Stefan has helped solve a lot of problems by posting his code, I am not criticizing the rule, but bringing it into a diffrent perspective.
Stefan has never posted code that was demanded from someone who did not attempt to script something theirselves. Like Lance said, read the rule before you so blatantly post about it being broken.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #10  
Old 02-06-2005, 11:59 PM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally Posted by ApothiX
The RC Item he posted was not example code.
So your saying this weaponRC which he posted, contains no example of how to use gscript2 in an item, and by looking at it, it might not give you any hint as to how to do something you want.

Quote:
Stefan has never posted code that was demanded from someone who did not attempt to script something theirselves.
How many times have you tried scripting the new RC?
On the other side of that coin, how many times have people asked "When will the scripted RC be done?"

Quote:
Like Lance said, read the rule before you so blatantly post about it being broken.
You must be slightly thick, I posted about no rule being broken, I simply asked a rhetorical question, which just so happened to concern said rule.

Hey if you cant point out to me where I said "Stefan breaks the NPC forum rules" then I will be glad to apologize, but the problem is, you wont find where I said that, because I didnt.
__________________
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:12 AM.


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