Quest Script Operations: Difference between revisions

From PSwiki
Jump to navigation Jump to search
Magodra (talk | contribs)
 
(18 intermediate revisions by one other 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 ==
Line 8: Line 8:
== New substep ... ==
== New substep ... ==


Syntax: ... [NoRepeat]
Syntax: ... [NoRepeat]


== NPC tell (<npc>:) ==
== NPC tell ==
NPC respone to a player.


== Player tell(P:) ==
Syntax: <npc>: <Message>[Narrate|actionmy|action]
Player tell npc.
 
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 ==
Line 24: 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 ===
Line 47: Line 63:
=== Give ===
=== Give ===


  Syntax: Give tria|hexa|ocata|circle|exp|faction <value>
  Syntax: Give <value> tria|hexa|ocata|circle|exp|faction
         Give <item> or <item>
         Give <item> or <item>
         Give <item> <count> <quality>
         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 ===
Line 62: Line 82:
=== Require ===
=== Require ===


  Syntax:  
  Syntax: Require <no/not> <function>
 
Functions can be:
- completion of
- time of day
- trait
- guild
- active magic
- known spell
- race
- gender <male/female/neutral>
- married
- possessed <item/category>
- assignment of
- variable
- skill
- compendium <creature/plant/mineral>


=== Run script ===
=== Run script ===

Latest revision as of 20:36, 30 May 2023

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: Require <no/not> <function>
Functions can be:
- completion of
- time of day
- trait
- guild
- active magic
- known spell
- race
- gender <male/female/neutral>
- married
- possessed <item/category>
- assignment of
- variable
- skill
- compendium <creature/plant/mineral>

Run script

Syntax: 

SetVariable

Syntax: 

Uncomplete

Syntax: Uncomplete <quest name>

UnsetVariable

Syntax: