#author("2023-12-26T03:43:43+00:00","default:admin","admin")
#author("2024-03-12T11:16:18+09:00","default:admin","admin")
*Rules and Operations [#a0b5a1b5]
Specify basic game settings, such as cast controls and input device assignments (key assignments).
#ref(./GameDefinition_Rules_and_Operations.png,50%)
#br
#contents
**Game System Definition [#v5b0b487]
This section is where you set the rules for the game system.

#ref(./GameDefinition_Rules_GameSystem.png,80%)
#br

-''Menu''
--''Maximum Capacity of the Inventory''
Specify the number of items the main cast can have, with a value from 1 to 999.

--''Number of Saved Files''
Specify the number of save files that can be created in a game. The maximum value is 40.

--''Use Menu''
Specify whether or not to use the standard menu.

--''Skip Title Screen''
Skip the title screen that appears immediately after game startup.
To display the title screen with this specification turned on, it is necessary to call up the screen using Display Title Screen in an event.

--''Display Reserve in Menu''
Specify whether or not to display the reserve in the "Members" section of the menu.

-''Register to Picture Book''
--''Hide Undiscovered Casts''
If turned on, cast members whom the player has not yet met in the game will appear as undiscovered cast members in the picture book.
The text to be displayed when not discovered can be specified in the "Common Terms" section.

--''Hide Unobtained Items''
If turned on, items that the player has not yet obtained in the game will appear as unobtained in the picture book.
The text to be displayed when not obtained can be specified in the "Common Terms" section.

--''Hide Unlearned Skills''
If turned on, skills that have not yet been learned will appear as unlearned skills in the picture book.
The text to be displayed when unlearned can be specified in the "Common Terms" section.

-''Battle Related''
--''Basic Max Damage/Recovery Amount''
This is the base value for the maximum damage/recovery.
The final upper limit will be the result of adding the maximum damage/recovery from equipped items and states to this value.

--''Basic Max Damage/Recovery Amount''
This is the basic value of the maximum damage/recovery.
The final upper limit will be the result of adding the maximum damage/recovery from equipped items and states to this value.
&aname(AttackRange);
--''Use Attack Range''
Specify whether the "Attack Range" set in Database > Casts or Database > Items should have an effect.
The unit of attack range is the grid on the battle layout.
It will not be able to attack enemies out of attack range.
Attack range "0" is treated as infinite range.
"Attack Range" also affects the range of its effect in the following cases. 
--- When an item is used as an "item" in battle
--- When an item with a skill is used as a "skill"


--''Attack Range Judgment Type''
If "Attack Range Judgment Type" is set to "Line", Only the "front" and "rear" distances on the battle layout will be taken into account.
In the case of "Line," if you set the attack range to 1, they can attack "an enemy with one grid in between."
When "Distance" is selected, the diagonal distance is also included in the attack range.
#br
In the case of "Distance", if the attack range is set to 1, they can attack "enemies adjacent to each other horizontally and vertically".  For example, to target an enemy that exists diagonally in front of them by one grid, put the attack range √2≒1.5
#br
The area in blue is the range that can be reached when "Attack Range 1" is specified.
(Left: Line, Right: Distance)
If the attack range does not reach the center point of the grid, it cannot be attacked. 
Therefore, if the "Distance" is set, the attack will not reach the diagonal grid. 
#ref(./AttackRange.png,60%)
#br
--''Rearrange by State During Battle''
Specify whether a party member who is in a certain "state" during a battle should be automatically moved to the back of the formation.
You can specify whether or not to enable this feature for each "state" in Database > State Definition.

--''Restore the Original Order when States are Removed''
Specify whether party members who are moved to the back of the formation during battle due to their "state" will return to their original position when the "state" is removed.

--''Make Battle Rewards Level Dependent''
Specify whether to multiply the battle rewards set in Database > Casts > Battles by the level of the defeated cast.

--''Level Up by EXP''
Specify whether or not to use the experience-based leveling system.

--''Max Level''
Specify the maximum level of the Casts and Classes in the game.
Up to 9999 levels can be specified. 
The maximum level for the entire game specified here cannot be changed during the game through events or other methods. 

--''EXP Formula (Class)''
Specify the formula for the value added to the experience value when winning a battle, which affects the level up of a class.
Example 1: 2 -> 2 is always added.
Example 2: exp * 10 -> 10 times the experience value that goes into the cast will be added. (exp = base experience)

--''Parameter Reflection Rate (Class)''
Specify the rate at which the parameters of the class set for the cast are added to the cast-specific parameters.

--''EXP Formula (Subclass)''
Specify the formula for the value added to experience value when winning a battle, which affects the level of the subclass.
Example 1: 2 -> 2 is always added.
Example 2: exp * 10 -> 10 times the experience value that goes into the cast will be added. (exp = base experience)

--''Parameter Reflection Rate (Subclass)''
Specify the rate at which the parameters of the subclass set for the cast are added to the cast-specific parameters.

--''Individualize Level Up Effects''
Specify whether or not to display the effect at level-up separately for each cast member.

--''Proceed Battle Result Automatically''
Specify whether the result effect after the battle will proceed automatically or be left to the user.

--''Reverse Left/Right Battle Target Selection''
--''Reverse Up/Down Battle Target Selection''
You can change the direction of movement of the selection cursor for battle commands.
Please use according to the layout of the battle in progress.

--''Use Default Battle Layout''
Specify whether to use the "default layout specified in this tool" for the placement of allies and enemies in battles.

--''Battle Layout Settings''
If you do not use the default battle layout, you can specify the alignment of allies and enemies in this section.
The "system default" refers to the default layout specified in this tool.
If a custom battle layout is specified in Map Settings > Enemy Distribution for each map, or if no battle layout is specified for an event battle, the battle will be conducted according to what is specified in this section.


-''Map Battle Related''
--''Use Map Battles''
When turned on, when the player comes into contact with casts assigned "Enemy" or "Both" on the map, damage will be inflicted on both parties.
See this [[Casts:https://rpgbakin.com/pukiwiki_en/?Casts#r49cf438]] of the Database for information on specifying the type of casts.
Also see [[Collision Detection between Cast Members and Events]].

--''Display Damage during Map Battles''
When turned on, damage values are displayed when map battles occur.
The graphics for damage values can be specified in [[System Resources]].


- ''Battle Damage Numeric Color''
You can set the display color of critical damage.
The specified color is multiplied by the image of the number for damage indications.
Images of numbers for damage can be specified in [[System Resources]].


**Movement and Operation Settings [#p6cb302f]
These settings are related to the movement of the cast during the game and the player's operations.

#ref(./GameDefinition_Rules_Operation.png,80%)
#br

-''Operation''
--''Basic Operation''
When turned on, the main cast moves in the direction of the cursor keys.

--''Tank Controls''
When turned on, the up cursor key moves forward and the down cursor key moves backward, and the left and right keys are used for steering control.

--''Steering Speed''
Specify the speed at which the steering wheel will turn over when tank control operation is selected.

--''Brake Strength''
Specify the strength of the braking.

--''Movement Axis is Horizontal and Depth''
The basic movement axes are X and Z. Select this option for normal (overlooking map) RPGs.

--''Movement Axis is Horizontal and Elevation''
The basic movement axes are X and Y. This is the choice for games with sideways viewpoints.

--''Talking Detection Scale''
Specify the size of the player's "talk to" detection in the event start condition.
Use this function when the size of the detection needs to be adjusted due to player collision size or other issues. 

-- ''Hide Mouse Cursor While Moving''
When this feature is turned on, the mouse cursor will not appear when moving during play.
The mouse cursor appears by opening the menu screen. 
This allows, for example, first-person gameplay in which the mouse is used to move the viewpoint, etc., without interruption when dragging the mouse outside the window.

-''Camera Operation''
--''Disable Camera Operation''
When turned on, the game starts with camera-related operations disabled.
You can also change it in the middle of the game by using "Enable/Disable Camera Operation" in the command script.

--''Get Behind Player Automatically''
When turned on, the camera will automatically rotate to view the player from behind when the player moves.

//--''Camera Dodges Obstacles''
//When turned on, if there is an obstacle such as terrain between the player and the camera, the camera will move closer to an unobstructed point.

-''Camera Distance Auto Adjustment''
--''Terrain''
When turned on, if there is terrain between the player and the camera that obstructs the line of sight, the camera will move closer to the point where there is no obstruction.

--''Object''
When turned on, if there is an object between the player and the camera that obstructs the line of sight, the camera will move closer to the point where there is no obstruction.

-''Footstep Settings''
Adjust the volume and tempo of the footsteps that sound when the player moves.
The footsteps that sound when walking on terrain or objects can be set in the Resources.
Please read the [[Footstep Settings:https://rpgbakin.com/pukiwiki_en/?Creation+Tips#z219759e]] section for more information.

--''Footstep Volume (%)''
Adjust the volume of footsteps.

--''Footstep Playback Speed (%)''
Adjust the playback speed of footsteps.

-''Movement (Inertia)''
--''Use Inertia to Move''
Turn on if you want to specify your own inertia settings for player movement.
When turned off, the proper value is automatically used.

--''Run Ratio''
When running, this value is multiplied by the acceleration and maximum speed.
The higher the value, the faster it runs.

--''Maximum Speed''
The maximum speed of the player's movement.

--''Acceleration''
The value that is added to the speed when the up/down/left/right keys are input.
The larger this value, the shorter the time it takes to reach the maximum speed.

--''Damping Amount at Ground Level''
Specify the amount of speed that will decrease with time when gravity is turned on for the player or events, from 0 to 1.  The smaller this value, the smaller the inertia of gravity-enabled player or events.

--''Frictional Coefficient''
Specify the coefficient of friction the player receives from events.
The higher this value, the less likely it is that the player will skid when touching other objects.

--''Damping During Floating''
Specify the amount of speed that will decrease with time when gravity is turned on for the player or events, from 0 to 1.  The smaller this value, the smaller the inertia of gravity-enabled player or events.

--''NPC's Standard Walking Speed (Amount of Movement per Frame)''
Specify the amount of NPC movement.

--''Pause Event Walking as Needed''
When turned on, it pauses walking based on the event's "Movement Pattern" while an event or menu is open.

--''Max Walkable Step Height''
Specify the maximum height of steps the player or NPC can go up or down without jumping.

--''Standard Turning Speed''
Specify how many degrees per frame the player/event will turn when changing direction.
Increasing the value causes it to turn faster.
#br
To adjust the turning speed individually, please use the event panel "[[Change Player's Turning Speed:https://rpgbakin.com/pukiwiki_en/?Player#a75d0258]]" and "[[Change This Event's Turning Speed:https://rpgbakin.com/pukiwiki_en/?Events#gf2fb5f5]]".


-''Jump''

--''With Jump''
When turned on, jumps are enabled.
However, if a jump action is not assigned to a key or button, the jump cannot be performed in the game.
See [[Assign Input Device]] for key/button assignments.

--''Jumping Strength''
Specify how high the player will jump when the jump button is pressed.
The higher the value, the higher the jump.

--''Gravitational Acceleration''
Specify the acceleration of gravity when the player or events jump or fall.
The higher the value, the faster the fall and the lower the jump height.

--''Disable Jumping from Elevation''
When turned on, if there is a step at the destination, they will not be able to move forward.

--''Fall Limit''
Specify the lower limit of Y-coordinates that can be reached by a fall.

-''Shooting Events (Dynamic Generation)''
--''Maximum Number of Events Generated''
Specify the maximum number of events that can exist in the map that can be dynamically generated by the fire button or the command script "Generate Events".

--''Assign Initial Shooting Button 1''
Specify the event generated from the player's position when the shooting button is pressed.

--''Assign Initial Shooting Button 2''
Specify the event generated from the player's position when the shooting button is pressed.

--''Assign Initial Shooting Button 3''
Specify the event generated from the player's position when the shooting button is pressed.

**Camera Movement Range [#o72907ae]
Specify the range of motion of the camera during game play.
//COLOR(#FF0000):画像入る

#ref(./GameDefinition_Rules_Camera.png,80%)
#br

-''Up/Down''
Specify the range of motion of the camera in the vertical direction.
When turned off, the camera can be moved up and down with no restrictions.

-''Left/Right''
Specify the range of motion of the camera in the horizontal direction.
When turned off, the camera can be moved left and right with no restrictions.

-''Zoom''
Specify the maximum and minimum zoom magnification, respectively.
When turned off, there is no limit to the zoom magnification.

**Adjustment Elements for Device Input Values [#y0f9e9ee]
Specify the behavior and sensitivity to input when playing with a mouse or controller analog stick.

#ref(./GameDefinition_Rules_Mouse.png)
#br
-''Flip''
When turned on, it moves in the opposite direction to the input direction.

-''Sensitivity''
Adjust how sensitive it is to the amount of input to the device.
It can be specified in the range of 0.01 to 100. The larger the value, the more sensitive the response.

-''Mouse Up/Down''
-''Mouse Left/Right''
-''Mouse Wheel''
-''Left Stick Up/Down''
-''Left Stick Left/Right''
-''Right Stick Up/Down''
-''Left Stick Left/Right''

**Rendering Options [#m96f93d4]
Specify settings related to the rendering in the game.
#ref(./GameDefinition_Rules_Rendering_Options.png)
#br
-''Display Color for Hidden Areas''
Specify the color of the silhouette that appears when the player is behind terrain or buildings.

-''Use Object Transparency''
If the "Use Object Transparency" option is turned on in the settings of the material being used, objects can be made transparent by applying dithering (transparent mesh in the form of a grid) when they are close to the camera.

-''Object Transparency Start Distance''
Specify the distance from the camera at which dithering will begin when "Use Object Transparency" is on.

**Current Location Map Display Settings [#u15a2b62]
Specify settings related to the functionality of the mini map.
Please read the [[Creation Tips - Mini Map:https://rpgbakin.com/pukiwiki_en/?Creation+Tips#s0b8f6de]] section for more information.
#ref(./GameDefinition_Rules_CurrentLocationMap.png)
#br
-''Rotate Player Icon''
If turned on, the player icon on the mini map is rotated according to the player's orientation.

-''Use Auto Mapping''
If turned on, the auto-mapping function is enabled.

-''Rendering Size per Terrain''
Specify the size at which one grid of terrain will be rendered on the mini map. The unit is pixels.

-''Display Color of Traversable Terrain''
Specify the color of traversable terrain  on the mini map.

-''Display Color of Non-Traversable Terrain''
Specify the color of non-traversable terrain on the mini map.
Each terrain should be specified in Resources > Terrain Properties.

-''Display Color of Invisible Range''
Specify which color to use to display the areas not yet visible on the mini map.


**Assign Input Device [#s499f292]
Specify key and button assignments for keyboard, controller, and mouse operation of the created game.

-''Key/Button Assignments''
A dialog opens, allowing you to set key/button assignments.
Clicking the "Restore Defaults" button returns all settings to their default values.
#ref(./GameDefinition_InputDevice.png,80%)
#br
-''Game Controller''
&color(red){At this time, only XInput controllers are supported for use with games exported as published works.};
&color(red){(DirectInput controllers are also available on Bakin's tools, through Steam's controller support.)};

--''Function''
This is the function to which the input is assigned.
--''Assignment X''
Specify the button/stick to which the function is assigned.
Two inputs can be combined, e.g., stick and button.
--''Coefficient''
This is a coefficient multiplied by the analog input value for this function.
It can be specified in the range of 0 to 1. When set to 0, it is treated the same as a digital input.
--''Coefficient 2''
When two inputs are combined, this is a coefficient that is multiplied by the second assigned analog input value.
It can be specified in the range of 0 to 1. When set to 0, it is treated the same as a digital input.

-''Keyboard''
--''Function''
This is the function to which the input is assigned.
--''Assignment X''
Specify the keys to which functions are to be assigned.

-''Mouse''
--''Function''
This is the function to which the input is assigned.
--''Assignment''
Specify the button to which the function is assigned.
--''Mouse Movement''
You can specify the movement axis of the mouse to be combined with the input to be assigned.
--''Coefficient''
This is a coefficient that is multiplied by the input value of the mouse wheel or mouse movement.
(-1 to 1) can be specified, and a negative value will reverse the movement.
However, if it is set to 0, it will move when the mouse is moved by the amount of pixels specified in the Dead Zone.

-''Dead Zone''
The Dead Zone is the range of an analog-operated device that does not respond to manipulation.
--''Device''
This is a device name that assigns the Dead Zone.
--''Coefficient''
The coefficients have different meanings depending on whether they are "mouse" or not.

---''Mouse''
The coefficients are specified in pixels.
It will respond when the mouse moves more than the number of pixels you assign.
This entry affects only those functions that are assigned a mouse operation and for which the coefficient of Mouse Movement is specified to be 0.

---''Other Devices''
The coefficient is the size of the range over which the device will not respond to manipulation.
It can be specified from 0 to 1. When set to 1, it will not respond.

''&size(18){[Sensitivity and Coefficients]};''
The "Sensitivity" specified in "Adjustment Elements for Device Input Values" is about the response of analog input devices.
The sensitivity with respect to the right stick up/down affects all right stick up/down operations.
In contrast, the "coefficient" for a key/button in the input device assignment is a setting for the response to that function.
The sensitivity and coefficients are multiplied together to affect the operation.
#br
#br
Key/button assignments can also be specified in text format.
See [[Assign Input Device]] for details on how to write.

#ref(./GameDefinition_Rules_AssignInputDevice.png,80%)
#br

Front page   Edit Diff History Attach Copy Rename Reload   New Page list Search Recent changes   Help   RSS of recent changes