Template:VisuMZ Randomize Shop Plugin Commands

From Yanfly.moe Wiki
Revision as of 22:25, 10 February 2022 by Irina (talk | contribs)
Jump to navigation Jump to search

RandomizeShop Preview.png

The following are Plugin Commands that come with this plugin. They can be accessed through the Plugin Command event command.

---

Remote Event Plugin Commands

RandomizeShop Command1.png

---

Remote Event: Create New Randomized Shop
- Creates a new shop instance registered for remote event with
  randomized items.

  Remote:

    Map ID:
    - ID of map, remote event is on.
    - Use 0 for this map.
    - You may use JavaScript code.

    Event ID:
    - ID of remote event.
    - You may use JavaScript code.

  Shop:

    Item ID(s)
    - Select which items can appear in the random pool.

      Total #:
      - How many items will appear from the list?
      - You may use JavaScript code.

    Weapon ID(s)
    - Select which weapons can appear in the random pool.

      Total #:
      - How many weapons will appear from the list?
      - You may use JavaScript code.

    Armor ID(s)
    - Select which armors can appear in the random pool.

      Total #:
      - How many armors will appear from the list?
      - You may use JavaScript code.

  Settings:

    Open After?:
    - Open the shop after creating data?

    Absolute Maximum:
    - Absolute maximum number of items in shop.
    - If there are more, trim at random.

    Allow Duplicates?:
    - Allow duplicate entries of items, weapons, and armors?
    - This is primarily used for other plugins.
    - Prices for duplicate items will be equal to the price of the first
      instance of that item type.
      - This is how it is, even in vanilla RPG Maker MZ.

    Purchase Only?:
    - Make the shop purchase-only?

    Price Variance?:
    - Allow the shop to have variance in prices from their base values?

      Variance Rate:
      - What variance rate do you wish to use?
      - 0.0 = 0%, 0.1 = 10%; 1.0 = 100%

    Price Rate:
    - Final price rate (applied after everything else).
    - 0.0 = 0%, 0.1 = 10%; 1.0 = 100%

---

RandomizeShop Command2.png

Remote Event: Create New JS Shop
- Creates a new shop instance registered for remote event
  with items determined through JavaScript.

  Remote:

    Map ID:
    - ID of map, remote event is on.
    - Use 0 for this map.
    - You may use JavaScript code.

    Event ID:
    - ID of remote event.
    - You may use JavaScript code.

  Shop:

    JS: Goods:
    - Code used to determine the goods that appear in remote shop.

  Settings:

    Open After?:
    - Open the shop after creating data?

    Purchase Only?:
    - Make the shop purchase-only?

    Price Variance?:
    - Allow the shop to have variance in prices from their base values?

      Variance Rate:
      - What variance rate do you wish to use?
      - 0.0 = 0%, 0.1 = 10%; 1.0 = 100%

    Price Rate:
    - Final price rate (applied after everything else).
    - 0.0 = 0%, 0.1 = 10%; 1.0 = 100%

---

RandomizeShop Command3.png

Remote Event: Open Last Shop
- Reopens the last shop for remote event, retaining any and all randomized
  items in their order and any shop settings.
- One Time Purchase settings are not saved and have to be manually reenabled.

  Remote:

    Map ID:
    - ID of map, remote event is on.
    - Use 0 for this map.
    - You may use JavaScript code.

    Event ID:
    - ID of remote event.
    - You may use JavaScript code.

---

This Event Plugin Commands

RandomizeShop Command4.png

---

This Event: Create New Randomized Shop
- Creates a new shop instance registered for this event
  with randomized items.

  Shop:

    Item ID(s)
    - Select which items can appear in the random pool.

      Total #:
      - How many items will appear from the list?
      - You may use JavaScript code.

    Weapon ID(s)
    - Select which weapons can appear in the random pool.

      Total #:
      - How many weapons will appear from the list?
      - You may use JavaScript code.

    Armor ID(s)
    - Select which armors can appear in the random pool.

      Total #:
      - How many armors will appear from the list?
      - You may use JavaScript code.

  Settings:

    Open After?:
    - Open the shop after creating data?

    Absolute Maximum:
    - Absolute maximum number of items in shop.
    - If there are more, trim at random.

    Allow Duplicates?:
    - Allow duplicate entries of items, weapons, and armors?
    - This is primarily used for other plugins.
    - Prices for duplicate items will be equal to the price of the first
      instance of that item type.
      - This is how it is, even in vanilla RPG Maker MZ.

    Purchase Only?:
    - Make the shop purchase-only?

    Price Variance?:
    - Allow the shop to have variance in prices from their base values?

      Variance Rate:
      - What variance rate do you wish to use?
      - 0.0 = 0%, 0.1 = 10%; 1.0 = 100%

    Price Rate:
    - Final price rate (applied after everything else).
    - 0.0 = 0%, 0.1 = 10%; 1.0 = 100%

---

RandomizeShop Command5.png

This Event: Create New JS Shop
- Creates a new shop instance registered for this event
  with items determined through JavaScript.

  Shop:

    JS: Goods:
    - Code used to determine the goods that appear in this shop.

  Settings:

    Open After?:
    - Open the shop after creating data?

    Purchase Only?:
    - Make the shop purchase-only?

    Price Variance?:
    - Allow the shop to have variance in prices from their base values?

      Variance Rate:
      - What variance rate do you wish to use?
      - 0.0 = 0%, 0.1 = 10%; 1.0 = 100%

    Price Rate:
    - Final price rate (applied after everything else).
    - 0.0 = 0%, 0.1 = 10%; 1.0 = 100%

---

RandomizeShop Command6.png

This Event: Open Last Shop
- Reopens the last shop for this event, retaining any and all randomized
  items in their order and any shop settings.
- One Time Purchase settings are not saved and have to be manually reenabled.

---