Task: Secondary Commands

Discussions of the design and development of in-game content.

Moderator: Team Members

Post Reply
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Task: Secondary Commands

Post by John Adams » Thu Jan 08, 2009 11:50 am

Every NPC has a primary command that they respond to, like attack or hail. When you click or double-click that spawn, the primary_command is what is executed. Many NPCs also have a seconary command, which is what we use to build the menu when you RIGHT-click the spawn. For example, Guards all have a primary command of "Find NPC", and a secondary command (list) of "hail, attack, assist".

What I need someone to work on is building these secondary_command lists, then assigning them to the proper NPC. The procedure for this is as follows (using <Guards> as an example):
  • 1. Go to the Spawns editor, select your zone, NPCs, and the NPC you wish to edit.
    2. In the "Commands" group of the editor, set the following data:
    • command_primary: the action that a single-click will execute
      command_secondary: the list of alternate commands shown with right-clicking the spawn
    3. If no existing command_secondary (list) exists, see below for instructions on building one
    4. Click Update to save your spawn data. On next /reload spawn or server restart, your new command list should show.
Adding new entries to Entity Commands:
This is a bit confusing and complex, but once you see it work, it makes perfect sense. If an assigned entity_command "command_list_id" has more than 1 value, it becomes a multiple-choice menu on right-click. To build new command_secondary lists, the command_list_id must have more than 1 value and you use the Server -> entity_command editor for this task.
  • 1. Go to the Server editor and select the entity_command page
    2. Find a command_list_id not already in use and go to the New input at the bottom of the list
    3. Using 100 as an example, enter the following info to build a command_secondary for <Guard> NPCs:
    • command_list_id: 100
      command_text: hail
      distance: 10
      command: hail
      error_text: <leave blank>
    4. Click Insert
    5. Repeat step 3 for "attack" and "assist" command_text and command values.
    6. All command_list_id's must be 100 to show up on the same right-click menu.
    7. Take note of the "100" you used to build this list, now you can assign "100" to the command_secondary of the NPCs you wish to use this new right-click menu.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests