Difference between revisions of "Quest Script Operations"
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Quest Script Operations = | = Quest Script Operations = | ||
Quest script operations are used to script Quests. | Quest script operations are used to script Quests. A subset will be available for [[Custom NPC Dialogue|Custom NPC Dialogues]]. | ||
== Menu == | == Menu == | ||
Syntax: Menu: | |||
== New substep ... == | == New substep ... == | ||
Syntax: ... [NoRepeat] | Syntax: ... [NoRepeat] | ||
== NPC tell == | |||
Syntax: <npc>: <Message>[Narrate|actionmy|action] | |||
NPC respone to a player with a message. A block starting with [ and ending with ] will give a /narrate, /my or /me command. If the block do not start with the npc name it will be a narrate. If it starts with the npc name it will be a /me, and if ' follows the npc name it will be a /my. | |||
Ex: Harnquist: How do you do?[Harnquist looks down!] | |||
Harnquist: How do you do?[Harnquist' cat looks at you.] | |||
Harnquist: How do you do?[As he finishes talking, you notice clouds darkening on the horizon...] | |||
== Player tell | == Player tell == | ||
Player tell npc. | |||
Syntax: P:<Trigger text> | |||
Player tell npc. The text is the trigger text for the player message. | |||
Ex: P: hello | |||
P: Yes P: No | |||
== Player == | == Player == | ||
Line 22: | Line 38: | ||
== Commands == | == Commands == | ||
Commands build [[Response Operation|Response Operations]]. | Commands build [[Response Operation|Response Operations]]. Multiple commands can be defined separated with dots. | ||
Ex: Give 1 tria.Give 2 exp. | |||
=== Assign Quest === | === Assign Quest === | ||
Syntax: Assign Quest <quest name> | |||
=== Complete === | === Complete === | ||
Syntax: Complete <quest name> | |||
=== DoAdminCmd === | === DoAdminCmd === | ||
Syntax: DoAdminCmd <Admin command> | |||
=== FireEvent === | === FireEvent === | ||
(Note: Not completed.) | (Note: Not completed.) | ||
Syntax: FireEvent | Syntax: FireEvent | ||
The fire event has no corresponding Response Operation. | The fire event has no corresponding Response Operation. | ||
=== Give === | === Give === | ||
Syntax: Give <value> tria|hexa|ocata|circle|exp|faction | |||
Give <item> or <item> | |||
Give [<count>] [<quality>] <item> | |||
Give items or money to the player. If multiple items are listed with or between an offer is made to the player. | |||
Ex: Give 1 Ring of Familiar. | |||
Give 3 tria. | |||
=== Introduce === | === Introduce === | ||
Syntax: | |||
=== NoRepeat=== | === NoRepeat=== | ||
Syntax: | |||
=== Require === | === Require === | ||
Syntax: | |||
=== Run script === | === Run script === | ||
Syntax: | |||
=== SetVariable === | === SetVariable === | ||
Syntax: | |||
=== Uncomplete === | === Uncomplete === | ||
Syntax: Uncomplete <quest name> | |||
=== UnsetVariable === | === UnsetVariable === | ||
Syntax: |
Revision as of 00:39, 11 January 2014
Quest Script Operations
Quest script operations are used to script Quests. A subset will be available for Custom NPC Dialogues.
Menu
Syntax: Menu:
New substep ...
Syntax: ... [NoRepeat]
NPC tell
Syntax: <npc>: <Message>[Narrate|actionmy|action]
NPC respone to a player with a message. A block starting with [ and ending with ] will give a /narrate, /my or /me command. If the block do not start with the npc name it will be a narrate. If it starts with the npc name it will be a /me, and if ' follows the npc name it will be a /my.
Ex: Harnquist: How do you do?[Harnquist looks down!] Harnquist: How do you do?[Harnquist' cat looks at you.] Harnquist: How do you do?[As he finishes talking, you notice clouds darkening on the horizon...]
Player tell
Syntax: P:<Trigger text>
Player tell npc. The text is the trigger text for the player message.
Ex: P: hello P: Yes P: No
Player
Player action.
QuestNote
Commands
Commands build Response Operations. Multiple commands can be defined separated with dots.
Ex: Give 1 tria.Give 2 exp.
Assign Quest
Syntax: Assign Quest <quest name>
Complete
Syntax: Complete <quest name>
DoAdminCmd
Syntax: DoAdminCmd <Admin command>
FireEvent
(Note: Not completed.)
Syntax: FireEvent
The fire event has no corresponding Response Operation.
Give
Syntax: Give <value> tria|hexa|ocata|circle|exp|faction Give <item> or <item> Give [<count>] [<quality>] <item>
Give items or money to the player. If multiple items are listed with or between an offer is made to the player.
Ex: Give 1 Ring of Familiar. Give 3 tria.
Introduce
Syntax:
NoRepeat
Syntax:
Require
Syntax:
Run script
Syntax:
SetVariable
Syntax:
Uncomplete
Syntax: Uncomplete <quest name>
UnsetVariable
Syntax: