Creation/Dev/GScript: Difference between revisions

From Graal Bible
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 4: Line 4:
'''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 dynamicly joining and leaving of classes, and brings support for easy management of online game content.
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 10: 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.gscript.dev/
==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 21: Line 24:
* [[Image:s_dummies.png|80px]] [[Creation/Dev/GScript/New Engine GScript for Dummies|New Engine GScript for Dummies]]
* [[Image:s_dummies.png|80px]] [[Creation/Dev/GScript/New Engine GScript for Dummies|New Engine GScript for Dummies]]
* [[Creation/Dev/Excalibur's scripting guide|Excalibur's Scripting Guide]]
* [[Creation/Dev/Excalibur's scripting guide|Excalibur's Scripting Guide]]
* [http://gs2.graalstudios.com/ Twinny's Scripting Page]
* [http://public.zodiacdev.com/index.php?title=Fowlplay4 Fowlplay4's Scripting Guide]


'''Specific Features'''
'''Specific Features'''
Line 39: Line 40:
* [[Creation/Dev/GScript/Stefan_Wisdom|Stefan Wisdom]]
* [[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/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 50: Line 52:


* [http://gscript.graal.net/Index New GScript Wiki]
* [http://gscript.graal.net/Index New GScript Wiki]
* [http://gs2.graalstudios.com/ Twinny's Scripting Page]
* [https://gsdocs.ruanfergui.com.br/ Ruan's GScript Guide]
* [[GScript IRC channel]] (non-official)
* [http://public.zodiacdev.com/index.php?title=Fowlplay4 Fowlplay4's tutorial]

Latest revision as of 07:51, 21 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.gscript.dev/

Documentation

In your scripting quest, you may find the following articles to be of use:

Basic information

Tutorials

Specific Features

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.