Integrate new settings into existing codebase

This commit is contained in:
Rares Bozga
2025-12-25 02:04:19 +02:00
parent 537b5c0d9b
commit cc904c7137
11 changed files with 150 additions and 43 deletions

View File

@@ -4,8 +4,13 @@ chat_world:
events:
on player chats:
- determine cancelled passively
- define channel <player.flag[chat_channel].if_null[ic]>
- define channel <proc[settings_get].context[<player>|text_rp_chat_channel]>
- if <[channel]> == ic:
- run chat_channel_ic def.player:<player> def.message:<context.message.parse_color.escaped.replace[&].with[&\]>
- else if <[channel]> == ooc:
- run chat_channel_ooc def.player:<player> def.message:<context.message.escaped.replace[&].with[&\]>
on player receives message:
## yes, we will sync the chat thread and live dangerously
# manual settings_get because this event is very finnicky and dangerous
- if <player.flag[settings].get[accessibility_chat_disable_colors].if_null[false]>:
- determine MESSAGE:<context.message.strip_color>