Character_RPC_AppSend: type: task script: - if !: - define fail:->:name - if !: - define fail:->:description - if !: - define fail:->:lore - if !: - define fail:->:age - if !: - define fail:->:height - if !: - define fail:->:profession - if <[fail]||null> != null: - narrate "You are missing these features<&co><&sp><[fail].comma_separated.to_titlecase>" - stop - definemap app_data: player_name: name: description: lore: age: height: profession: - narrate "Processing Application..." - define formatted "Character Name<&co><&sp><[app_data].get[name]> Basic Description<&co><&sp><[app_data].get[description]> Character Lore<&co><&sp><[app_data].get[lore].get[1].strip_color>... Character Age<&co><&sp><[app_data].get[age]> Character Height<&co><&sp><[app_data].get[height]> Character Profession<&co><&sp><[app_data].get[profession]>" - definemap options: 1: label: Accepted value: accept description: Applicant has been accepted. emoji: 🙂 2: label: Needs Info value: info_needed description: Applicant needs to add more information. emoji: 😃 3: label: Denied value: deny description: Applicant has been denied. They need to ask staff for more information. emoji: 🤩 - define menu ]> - define embed <&sq>s<&sp>Application;description=<[formatted]>;timestamp=;color=#00FFFF]> - discordmessage id:mybot channel:1341502905554964550 <[embed]> rows:<[menu]> save:application_message #- run Character_RPC_Discord_Menu def: - wait 15s - narrate "Application Sent!" Character_RPC_Discord_Menu_Events: type: world events: on discord selection used id:application_menu: - ~discordinteraction defer interaction: - define player_name - choose : - case accept: - define message "Application was Accepted!" - flag ].if_null[]>]> character.rpc.status:accepted - if ]||null> != null: - narrate targets:]||null> "Your application has been accepted!" - case info_needed: - define message "Application needs more information." - flag ].if_null[]>]> character.rpc.status:info_needed - if ]||null> != null: - narrate targets:]||null> "Your application needs more information, please ask staff for more information." - case deny: - define message "Application was Denied." - flag ].if_null[]>]> character.rpc.status:denied - if ]||null> != null: - narrate targets:]||null> "Your application has been denied, please ask staff for more information." - ~discordinteraction reply interaction: "<[player_name]>'s <[message]> ; Reviewed by<&co>"