Creation/Dev/GScript: Difference between revisions
DrakilorP2P (talk | contribs) m (→External Links) |
No edit summary |
||
| (16 intermediate revisions by 9 users not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Scripting Reference]] | |||
==Introduction== | ==Introduction== | ||
'''GScript''' is [[Graal]]'s scripting language. | '''GScript''' is [[Graal]]'s scripting language. | ||
Its syntax and some of its semantics might seem familiar to those who program in [[WikiPedia:C (Programming Language) |C]] or [[WikiPedia:Java_programming_language|Java]], it uses ECMA-Script syntax. In some ways it is more dynamic, e.g. supporting | Its syntax and some of its semantics might seem familiar to those who program in [[WikiPedia:C (Programming Language) |C]] or [[WikiPedia:Java_programming_language|Java]], it uses ECMA-Script syntax. In some ways it is more dynamic, e.g. supporting dynamically joining and leaving of classes, and brings support for easy management of online game content. | ||
It is used for [[clientside]] tasks like [[GUI | GUI programming]], special effects and custom [[NPC weapon|weapons]], and [[serverside]] systems like player housing, complex baddies or pets. | It is used for [[clientside]] tasks like [[GUI | GUI programming]], special effects and custom [[NPC weapon|weapons]], and [[serverside]] systems like player housing, complex baddies or pets. | ||
| Line 9: | Line 10: | ||
'''If you would like to contribute to the GraalBible's GScript documentation, you might want to [[Creation/Dev/GScript/Contribute|read this article]].''' | '''If you would like to contribute to the GraalBible's GScript documentation, you might want to [[Creation/Dev/GScript/Contribute|read this article]].''' | ||
Join the #gscript Discord community to collaborate with fellow developers and expand your gscript knowledge. Our server features a dedicated Discord bot with /scripthelp functionality that provides access to comprehensive Graal function documentation. | |||
Connect with us: https://discord.gg/upGzacsdCp | |||
==Documentation== | ==Documentation== | ||
In your scripting quest, you may find the following articles to be of use: | In your scripting quest, you may find the following articles to be of use: | ||
| Line 33: | Line 37: | ||
* [[Creation/Dev/Database_Communication|Indexed Database Communication]] | * [[Creation/Dev/Database_Communication|Indexed Database Communication]] | ||
* [[Vectors]] (3D) | * [[Vectors]] (3D) | ||
* [[Creation/Dev/wordFilter|Word Filter]] | |||
* [[Creation/Dev/GScript/Stefan_Wisdom|Stefan Wisdom]] | |||
* [http://forums.graalonline.com/forums/showpost.php?p=1573674&postcount=6 Communicating with a webserver] | |||
* [http://forums.graalonline.com/forums/showthread.php?t=134263215 Explanation of vecx & vecy] | |||
'''Script Function List''' | '''Script Function List''' | ||
| Line 41: | Line 49: | ||
==External Links== | ==External Links== | ||
Tutorials and other helpful resources. | |||
* [http:// | |||
* [ | * [http://gscript.graal.net/Index New GScript Wiki] | ||
* [https://gsdocs.ruanfergui.com.br/ Ruan's GScript Guide] | |||
Latest revision as of 07:50, 18 November 2025
Introduction
GScript is Graal's scripting language.
Its syntax and some of its semantics might seem familiar to those who program in C or Java, it uses ECMA-Script syntax. In some ways it is more dynamic, e.g. supporting dynamically joining and leaving of classes, and brings support for easy management of online game content.
It is used for clientside tasks like GUI programming, special effects and custom weapons, and serverside systems like player housing, complex baddies or pets.
If you would like to contribute to the GraalBible's GScript documentation, you might want to read this article.
Join the #gscript Discord community to collaborate with fellow developers and expand your gscript knowledge. Our server features a dedicated Discord bot with /scripthelp functionality that provides access to comprehensive Graal function documentation.
Connect with us: https://discord.gg/upGzacsdCp
Documentation
In your scripting quest, you may find the following articles to be of use:
Basic information
Tutorials
Specific Features
- GS1 To GS2: Guide for fixing scripts to work with the new engine
- Output methods
- Use of classes
- Constants
- GUI Features: Understanding GUI profiles
Creating Tabbed Window Panes- Particle Engine
- Graal IRC Scripting: Graal IRC Scripting Reference
- Graal IRC Scripting: Troubleshooting Scripting Reference
- Indexed Database Communication
- Vectors (3D)
- Word Filter
- Stefan Wisdom
- Communicating with a webserver
- Explanation of vecx & vecy
Script Function List
These are frequently updated, to get the latest list run Graal with the -listscriptfunctions option. You can also get help about script functions with the /scripthelp <string> command on RemoteControl chat.
External Links
Tutorials and other helpful resources.