Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:primitive:mission:primitivemissiondocdestroy_item [2016/11/13 13:44] – ↷ Page déplacée de en:primitivemissiondocdestroy_item à en:primitive:mission:primitivemissiondocdestroy_item zatalyz | en:primitive:mission:primitivemissiondocdestroy_item [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== destroy_item ====== | ||
| - | Function used in [[en: | ||
| - | Action which destroys the items that match the given filters: | ||
| - | * The item sheet must match. | ||
| - | * The quality must be at least the one wanted. | ||
| - | * At max quantity of the items are destroyed. | ||
| - | |||
| - | The system: | ||
| - | * selects first the lowest quality of the item possible. | ||
| - | * search in the player inventory (bag or mektoubs). | ||
| - | |||
| - | ===== Properties ===== | ||
| - | |||
| - | **name**: Action name, only used by the mission designer. | ||
| - | |||
| - | **npc_name (Optional)**: | ||
| - | |||
| - | **Item/ | ||
| - | |||
| - | **guild (Boolean)**: | ||
| - | |||
| - | ===== Default variables ===== | ||
| - | |||
| - | **npc_name (bot)**: if not specified, the giver name is used in the destruction message in sys info | ||
| - | |||
| - | **item_type (item)**: must be specified | ||
| - | |||
| - | **item_quantity (int)**: 1 | ||
| - | |||
| - | **item_quality (int)**: 1 | ||
| - | |||
| - | {{tag> | ||





