![]() |
Looking for...
Hey, so im looking for a few things to do with Scripting.
The main thing im looking for is a teacher. Well not so much a teacher but some one to give me a step by step guide of what i should do. I.E: Script this, if you have any problems talk to me via AIM/MSN. Really somebody to tell me what to do, and what ive done wrong. The other thing i was looking for is an all in one scripting guide for a beggining scripter with the new scripting language. I already read through that GraalWiki thing on scripting and a few other things but i didnt really pick up on what the hell they were talking about and how i could put that into an everday script like a gun system, disabling swords, lighting effects etc etc. If anybody would like to help me with these things you can post here or talk on aim to me via: luke10050 By the way i read through the Gscript2 for Dummies guide! Thanks -Luke |
Quote:
http://gs2.graalstudios.com/index.php?page=basic Also, I'm pretty sure people will not just simply give out scripts for you, but if you build something, even something as simple as a door, there are plenty of helpful scripters willing to give you advice and etc. If you need any visual help, I would refer to the Code Gallery: http://forums.graalonline.com/forums...play.php?f=179 |
Quote:
|
Maybe I can give you a simple example. (but I'm mostly generalized to levels)
Okay lets say we want to create a door correct? I'm going to piece it together. PHP Code:
Now, to make the door dissappear when you say "open" this is what you'll have to do: PHP Code:
|
Okay i get that, but would there be a way to like set a timer for that?
like every 60 seconds it opens for 2 seconds etc etc. Really i just want to explore possibilities and what i might need. |
Yeah, just wait for an experinced scripter to come on the forums, I'm sure he/she will help you with stuff like that.
|
k, thanks.
|
The best way I started learning (and keep learning) is looking at the graal wiki. Look around at some of the codes posted up here. See how they work. If you dont know what something is, usually you can search it on the graal wiki and find out.
http://www.graal.net |
Trial and error and perhaps knowing some basics of another scripting language can help greatly, then looking through the code gallery and asking yourself what some line of code does.
|
Quote:
PHP Code:
PHP Code:
|
Ahh thanks Jerret, thanks for that
onPlayerEnters() tip aswell very helpfull. |
Someone called?
|
Scouser randomly coding away will also help you learn, just do some basic random things and you'll learn from experience.
Quote:
|
:O
Hmm, so i know this is the rookiest question uve probably heard but... If i was to make a script like Jerret's, would that script be put into 1 of the NPC's in an actual level via graal level editor? or would it be added via a weapon on the RC. I was also wondering on how you would setup a command such as if i wanted a GUI to pop up when i say /gang or whatever. like a trigger i guess. |
Quote:
Commands in weapon scripts can be done using: PHP Code:
PHP Code:
If you're unaware of class scripts or how to use them, you can get away with just putting the script in a level npc. |
Thanks Jerret!
Now ill just go inspect the Code Gallary on the wiki then :O |
Quote:
|
Thanks switch, shining a light on my day!
|
| All times are GMT +2. The time now is 02:55 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.