scene_set_class
Configures a class's movement abilities, camera, and combat stats in a copied save so you can tailor gameplay without altering the official save.
Instructions
Change what a class (职业) lets the player's character do, in a copy of a save: allowJump, allowSprint, allowClimb, allowGlide, and cameraTemplateId (a camera from scene_list_cameras) so that this class plays with that camera. On this platform the character's abilities and its camera belong to the class, not to node graphs: a side-scroller or a top-down game gives its class the right camera and switches off what the game does not use. name picks the class when the save has several. Writes a new .gil in the workspace; the official save is not touched. allowJump false and allowClimb false were verified in play on 2026-10-11 (space pressed, the character stayed on the ground; pushed against a wall 2.4 m high it stopped, where with climbing on it climbed over); allowSprint too (with it off, two seconds of shift and D covered the 10.5 m that walking does; with it on, 17.4 m). allowGlide too (walking off a tower 12 m high and pressing space in the air: about a second to the ground with it off; with it on the character glides down at 2 m a second). health, attack, defence and stamina are the base combat attributes of the class and level the level a player starts it at (the character's real numbers are the base ones times the multiplier its level has on the growth curve of the class): a new map gives the character a base health of 10000, attack 500 and defence 500, which no ordinary enemy wears down, so a game in which the player can lose a fight sets a health to match its enemies. Read from the official samples (a class of health 1, a swordsman of health 100); health verified in play on 2026-10-12 (set to 300, the bar of a level 1 character reads 300 / 300).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| level | No | ||
| attack | No | ||
| health | No | ||
| defence | No | ||
| mapPath | No | ||
| stamina | No | ||
| allowJump | No | ||
| allowClimb | No | ||
| allowGlide | No | ||
| outputName | No | ||
| allowSprint | No | ||
| cameraTemplateId | No |