Extending the Command Parser

Universal command line logic for your entire game

To add custom commands like /Trade or /Party, you must update two specific areas to ensure both the UI and the backend sync up smoothly.

1. The Execution (Switch Statement)

Inside your chat logic, locate the messageexecuting() function. This contains a standard Switch statement. Add your new full command here:
case "/trade":
  // Trigger custom game logic
  break;

2. The UI Predictive Check

To make the UI react dynamically (e.g., coloring the text blue when a command is detected), use the OnTextChanged event. Check if the string starts with your command shorthand to update visuals in real-time.