Logo Khaganat
Translations of this page?:

This is an old revision of the document!


buy

Function used in mission creation.

Objective. The player has to buy specific items. It’s possible to force the player to buy from a given NPC by entering its name tag.

Properties

name: Action name, only used by the mission designer.

npc_name (Optional): Tag of the NPC that the player has to buy from.

hide_obj (Boolean): Prevent the step to be displayed in the mission log.

overload_objective (Optional): Allow to set a specific a description of the mission. See the text guidelines reference document for the formatting requirements.

roleplay_objective (Optional): Allow to add a description to the step.

Item/quantity/quality: Array containing the description of the items that need to be sold. See the complex item declaration for the formatting requirements.

Default variables

npc_name (bot): $npc$

For item number X

Variable name
Item_type (item)
Item_quantity (int)
Item_quality (int)

Formal expression
$i<X>$
$qt<X>$
$quality<X>$

Example
$i1$
$qt1$
$qual1$

CC Attribution-Share Alike 4.0 International Driven by DokuWiki
en/primitive/mission/primitivemissiondocbuy.1479044680.txt.gz · Last modified: (external edit)

Licences Mentions légales Accueil du site Contact Inclusion