Scriptable Entities Design: Difference between revisions
Line 26: | Line 26: | ||
=== Script NPC === | === Script NPC === | ||
Hired NPCs can be scripted. User open the | Hired NPCs can be scripted. User open the hire dialog to enter new scripts for the NPC. | ||
==== Activity Diagram ==== | ==== Activity Diagram ==== | ||
<uml> | <uml> | ||
(*) --> "Target NPC" | (*) --> "Target NPC" | ||
--> "Open Hire | --> "Open Hire Dialog" | ||
--> "Create/Select Custom Script" | --> "Create/Select Custom Script" | ||
--> "Edit Custom Script" | --> "Edit Custom Script" |
Revision as of 16:05, 22 December 2013
Player Use Cases

Hire NPC
Player target npc and enter "/hire" or selecting the hire icon from the context menu (See Context Menu Design). This open the hire NPC dialog where the user can select tasks and see the price for each service. Select the needed service and confirm hiring of the NPC.
Activity Diagram

Select Service
Select service needed from a list of services.
- Guard
- Buy/Sell
- Custom Dialogue
Script NPC
Hired NPCs can be scripted. User open the hire dialog to enter new scripts for the NPC.
Activity Diagram

Extend Hire
Opening the hire dialog enable the
Release NPC
A NPC that is no longer needed can be released. This will be done from the Hire dialog.
NPC Use Cases

Guard
Perform Guard duties. Pre-programmed guard action. Player select working hours, main guarding position, a number of check points and interval for checking thous.
NPC dialogue
Through Quest script syntax with user safe commands enabling custom scripts to be crated for the NPC.
Buy/Sell
NPC can sell and buy either personal or guild items.