![]() |
I admit I'll try to learn GS2 but I don't know exactly what could make GS2 so much greater than GS1. I've barely heard anything about GS2 or seen any code examples.
|
same here
|
Quote:
|
Quote:
|
I know a little bit of basic, and i know the basic format of C, but that's it
|
Quote:
|
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
|
Does anyone have any real code examples or GS2?
All I've seen is something like: player.chat="hello" or something |
NPC Code: Here an example of writing into a file (savelines), the new for-each operator, calling functions with parameters (addControlCreationScript), and calling public functions of other scripts/objects (ScriptEditor.openScriptWindow). You can do similar things with addstring script,... instead of script.add, passing parameters by setting this. variables, and doing callnpc, but with the new script it's more simple (e.g. the functions of other objects can return values). |
Quote:
|
Quote:
|
Quote:
|
Quote:
It really wasn't that hard to follow anyway, granted you have some programming knowledge. He created a weapon file, put "function OnCreated() {" in there, used that cool for-each thing to most likely put some code in there, then added a "}", then saved the file and called the script editor to open the window. and I just made a crappy run-on sentence of me babbling |
| All times are GMT +2. The time now is 10:40 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.