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 05-03-2005, 01:53 PM
Jaquet Jaquet is offline
Sae Zakuto
Join Date: Sep 2004
Location: Illinois, USA
Posts: 256
Jaquet is on a distinguished road
Send a message via AIM to Jaquet Send a message via MSN to Jaquet Send a message via Yahoo to Jaquet
Item Drop System?

I was wondering where I could find a script for an Item drop system or if someone can post one on here.
Reply With Quote
  #2  
Old 05-07-2005, 11:22 AM
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
I have deleted some posts here because they were just rude. Please someone post a link to an item system resource or at least help with a simple putnpc2 example and item strings.
Reply With Quote
  #3  
Old 05-07-2005, 05:14 PM
Deek2 Deek2 is offline
Registered User
Join Date: May 2002
Location: Springfield, Missouri
Posts: 1,578
Deek2 is on a distinguished road
Quote:
Originally Posted by Stefan
I have deleted some posts here because they were just rude. Please someone post a link to an item system resource or at least help with a simple putnpc2 example and item strings.
No offense, but I think it kinda destroys the fundamentals of being a scripter if you don't have the motivation (and possible future learning experiences) of just making your own scripts.
Reply With Quote
  #4  
Old 05-07-2005, 05:49 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Post whole systems is not allowed, but I can give you an advice; An item drop systems is not complicated, if you think a little bit before start scripting.
Let's see how it would work first:

1st) You need check if you have items, if yes, introduce them into a string list;
2nd) If you have selected wich item you want to drop, you will have to use a putnpc2(), this command will create a new npc on level, so you will need to set some attributes for it. (like it's name, the image of the weapon)

After dropping, use 'with()'; That will act directly where you tell it to act, in this case, on last npc created.

NPC Code:

with(npcs[npcscount-1]){
setstring this.itemname,ITEM_NAME;
setstring this.itemimage,ITEM_IMAGE;
}



You told 'with()' to act on npcs, and specified wich npc, that is why I used 'npcscount-1', 'npcscount' will get the quantity of npcs that exist on level and '-1' will be yours, the last one dropped.

You can find more information about strings,putnpc2 using, with(), by doing a forum search.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /

Last edited by osrs; 05-07-2005 at 07:15 PM..
Reply With Quote
  #5  
Old 05-07-2005, 06:44 PM
Luigi203 Luigi203 is offline
Hamma Time
Luigi203's Avatar
Join Date: Mar 2003
Location: North East PA
Posts: 285
Luigi203 is on a distinguished road
Send a message via AIM to Luigi203
If he had to ask for the whole script, then your explanation was to advanced for him. Also, why are you using thiso.?
__________________


CAUTION
Reply With Quote
  #6  
Old 05-07-2005, 06:51 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by Luigi203
Also, why are you using thiso.?
You can only use 'thiso' if you are using with() to get to another NPC.
And sorry, I did a mistake there, a 'this.' var would be fine in that example.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /

Last edited by osrs; 05-07-2005 at 07:16 PM..
Reply With Quote
  #7  
Old 05-07-2005, 07:43 PM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
I have the old item system i made for atrius a year or two ago, if everyones alright with me posting it...
Reply With Quote
  #8  
Old 05-07-2005, 08:00 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
Quote:
Originally Posted by Gman4pwnu
I have the old item system i made for atrius a year or two ago, if everyones alright with me posting it...
well apparently Stefan is alright with breaking the forum rules so go ahead
__________________

Reply With Quote
  #9  
Old 05-07-2005, 09:06 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 Evil_Trunks
well apparently Stefan is alright with breaking the forum rules so go ahead
Apparently Stefan doesn't agree with the rules of the scripting forum. Also, some people treat others way to harshly, and are really rude
__________________
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
  #10  
Old 05-07-2005, 09:28 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
I am quite pissed at people who think they need to enforce the rules if they don't even know them themself. The rule is about not just posting tons of scripts without explaination. A good documented script or helpful documentation can be posted, or be added to the sticky threads. Do you think the rule was made to prevent posting any code that could be used in the game?? If you have scripts without documentation it is possible to post them on graal.net and put a link to that in your post, if it contains good documentation then you can also directly attach it your post or ask a GST to approve it as official documentation.
Reply With Quote
  #11  
Old 05-07-2005, 09:59 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by Darlene159
Apparently Stefan doesn't agree with the rules of the scripting forum. Also, some people treat others way to harshly, and are really rude
Posting full examples of scripting wouldn't be really good, but helping as most as possible is, and yes, some people here are very rude and stupid when helping or correcting other persons.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #12  
Old 05-07-2005, 10:02 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
Quote:
Originally Posted by Stefan
I am quite pissed at people who think they need to enforce the rules if they don't even know them themself.
ASDF WHY DIDNT WE GET MARRIED BEFORE, I SO AGREE

Now you guys know why i lose it when A CERTAIN SOMEBODY ALWAYS GOES "clos thred plz!!!!"
__________________
Reply With Quote
  #13  
Old 05-07-2005, 10:17 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 Stefan
I am quite pissed at people who think they need to enforce the rules if they don't even know them themself. The rule is about not just posting tons of scripts without explaination. A good documented script or helpful documentation can be posted, or be added to the sticky threads. Do you think the rule was made to prevent posting any code that could be used in the game?? If you have scripts without documentation it is possible to post them on graal.net and put a link to that in your post, if it contains good documentation then you can also directly attach it your post or ask a GST to approve it as official documentation.
If you are talking to me, I get mad when everytime someone posts scripts to help someone, certain people jump up and say "Don't give people scripts, they will be lazy and wont learn anything" or something to that effect. I hate the way people are treated in the scripting forum, and whenever I say something about it, I get yelled at
__________________
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
  #14  
Old 05-07-2005, 10:19 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally Posted by Darlene159
I hate the way people are treated in the scripting forum, and whenever I say something about it, I get yelled at
To be honest, there are only two people that treat people as trash here, but I won't say names, I want to prevent fights.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #15  
Old 05-07-2005, 11:54 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
Quote:
Originally Posted by Darlene159
If you are talking to me, I get mad when everytime someone posts scripts to help someone, certain people jump up and say "Don't give people scripts, they will be lazy and wont learn anything" or something to that effect. I hate the way people are treated in the scripting forum, and whenever I say something about it, I get yelled at
I dont want to put any words into people's mouths but I think he's talking about normal players who begin to complain, *****, and pretend they know the rules and can enforce them.

Quote:
Originally Posted by osrs
To be honest, there are only two people that treat people as trash here, but I won't say names, I want to prevent fights.
Osrs I luv u 2 _^__^
__________________
Reply With Quote
  #16  
Old 05-08-2005, 01:25 AM
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
Quote:
Originally Posted by Darlene159
If you are talking to me,
Not really to you, but I didn't felt like I should delete all posts again x-x

I understand them, new people should first read the rules and not ask for complete scripts, but for help in specific problems.
But I am telling people to use the scripting forum to get help, and if some experienced scipter reads such a post then he/she can give links to places where you find the good resources and code examples, or explain what an item system is about. And if you feel that you don't want to answer because you think the poster is not experienced enough for such stuff then just don't answer. It would be the task of the forum moderators to manage the case if the thread turns out to be a code desert or whatever.
Reply With Quote
  #17  
Old 05-08-2005, 05:13 AM
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 Stefan
Not really to you, but I didn't felt like I should delete all posts again x-x

I understand them, new people should first read the rules and not ask for complete scripts, but for help in specific problems.
But I am telling people to use the scripting forum to get help, and if some experienced scipter reads such a post then he/she can give links to places where you find the good resources and code examples, or explain what an item system is about. And if you feel that you don't want to answer because you think the poster is not experienced enough for such stuff then just don't answer. It would be the task of the forum moderators to manage the case if the thread turns out to be a code desert or whatever.
Maybe it is time for a better moderator for the scripter forum then? I am on as much as I can (this weekend not as much as it is Mother's Day weekend, and my husbands parents are visiting), and I try to stay out of the gfx and scripting forum and let the mods take care of it, but it doesn't help if the mod isn't moderating. It really doesn't help when 2 top scripters of Graal are the ones who are so negative about helping others....I do totally agree with you
__________________
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
  #18  
Old 05-08-2005, 05:47 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Quote:
Originally Posted by Evil_Trunks
well apparently Stefan is alright with breaking the forum rules so go ahead
Don't be a smartass.

Stefan worked hard to create graal, im sure he has spent a lot of time working on the engine and such, he can make the rules whatever he wants.
Reply With Quote
  #19  
Old 05-08-2005, 06:31 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Quote:
Originally Posted by Stefan
I am quite pissed at people who think they need to enforce the rules if they don't even know them themself. The rule is about not just posting tons of scripts without explaination. A good documented script or helpful documentation can be posted, or be added to the sticky threads. Do you think the rule was made to prevent posting any code that could be used in the game?? If you have scripts without documentation it is possible to post them on graal.net and put a link to that in your post, if it contains good documentation then you can also directly attach it your post or ask a GST to approve it as official documentation.
Perhaps you should update the rules then, so this thread is no longer breaking them.

Quote:
1) Don't post here just asking for scripts... The posters here aren't just some handy resource for scripting shortcuts. If you can't script something then don't try to produce it. If you're trying to make it to aid your learning then set your sights lower. If you want it for a server then go hire a scripter.

2) Likewise, don't post whole scripts for people. Post wordy solutions, certainly, but not things that people can just copy & paste into their levels without any effort.
According to you, both of these rules are free to be broken.

I do know the rules myself, because they are posted at the top of this forum for anyone to read.
__________________

Reply With Quote
  #20  
Old 05-08-2005, 01:47 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 rule
1) Don't post here just asking for scripts... The posters here aren't just some handy resource for scripting shortcuts. If you can't script something then don't try to produce it. If you're trying to make it to aid your learning then set your sights lower. If you want it for a server then go hire a scripter.
This rule is too harsh...

"If you can't script something then don't try to produce it."
Why shouldn't people be able to try to produce a script if they don't know how? Especially with all the PW's out there now....

"If you want it for a server then go hire a scripter."
Why should someone who doesn't know how to script, have to go find a scripter, if they are wanting to learn how to script?

I agree that people should NOT post here just asking for others to give away scripts, but for those who post asking "Where can I find....?" "How do I make....?", ect...I am sure they can be directed somewhere to find their answer (As you can see, the thread creator asked if anyone knew where to find a script OR if they could post one). All I see in almost every thread here is "You broke a rule!", "Don't post that!", "You can't post that script, it breaks the rules!". Does the person recieve the help they need? I doubt it, and if they do, they have to weed through the other posts where people are arguing about the rules, or some scripters are arguing with each other about the right way to do something. I would hope that more scripters would share their knowledge with others to help them learn as Graal could really use more scripters, and there are people who are willing to learn....

Like Stefan said, if you aren't willing to post something helpful to the thread creator, then don't post
__________________
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
  #21  
Old 05-08-2005, 03:28 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by Darlene159
This rule is too harsh...
I don't think the rule is too harsh, just worded incorrectly.

Basically, from what I can understand, the gist of the rule basically says: If you cannot script it, then do not try to produce until you understand how to do so.
Reply With Quote
  #22  
Old 05-11-2005, 02:45 AM
hottstuff911 hottstuff911 is offline
Scripter
hottstuff911's Avatar
Join Date: Jan 2005
Location: USA
Posts: 23
hottstuff911 is on a distinguished road
Send a message via AIM to hottstuff911
Ok, some people learn from people giving them the scripts i learned how to script from looking at other scripts and asking what parts of the script do and stuff and i started to learn little by little so dont say that you get mad for someone posting scripts its not wrong ok.!.!.
__________________

~Contact Info~
Aim: Grind64RyGuy
Email: [email protected]
Client Status:
Reply With Quote
  #23  
Old 05-11-2005, 07:56 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by hottstuff911
posting scripts its not wrong ok.!.!.
It is on these forums.
__________________
Skyld
Reply With Quote
  #24  
Old 05-12-2005, 12:11 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I don't think there is anything bad about posting full scripts if you explain them so the person could learn.

I learned alot of the stuff I know from looking at other people's scripts then going through commands.rtf and such...

If i'm going to script something i'd like to know how its remotely supposed to function.
__________________
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 06:43 PM.


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