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, 08:39 PM
jas988 jas988 is offline
Registered User
Join Date: Feb 2005
Posts: 14
jas988 is on a distinguished road
How do I make items that heal health?

I need an item NPC that becomes an item, and when you use it, it heals 3 hearts then is destroyed, and you can only have one at a time.
Reply With Quote
  #2  
Old 02-04-2005, 08:43 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Read the rules.
__________________
Reply With Quote
  #3  
Old 02-04-2005, 08:53 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Why is the topic asking for this and then the post itself demanding for this?

Read Kai's post.
__________________
Reply With Quote
  #4  
Old 02-04-2005, 08:56 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
x-x why don't you just answer his question
Reply With Quote
  #5  
Old 02-04-2005, 09:00 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 Stefan
x-x why don't you just answer his question
If people are spoon-fed this kind of thing, they never bother to learn. I think it is better in the long-term if they are encouraged to think for themselves.
__________________
Reply With Quote
  #6  
Old 02-04-2005, 09:24 PM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
Quote:
Originally Posted by Kaimetsu
If people are spoon-fed this kind of thing, they never bother to learn. I think it is better in the long-term if they are encouraged to think for themselves.
Then offer some advice or direction or something, instead of just saying "read the rules"
I am sure there are tutorials or something that he could be directed to.
I dont see why simple scripts cannot be given
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote
  #7  
Old 02-04-2005, 09:47 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 Darlene159
Then offer some advice or direction or something, instead of just saying "read the rules"
I am sure there are tutorials or something that he could be directed to
Yeah, they are contained in the 'Advice' thread, right at the top of the forum. I do not think they are difficult to find.

Quote:
I dont see why simple scripts cannot be given
Well, it is not up to me. I am not a moderator, after all. I am just informing the thread's creator that he is in violation of the rules.

However, I do agree with the rule. Giving scripts - simple or otherwise - encourages people to get lazy and stop thinking for themselves. More likely than not, they will simply copy the script into their levels without stopping to understand why it works. This is a Bad Attitude. Forcing people to solve problems by themselves leads to them learning, and being able to fend for themselves in the future. Even if it seems harsh, it is for the best in the long-term.

In any case, he didn't even give us enough information to definitively answer his question. He was ambiguous. Items on GK are different to items on 2K1 are different to items on Classic, etc. And does the relevant environment have a custom HP system? At the very least, he should learn to ask questions in a concise, unequivocal manner.
__________________
Reply With Quote
  #8  
Old 02-05-2005, 07:40 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 Darlene159
Then offer some advice or direction or something, instead of just saying "read the rules"
I am sure there are tutorials or something that he could be directed to.
I dont see why simple scripts cannot be given
"Read the rules" is not advice or direction?

I should direct you to several posts where you have closed them with "Read the rules."

Last edited by Lance; 02-05-2005 at 08:02 AM..
Reply With Quote
  #9  
Old 02-07-2005, 01:35 AM
Sildae Sildae is offline
Elven sorceress!
Sildae's Avatar
Join Date: Dec 2001
Location: Lothlòrien
Posts: 159
Sildae is on a distinguished road
Quote:
Originally Posted by Darlene159
Then offer some advice or direction or something, instead of just saying "read the rules"
Search: Key Words: "Read the rules"; ; Posts Made By: Darlene159
How did you ever become moderator? Stephane needs to remove you for being a hopeless hypocrite. Your moderation style is a lot worse and more rude than Kaimetsu's (completely justified and appropriate) post, and combined with this post of yours shows that you really lack any respect you should have for Graalians.

Quote:
I am sure there are tutorials or something that he could be directed to.
You have never bothered learning scripting. You have never bothered understanding how scripting works, how to learn it and people's mentality about it. You know nothing about it.
Then you come into this forum and make it sound as if it all was about tutorials, downplaying all the effort people have put into scripting over the years.
Why do you not make an announcement, link to the tutorials you are speaking of, and close this forum once and for all to prevent people from trying to sensibly discuss scripting?

Quote:
I dont see why simple scripts cannot be given
After all the times it has been explained in this forum? Why do you not read the things people write here? I do not think that this forum is the right place for your self-righteous manner.

Quote:
__________________
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man."
-- George Bernard Shaw

Last edited by Sildae; 02-07-2005 at 02:18 AM..
Reply With Quote
  #10  
Old 02-05-2005, 07:39 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 Stefan
x-x why don't you just answer his question
I would say it is because this person is asking for a script fitting his description rather than asking how to script something fitting his description. We do the latter, not the former.
Reply With Quote
  #11  
Old 02-05-2005, 07:42 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Lance
I would say it is because this person is asking for a script fitting his description rather than asking how to script something fitting his description. We do the latter, not the former.
Perhaps you should read the topic of this thread?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #12  
Old 02-05-2005, 07:44 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 ApothiX
Perhaps you should read the topic of this thread?
Now what?

Perhaps you should examine the wording of his post.
Reply With Quote
  #13  
Old 02-08-2005, 04:07 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Quote:
Originally Posted by Stefan
x-x why don't you just answer his question
I don't recall there being a question. This is more of one of those "give me give me give me" type of threads. It would be much too simple to just give away such things, and in which case he would learn nothing, which deduces us to nothing more than his scripting *****s =/ Plus if he wants it, and he isn't willing to learn, he should hire a NAT x.x
__________________
Who has time for life these days?
Reply With Quote
  #14  
Old 02-04-2005, 09:46 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
you want to have an NPC with the event "playertouchsme"

then you probably want to add a healing weapon to the player using the "addweapon" command

this will be really hard to do if you can't understand basic scripting yet, I didn't learn from any documents besides commands.rtf so I can't say what things would be helpful to read
__________________

Reply With Quote
  #15  
Old 02-04-2005, 09:50 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Evil_Trunks
this will be really hard to do if you can't understand basic scripting yet
This IS basic scripting.

as an addition to Evil_Trunks' post, look up the 'playerhearts' variable, and remember to check if the player's AP is above 40, before healing them. (I can't remember if the check is already done for you if the heart manipulation is done clientside or not)


Quote:
Originally Posted by Kaimetsu
Read the rules.
Quote:
Originally Posted by Kaimetsu
If people are spoon-fed this kind of thing, they never bother to learn.
There are ways to get them started in the right direction, instead of just blurting out the script. The subject of his post was 'How do i..' NOT 'Script X for me'. It is not against the rules.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
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 11:25 PM.


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