Fix NPC reallocation bug, update settings_config.dsc

This commit is contained in:
Rares Bozga
2025-12-24 01:42:24 +02:00
parent c8d959506f
commit 8292fdb229
2 changed files with 137 additions and 53 deletions

View File

@@ -3,62 +3,145 @@ settings_config:
type: data type: data
tabs: tabs:
- General - General
- Miscellaneous - Game
- Text
- Sounds
- Accessibility
keys: keys:
example1_key: general_see_player_join_leave:
tab: General tab: General
name: example1 setting key name: See player join and leave messages
description: example1 description, Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... description: If enabled, will show in chat when other players join or leave.
type: boolean type: boolean
default: true default: true
example2_key: general_ignore_version_compatibility_check:
tab: General tab: General
name: example2 setting key name: Ignore version compatibility warning
description: example2 description, Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... description: If enabled, will not show the compatibility warning when joining the server on an old unsupported version.
type: number type: boolean
default: 5 default: false
min: 0 ##
max: 10 game_see_auto_money_announcements:
increment: 0.5 tab: Game
example3_key: name: See auto money announcements
tab: Miscellaneous description: If enabled, will show in chat when you receive money for being online.
name: example3 setting key type: boolean
description: example3 description, Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... default: true
game_disable_phone_ringtone:
tab: Game
name: Disable phone ringtone
description: If enabled, the ringtone won't play when your phone is calling.
type: boolean
default: false
##
text_rp_chat_color:
tab: Text
name: Roleplay chat color
description: Changes the color used for actions when using in character chat channels. Can also be changed using /chatcolor.
type: list type: list
default: male default: yellow
values: values:
- male - aqua
- female - blue
- prefer not to say - fuchsia
example4_key: - gray
tab: Miscellaneous - green
name: example4 setting key - lime
description: example4 description, Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... - maroon
type: text - navy
default: text - olive
max-length: 64 - orange
regex: "[a-z]+" - purple
example5_key: - red
tab: Miscellaneous - silver
name: example5 setting key - teal
description: example5 description, Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... - yellow
type: text text_rp_chat_channel:
default: text tab: Text
max-length: 64 name: Current roleplay chat channel
regex: "[a-z]+" description: The channel you are currently using. Can also be changed using /chsw.
example6_key: type: list
tab: Miscellaneous default: ic
name: example6 setting key values:
description: example6 description, Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... - ic
type: text - ooc
default: text text_rp_chat_distance_warning:
max-length: 64 tab: Text
regex: "[a-z]+" name: Warn when no message receivers
example7_key: description: If enabled, will warn you when your in character chat channel message was not seen by any other player.
tab: Miscellaneous type: boolean
name: example7 setting key default: true
description: example7 description, Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit... text_textbox_write_speed:
type: text tab: Text
default: text name: Textbox write speed
max-length: 64 description: How fast textboxes should write text.
regex: "[a-z]+" type: number
default: 2
min: 1
max: 3
increment: 1
##
sound_textbox_volume:
tab: Sounds
name: Textbox volume
description: Changes the volume when the textbox is writing.
type: number
default: 80
min: 0
max: 100
increment: 5
sound_vehicles_volume:
tab: Sounds
name: Vehicles volume
description: Changes the volume of vehicle engines.
type: number
default: 50
min: 0
max: 100
##
accessibility_rp_chat_disable_colors:
tab: Accessibility
name: Disable colors in chat channels
description: If enabled, hides all colors in chat channels, instead using plain white.
type: boolean
default: false
accessibility_rp_chat_space_messages:
tab: Accessibility
name: Space messages for in character chat channels
description: If enabled, in character chat channel messages will be begin and end with a new line to distinguish where the message begins and ends.
type: boolean
default: false
##
# example1_key:
# tab: General
# name: example1 setting key
# description: example1 description
# type: boolean
# default: true
# example2_key:
# tab: General
# name: example2 setting key
# description: example2 description
# type: number
# default: 5
# min: 0
# max: 10
# increment: 0.5
# example3_key:
# tab: Miscellaneous
# name: example3 setting key
# description: example3 description
# type: list
# default: male
# values:
# - male
# - female
# - prefer not to say
# example4_key:
# tab: Miscellaneous
# name: example4 setting key
# description: example4 description
# type: text
# default: text
# max-length: 64
# regex: "[a-z]+"

View File

@@ -217,7 +217,8 @@ storyboard_npc_internal_auto_memory_management:
after player joins: after player joins:
- define npcs <player.flag[storyboard_state].get[npcs].if_null[<map[]>]> - define npcs <player.flag[storyboard_state].get[npcs].if_null[<map[]>]>
- foreach <[npcs]> key:name as:data: - foreach <[npcs]> key:name as:data:
- if <[data].get[allocated].if_null[null]> == reallocate: - define allocated <[data].get[allocated].if_null[null]>
- if <[allocated]> == reallocate || <[allocated]>:
- define name <[data].get[name]> - define name <[data].get[name]>
- define type <[data].get[type]> - define type <[data].get[type]>
- define at <[data].get[at]> - define at <[data].get[at]>