I don’t know anything and I don’t know where to start. Teach me.
look in your graal folder for npcprogramming.doc it’s a good place to start.
After that you could go through the rest of this section (NPCs) and try to figure out the scripts and the commands used in them. Should also ask questions about the parts you can’t understand…
Any suggestions for a first time script to try and create?
The official commands.rtf thingy:
wiki.graal.net/index.php/Creation/Dev/Old_GScript
Personnaly, I had a hard time with scripting before learning about the “for loop” and an important thing to know is that timeout keeps your script going.
if(playerenters){
timeout = x;
}
if(timeout){
periodically checks for something or do an action;
timeout = x;
}
A script is read from top to bottom unless you either use “return” which tells the script to start reading from top again, and “continue” which, in a for or while loop, tells the script to start reading at the beginning of the for or while loop again.
Tricxta’s scripting challenge is a good place to start, you even have working examples in the thread.
I’m also learning (slowly). Tric is helping me. Mostly he lets me fail a bunch and explains things.
If you are good with the basic things like if (playerenters) stuff, then I’d start messing around with the ‘for’ loop. It is used a lot as far as I can tell.
I found the NPC programming doc, along with this: http://forums.graal.in/forums/showthread.php?4384-Newbie-Scripter-s-Bible, along with Tric to be very good resources.
Take a random scripting object, try to make it. If you have questions ask them. I learned a lot by doing this.
I started with an HUD and worked from there.
What I like to do is script stuff I see in other games.
Nope. Zelda online.
I would’ve messaged you back earlier Tric but I was asleep. And good idea. I have an idea already of what I want my first script to be thanks to that, or I think I do.
[QUOTE=gllt;97939]I would’ve messaged you back earlier Tric but I was asleep. And good idea. I have an idea already of what I want my first script to be thanks to that, or I think I do.[/QUOTE]
Make sure to share your awesome scripts with us!