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, 10:11 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
You can't just assume they won't look at it and will just copy it. When I asked for help, the few times I got it :/, I looked to see what I did wrong, and then constantly made sure to do that in new scripts. that's just me, but I am sure that people are more apt to do this than you think.
__________________
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-04-2005, 11:08 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by falco10291029
You can't just assume they won't look at it and will just copy it. When I asked for help, the few times I got it :/, I looked to see what I did wrong, and then constantly made sure to do that in new scripts
I would not like to assume that everybody in the world is like you.
__________________
Reply With Quote
  #3  
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
  #4  
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
  #5  
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
  #6  
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
  #7  
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
  #8  
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
  #9  
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
  #10  
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
  #11  
Old 02-06-2005, 02:59 PM
Inspiration Inspiration is offline
7 Words
Inspiration's Avatar
Join Date: Oct 2004
Location: New York
Posts: 826
Inspiration is on a distinguished road
Send a message via AIM to Inspiration
I agree with both sides of this to an extent.

I myself need help with scripting a lot, but I always TRY to do it myself, and then go for help if I am totally clueless as how to achieve the effect I want.

However, the script this person is asking for, is simple functions that I'm sure even someone who has never scripted before could figure out just by reading the commands.

Theres a huge difference between "GUYS CAN I PLZ HAVE THIS SCRIPT I DONT KNOW HOW 2 DO IT"

and

"Here's what I've tried so far, and none of this seems to be working, can someone explain to me what I need to add, or what I'm doing wrong"

You can learn a lot by cuting and pasting code, but only if you understand what the code your pasting is doing. Whenever someone helps me, I normally as them what they did to make it work if I can't figure it out myself by looking at their changes.
__________________
How to start your own project:

1. Annoy everybody on an existing project by submitting or proposing changes that they don't want
2. Formally declare all existing projects to be complete crap
3. Talk at great length about the deficiencies of other projects
4. Get drunk
5. ???
6. Profit
Reply With Quote
  #12  
Old 02-17-2005, 02:45 AM
jas988 jas988 is offline
Registered User
Join Date: Feb 2005
Posts: 14
jas988 is on a distinguished road
Sorry about the off topicness but I can't believe I started all this. anyway... I tried

sethearts full

and

sethearts 3


but I can't do it.
Reply With Quote
  #13  
Old 02-17-2005, 02:49 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,746
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
isn't it:
NPC Code:
playerhearts = value;


?
__________________
Save Classic!
Reply With Quote
  #14  
Old 02-17-2005, 02:50 AM
jas988 jas988 is offline
Registered User
Join Date: Feb 2005
Posts: 14
jas988 is on a distinguished road
I'll trx it later. but thx in advance!
Reply With Quote
  #15  
Old 02-17-2005, 03:29 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Man, somebody already gave you a full script. Doesn't your server have any scripters?
__________________
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 02:11 PM.


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