npc_judge_assignment: type: assignment actions: on assignment: - trigger name:click state:true - trigger name:chat state:true #- trigger name:proximity state:true #on move proximity: #- look interact scripts: - 10 npc_judge_interact paginate_command: type: command name: paginate description: For internal use only. usage: /paginate <<>title<>> <<>subtitle<>> <<>entries<>> <<>pagenumber<>> permission: smellycraft.paginate.manual permission message: Sorry, this command is run by NPC characters only. allowed help: - determine > tab complete: - if !> queue clear script: - define script 'smellycraft' - define title - define subtitle - define entries - define page - define command 'paginate %title% %subtitle% %entries%' - define pageWidth 44 - define pageHeight 7 - run s@msgBoxed 'def:%script%|%title%|%subTitle%|%command%|%page%|%pageWidth%|%pageHeight%|%entries%' npc_judge_interact: type: interact steps: 1: click trigger: script: #if player is rank default - if { #Short, and runs properly: - define entries '"short and works"' # Long, and breaks as a result: #- define entries '"Welcome to Legitimus, . Everyone has been informed of your arrival, and we are glad to have you here.|We need you to agree to our most basic laws before you will be issued a Visa for travel beyond these city walls.|Are you ready to take your oaths? We should need five minutes for this.|Yes|take my oath|Proceed with oaths]>|No|I would like to look around more.|Wait until later]>|"' #catoChat will track what has already been said to the player by Judge Cato and allow for more thoughtful interactions. - flag player catoChat:->:intro } #if player has agreed to rules - if { - define entries 'Hello again . Is there something I can do for you?|' } - execute as_player "paginate 'Cato the Younger' 'Provincial Judge' '%entries%' 1" # Chat triggers have been removed from the paste as irrelevant