Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Learn to script! (https://forums.graalonline.com/forums/showthread.php?t=134263069)

papajchris 05-01-2011 11:48 PM

Learn to script!
 
Not really sure if this is the right spot, so feel free to move it.

I'd like to get a group of us new scripters together and then each have the same assignment per a week that gets progressively harder. For example, next week might be a simple one such as a basic tailor script. Eventually we would get down to making hardcore systems. I think this joining this newbie scripters group would be a great asset for all involved as we can help each other out and progress together. The way i see it, we all work on the same type of script each week and then show each other our scripts and find out what we could have done better.

If anyone wants to do this, just post here :) OR go to https://spreadsheets.google.com/spre...Mlc1bUU5YWc6MQ

Soala 05-01-2011 11:59 PM

Good idea, sign me up :)

Fulg0reSama 05-02-2011 12:00 AM

Didn't Hell Raven do this sometime ago? But it was a thread that was just a challenge to make scripts n such specified by the challenge rules?

Edit: Now I think about it I can't remember if it was Hell Raven or Chompy.

Chompy 05-02-2011 12:04 AM

I'm all for this! :) Could also use the Testbed Server, create some specific folder rights and such. Would also give a similar working environment for each of those who participate.

27Junior1 05-02-2011 12:29 AM

Im still trying to learn scripting, so if you dont mind having a noob scripter, then sign me up too :D

papajchris 05-02-2011 12:42 AM

Quote:

Originally Posted by Soala (Post 1646977)
Good idea, sign me up :)

Alright! :)

Quote:

Originally Posted by Chompy (Post 1646979)
I'm all for this! :) Could also use the Testbed Server, create some specific folder rights and such. Would also give a similar working environment for each of those who participate.

Sounds good to me! Maybe a shared folder to drop the scripts in (.txt format) so that we could keep record and refer to previous scripts. Testbed would be perfect (You just signed me up actually)

Quote:

Originally Posted by 27Junior1 (Post 1646987)
Im still trying to learn scripting, so if you dont mind having a noob scripter, then sign me up too :D

We want you! I am not that good either. This is for you and me and everyone else that wants to learn. I want this group to be mainly for the novices as i want to work on scripts in my level (not something in jerrets or chris vimes)

Spread the word about this, i'll give it another day and maybe we can start this week :D.

I'd love it if we be came a close group, so once we figure out whos involved we should all share some details (scripting level, weaknesses, strengths, how to contact you for help,etc)

PhilSmith 05-02-2011 12:45 AM

This is a great idea. I'm alright a scripting so I'd love to join this group (probably as a resource for a few weeks until you catch up to me). But it would be great to have a class of scripters rather than doing it on your own.

Spikedude 05-02-2011 01:11 AM

Keep me updated on anything, this sounds great. I started learning GS2 and never really got that into it, but I'd love to give it another shot.

MattKan 05-02-2011 01:49 AM

Quote:

Originally Posted by papajchris (Post 1646972)
Not really sure if this is the right spot, so feel free to move it.

I'd like to get a group of us new scripters together and then each have the same assignment per a week that gets progressively harder. For example, next week might be a simple one such as a basic tailor script. Eventually we would get down to making hardcore systems. I think this joining this newbie scripters group would be a great asset for all involved as we can help each other out and progress together. The way i see it, we all work on the same type of script each week and then show each other our scripts and find out what we could have done better.

If anyone wants to do this, just post here :)

Count me in!!!!!!

Dario 05-02-2011 01:49 AM

DaRIO
 
Sign Me Up!

Astram 05-02-2011 01:55 AM

Aight if the 1 post kid is in... Im in

papajchris 05-02-2011 05:20 AM

I posted an app (for non-forum members) in my Original post. If someone would mass this threads link out on their home server, lets get the ball rolling

The_Federov 05-02-2011 05:26 AM

sign me up!

Rave_J 05-02-2011 07:04 AM

cant wait to start

papajchris 05-02-2011 07:16 AM

With Chompys help of setting up the schedule (i want to make sure it progresses at a fair rate), we are getting close. I hope to maybe release this weeks script challenge tomorrow.

Here is how i see it atm (please give me feedback)
There will be 2 scripts you can do a week (you can obviously do more outside of the group). One is a primary and one secondary. The primary is the main script we will be covering, and the secondary is an additional script slightly harder (and should lead into next weeks assignment).

With EACH assignment my goal is to supply everyone with articles from popular guides such as Jerrets/Twinnies/GraalBible that pertain to what we are learning. The scripts should be challenging for us and so we really need to communicate and give feedback to eachother.

Im looking into communication resources such as teamspeak, ventrillo, and google wave (feel free to offer one). Right now their is 13 of us participating. I'd love it if a UN/Zodiac staff member could mass message it.

Just a reminder:
this is for people who want to learn from the ground up. While the first script isn't going to be "set a players chat," it will not be a crazy hard script. So this isn't really for advance scripters YET (I'm hoping to have all 13 of us at a high quality scripting level by the end of the summer).

I'd love to see Gani/GAT/Lat groups come up. I'd also love it if some good scripters would check in on our ventrillo/teamspeak/whatever a few times a week and answer any questions so we could get immediate feedback (if the group couldn't resolve the situation its self).

More info tomorrow

cbk1994 05-02-2011 07:23 AM

Be sure to include code reviews by experienced scripters (like Chompy) in your plans. You'll learn a lot more if you have someone looking over your code than you would if you just make something that works.

papajchris 05-02-2011 07:26 AM

I think GoogleWave would be fantastic for that! It would allow people such as Chompy or yourself to make edits live right in the script or make comments live (and everyone in the group can watch and post their own comments and questions).

JesusFreak250 05-02-2011 08:36 AM

Count me in on this =] Ive just started learning!

Devil_Lord2 05-02-2011 08:40 AM

Quote:

Originally Posted by 27Junior1 (Post 1646987)
Im still trying to learn scripting, so if you dont mind having a noob scripter, then sign me up too :D

I'm a beginner as well. I'd join for a chance to learn.. I only know things from what I have needed though.. D: Some simple things I have never bothered to learn, but they'd probably take 5 minutes to look up..

I can make tiles move, trigger servers, create GUI's, semi create a movement system and possibly other systems... ^.- never needed to set players clothes or make a light yet, but if instructed I'd do so.

I can't say what I learn tomorrow I won't forget in 1-2 weeks either.. Sometimes the tutorials I create are for reference purposes because of my poor memory. I have knowledge of C Programming and Visual Basics.. couldn't tell you how to make a close button in VB, or start the script in C. :D

Actually, after 1-2 weeks I forgot if you needed a semicolon after if(something){} ...

So it would be good to be challenged, and kept up in scripting.

fowlplay4 05-02-2011 03:42 PM

Well a decent challenge would be a hat system. It can be broken up into a few different assignments with varying difficulty, I've also written down a list of concepts that would be learned/tested at each step.

1. Start off with a basic sethat system, create a setHat function.

- Chat Commands
- Altering Player Attributes
- Functions

2. Create an Interactive script to choose from hats 1-100.

- GUI Objects / Showimg depending on your route.
- Math
- Loops
- Keyboard/Mouse interaction.

3. Create a Hat Item System, and then alter your Hat GUI to only display hats you have.

- Login scripts
- Player-joined classes
- Public Functions
- clientr flags

4. Create a Hat Database and a GUI tool to maintain it, alter your hat item system to use and validate based on the information from the database.

- GUI Objects
- Server<->Client interaction (triggerserver/triggerclient)
- Database Usage

DeCeaseD 05-02-2011 06:18 PM

This sounds rather fun, would be good for the developing community also. I would actually like to participate in this, although I am probably alot further along in scripting than most of you guys beginning.. I could probably still use a refresher, as I've not scripted in a months now. I get my internet back wednesday and will be becoming more active.. so if I end up missing the first lesson, I can probably just catch up with the second. ^_^

Emera 05-02-2011 06:50 PM

I fell in love with this idea the moment i read the title. Its such a great idea and i want to take part. Thanks for the idea rep for you!

papajchris 05-02-2011 10:36 PM

Happy to have you! There are now 18 of us!

I need an opinion from you guys. I am really leaning towards google wave as a way to communicate. Check out http://www.youtube.com/watch?v=eKUAqNGVwX0 to learn more about it, but basically its a big discussion panel. Everyone in the group can reply/make changes to other peoples posts, which would be really cool for when say jerret helps emera, i can see the changes. Furthermore its live, so as you make changes or w/e i can track it. Another good feature is that the contact list is right on the side, so you can see who is online (you can also Private chat). However some drawbacks are:

-anyone can edit/delete information (if they are in the group)
-must have a gmail account (IMO thats a positive, but still)

IMO i don't think it will be a big deal if anyone can delete/edit info. I don't know everyone in the group, but i have seen posts by them and all of them seem like dedicated people.

Devil_Lord2 05-02-2011 11:31 PM

Quote:

Originally Posted by fowlplay4 (Post 1647119)
Well a decent challenge would be a hat system. It can be broken up into a few different assignments with varying difficulty, I've also written down a list of concepts that would be learned/tested at each step.

1. Start off with a basic sethat system, create a setHat function.

- Chat Commands
- Altering Player Attributes
- Functions

2. Create an Interactive script to choose from hats 1-100.

- GUI Objects / Showimg depending on your route.
- Math
- Loops
- Keyboard/Mouse interaction.

3. Create a Hat Item System, and then alter your Hat GUI to only display hats you have.

- Login scripts
- Player-joined classes
- Public Functions
- clientr flags

4. Create a Hat Database and a GUI tool to maintain it, alter your hat item system to use and validate based on the information from the database.

- GUI Objects
- Server<->Client interaction (triggerserver/triggerclient)
- Database Usage

It sounds like I could do 1-3, but I wouldn't know how to do the circular showing thing most hat systems would use, and I'd use a GUI to show it anyway.. I don't know how you'd get it over your head. :C

I don't even get number four.. D:
I've also tried to learn about databases but everything I've read didn't seem to help me understand why I'd need them or how to use them lol

-edit-
I take that back, may not be able to do three yet, but I'm sure in a few days I could learn it. D:
Sounds like I'd have to create a system to store their hats in an array or something so they would know the ones that are their own..
Quote:

Originally Posted by papajchris (Post 1647197)
Happy to have you! There are now 18 of us!

I need an opinion from you guys. I am really leaning towards google wave as a way to communicate. Check out http://www.youtube.com/watch?v=eKUAqNGVwX0 to learn more about it, but basically its a big discussion panel. Everyone in the group can reply/make changes to other peoples posts, which would be really cool for when say jerret helps emera, i can see the changes. Furthermore its live, so as you make changes or w/e i can track it. Another good feature is that the contact list is right on the side, so you can see who is online (you can also Private chat). However some drawbacks are:

-anyone can edit/delete information (if they are in the group)
-must have a gmail account (IMO thats a positive, but still)

IMO i don't think it will be a big deal if anyone can delete/edit info. I don't know everyone in the group, but i have seen posts by them and all of them seem like dedicated people.


So how do we get it, and how will we contact each other to get on it?
Do we know if our time zones are near each others, and when do you think, if it does, will this start?

MattKan 05-02-2011 11:33 PM

Quote:

Originally Posted by papajchris (Post 1647197)
Happy to have you! There are now 18 of us!

I need an opinion from you guys. I am really leaning towards google wave as a way to communicate. Check out http://www.youtube.com/watch?v=eKUAqNGVwX0 to learn more about it, but basically its a big discussion panel. Everyone in the group can reply/make changes to other peoples posts, which would be really cool for when say jerret helps emera, i can see the changes. Furthermore its live, so as you make changes or w/e i can track it. Another good feature is that the contact list is right on the side, so you can see who is online (you can also Private chat). However some drawbacks are:

-anyone can edit/delete information (if they are in the group)
-must have a gmail account (IMO thats a positive, but still)

IMO i don't think it will be a big deal if anyone can delete/edit info. I don't know everyone in the group, but i have seen posts by them and all of them seem like dedicated people.

I vote google wave because I already have a google account, rofl

and I'm sure lots of other people do, so it'd probably be easier to do that than to require everyone to make an account on something else, etc. etc.

papajchris 05-02-2011 11:42 PM

Quote:

Originally Posted by Devil_Lord2 (Post 1647207)
So how do we get it, and how will we contact each other to get on it?
Do we know if our time zones are near each others, and when do you think, if it does, will this start?


The official start will be next week (due to not everyone have a testbed account, and i want to get our communication set up. Google wave works like email kinda in that myself or others can invite people to the "document" (or email in my example). At the top would be the directions with the guides and then below people can post scripts and what not (Sort of like forum thread, but IMO it looks cleaner). I can't be certain about timezones, but based on the people in the group theres people from all over, and the good thing about google wave is you can see everyones discussions! So if you can't get on for a few days you can see what others asked and hwo they fixed their problems.


We may struggle at first getting this going, but i tihnk once we get a schedule down, classes could be 2-3 times a year.

While the class will start next week i am going to distribute a practice script or a guide for people to look at so they can be ready for next week. So the learning will begin soon!

If anything is easy for some of you please stick around and help others out. Once we catch up, you will have 17 people at your level and all working towards the same goal.

MattKan 05-02-2011 11:46 PM

Quote:

Originally Posted by papajchris (Post 1647211)
classes could be 2-3 times a year

that's it?

papajchris 05-03-2011 12:21 AM

Quote:

Originally Posted by MattKan (Post 1647212)
that's it?

I figure it takes about 3-4 months to truly know what your doing and to be good at it. Players can jump in any time and can look back at previous assignments (again why google wave would be awesome.

so 3-4 months means 3-4 classes a year. If a new group wants to start a month after ours does, i'd be more than happy to help get started. Once we learn, we can break up into teams and lead classes.

27Junior1 05-03-2011 12:55 AM

Good Idea :) can't wait to get started

PhilSmith 05-03-2011 01:00 AM

Also, being the first to try this could be difficult. This dummy group needs to get. It right or people will be hesitant to try it again. I don't think we will have that problem though, given the dedication of some of the members. Also, once we have a curriculum to base off of and the setup made, I don't see why other classes couldn't deviate from this (other NAT GANI, LAT or even GFX classes)

papajchris 05-03-2011 01:00 AM

For anyone who would like to mass out the link, use:

https://spreadsheets.google.com/spre...Mlc1bUU5YWc6MQ

I updated the information and made it like so pretty.

Also I am going to ask all of you to create a gmail address and send me your email in a PM. This will allow us to have a large chatroom atmosphere where we can post scripts easily and have others edit them/leave comments.

Whats really cool is whenever something is changed it is recorded in a movie format. Say you miss a few days you can just click "play" and see what all was updated (or just look at the "___ new updates" thing).

@Talented scripters - I ask that you please make an account for gmail and pm me your account. If one of you could log on every so often and leave comments on a script, it would be very helpful.

Once you give me your email check out wave.google.com. Once i add you to the wave, you will see how cool this could be. Again please allow for mistakes whether its with this or with a schedule as we are all learning here, and I am in no way experienced.

MattKan 05-03-2011 01:17 AM

Suggestion: make a testing gmap on testbed

allow everybody to upload a certain level on said gmap so that they have access on it

that way everybody can test their things with each other

Soala 05-03-2011 01:23 AM

Quote:

Originally Posted by MattKan (Post 1647227)
Suggestion: make a testing gmap on testbed

allow everybody to upload a certain level on said gmap so that they have access on it

that way everybody can test their things with each other

Could be cool, but some people could setup joke scripts.
ie: A looping NPC spawner

Fulg0reSama 05-03-2011 01:25 AM

Quote:

Originally Posted by Soala (Post 1647229)
Could be cool, but some people could setup joke scripts.
ie: A looping NPC spawner

or make even easier for noobs, set level warps all over their level to send to other levels.

Soala 05-03-2011 01:36 AM

Quote:

Originally Posted by Fulg0reSama (Post 1647231)
or make even easier for noobs, set level warps all over their level to send to other levels.

PHP Code:

//#CLIENTSIDE
function onPlayerEnters() {
    
serverwarp(servername);
    } 

whoooooooooops!

oo_jazz_oo 05-03-2011 01:42 AM

Shouldn't really worry about abusive scripts like that...since you can make an abusive weapon script, class, npc, etc. Abuse is not only limited to levels.

So, taking away those levels only removes one medium for which to abuse on.

This project sounds like a good idea to get new scripters into Graal. Since scripting seems to be a dieing artform. :(
I would volunteer to comment on scripts, and help people, butttttttttt I would probably end up forgetting to do so. ._. (College work makes you forgetful ;-; )

Soala 05-03-2011 01:45 AM

Quote:

Originally Posted by oo_jazz_oo (Post 1647236)
This project sounds like a good idea to get new scripters into Graal. Since scripting seems to be a dieing artform. :(
I would volunteer to comment on scripts, and help people, butttttttttt I would probably end up forgetting to do so. ._. (College work makes you forgetful ;-; )

We can never blame someone for trying. Any help would be very welcome!

papajchris 05-03-2011 01:46 AM

When you make your gmail account, you need to make a wave account wave.google.com

I set up some pages on there and even put a script i made on there. Go ahead and practice leaving comments and such :)

@ Jazz If you would take the time to make an account, we would be honor. You can check in on us and who knows relearn a thing or two!

Also by going on your name shows up as "Online," so people can see your online and talk to you

fowlplay4 05-03-2011 02:02 AM

Quote:

Originally Posted by Soala (Post 1647229)
Could be cool, but some people could setup joke scripts.
ie: A looping NPC spawner

People on Testbed already warp to other people and abuse their levels with Tile Editors / OLEs.

Devil_Lord2 05-03-2011 02:27 AM

Quote:

Originally Posted by papajchris (Post 1647216)
I figure it takes about 3-4 months to truly know what your doing and to be good at it. Players can jump in any time and can look back at previous assignments (again why google wave would be awesome.

so 3-4 months means 3-4 classes a year. If a new group wants to start a month after ours does, i'd be more than happy to help get started. Once we learn, we can break up into teams and lead classes.

Like I said, give me 2-3 weeks of not doing anything and I will have forgotten everything I've learned.. 4 times a year wouldn't be worth it to me lol..
I'd possibly jot things down for personal references in the future, and it could help me in tutorials, but it doesn't sound beneficial in the long run trying to learn something.

Could help others but I have horrible memory. D:
Twinny had people do something where you make a door switch in one level, make a door disappear in another level for all players on the server.. Took me 9 hours to figure it out.. learned triggeraction.. two days later I tried a trigger action to make my door serverside and for 1-2 days I didn't realize I didn't have setshape serverside.. :D Forgot I needed it..


Quote:

Originally Posted by fowlplay4 (Post 1647244)
People on Testbed already warp to other people and abuse their levels with Tile Editors / OLEs.

I can donate / rescript my system to keep people such as Kobe and Elix7 out of my level and to keep myself in my level. Also, Update Level brings the level back to the starting level unless some levels can actually be saved o.o..

It basically checks over and over if someone in the ban list is in the level, or on private mode if anyone is in the level 'certain level' and kicks them out, and if you are warped out it warps you back in... It has three modes, Private, Personal, Public.. personal and private warps you back in. It's funny seeing Kobe trying to warp to me, saying please, please dont, stop, and then start cursing me out while I'm idle.

He then tried to use OLE to break my level and I just said update level *****..
Personally, starting on testbed, that type of system is the first thing people should try to work on I believe.. :3
At least the level text file I put in didn't block anyone out..

The system you just stick in accounts into the 'ban' list... thing is it also is used to summon, warp, and set your ganis.. I'd have to take that out D:


All times are GMT +2. The time now is 06:48 PM.

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