ikarth / game-boy-rom-generator

Game Boy ROM Generator
MIT License
8 stars 0 forks source link

Document the existing scripting commands #51

Open ikarth opened 4 years ago

ikarth commented 4 years ago

GB Studio has a number of scripting commands. We want to create an API to be able to write scripts via Python. But in order to do that, we need to know what kinds of parameters each script command takes. For example, EVENT_IF_VALUE looks like this in the project file's JSON:


                        {
                            "id": "ffd12d30-9a4b-40c3-8fab-be80048aa76b",
                            "command": "EVENT_IF_VALUE",
                            "args": {
                                "variable": "L3",
                                "operator": ">",
                                "comparator": 2,
                                "__collapseElse": false
                            },
                            "children": {
                                "true": [],
                                "false": []
                            }
                        }

The main thing we need to know is what information is in "args", plus if there are any "children".

Event control

Scenes

Save/Load

Control flow

Scripting

Math

Input

Actors

Camera

Overlay

Music

Sound

Custom

22aronl commented 4 years ago

Some Events are missing and unable to be found. Further work is needed

ikarth commented 4 years ago

The GBStudio documentation may be incomplete. We might need to make scripts in GBStudio, save the project, open it as a text file, and see what the data it actually writes is.

22aronl commented 4 years ago

Collisions are missing ie EVENT_ACTOR_COLLISIONS_DISABLE

22aronl commented 4 years ago

Major Bugs to fix

22aronl commented 4 years ago

I found the major bug, It has been patched and will soon be pushed to the main branch