Skip to content

Instantly share code, notes, and snippets.

@KageDesu
Last active May 4, 2025 15:01
Show Gist options
  • Save KageDesu/a2b8f5609a6d721e1dcf71d98f44ebc6 to your computer and use it in GitHub Desktop.
Save KageDesu/a2b8f5609a6d721e1dcf71d98f44ebc6 to your computer and use it in GitHub Desktop.
Extended Loot Plugin Guide

Extended Loot

πŸͺ™ Extended Loot Plugin Guide

πŸ”§ Setup: Gold Representation

To configure how gold is displayed in the Loot List or Visual Drop:

  • Go to Plugin Parameters β†’ Gold Item
  • Set up the gold representation item here.

πŸ“œ Loot List Window

πŸ”” Activation

  • Go to Plugin Parameters β†’ Loot Window
  • Set to TRUE to enable the Loot List system.

πŸ› οΈ How to Create a Loot List

  1. Add the comment: lootList
  2. Use regular event commands to give items (e.g., Change Items, Weapons, Gold)
  3. Add the comment: /lootList
  4. The loot window will appear at the /lootList comment, displaying all items added in step 2.

πŸ“ Customizing Header

  • Change header text:

    LL_setHeaderText("Your Header Text");

    Supports control characters like \C, \V, etc.

  • Set header image:

    LL_setHeaderImage("imageName", X, Y);
    • Image must be located in img/pExtendedLoot
    • X, Y: position offsets relative to the loot window

πŸ’‘ PRO Version: Offers extended Loot Window customization options via plugin parameters.


πŸ’¬ Pop-Ups

πŸ”” Activation

  • Go to Plugin Parameters β†’ Pop-Up's
  • Set to TRUE to enable item pop-ups.

ℹ️ How It Works

  • Automatically displays a pop-up when the player receives an item.

πŸ›‘ Temporarily Disable Pop-Ups

VPU_setShouldShow(false); // Disable pop-ups
VPU_setShouldShow(true);  // Enable again

πŸ’‘ PRO Version: Allows customization of pop-up behavior through plugin parameters.


πŸ“Ί Screen Pop-Ups

screenPopUps

ScreenPopUpPP

🧹 Clear All Screen Pop-Ups

EL_ClearAllScreenPopUps();

πŸ“¦ Show Pop-Up for a Specific Item

EL_ShowScreenPopUpForItem(item, count, [color]);
  • item: Game Item object (e.g., $dataItems[7])
  • count: Quantity
  • color: Optional hex color ('#ffffff')

Example:

EL_ShowScreenPopUpForItem($dataItems[7], 1, '#ffffff');

✨ Show Custom Pop-Up

EL_ShowScreenPopUpCustom(iconIndex, text, count, color);

Example:

EL_ShowScreenPopUpCustom(44, 'Quest Updated', 0, '#ff88ff');

CustomPopUp


🎁 Visual Drop

πŸ”” Activation

  • Go to Plugin Parameters β†’ Visual Drop
  • Set to TRUE to enable visual item drops.

βš™οΈ How It Works

  • When using event commands like Change Item, the items visually drop from the event location.
  • Some items are auto-picked up (customizable radius in plugin parameters).
  • Others require a mouse click or touch to pick up.

πŸ›‘ Temporarily Disable Visual Drop

VD_setShouldDrop(false); // Disable visual drops
VD_setShouldDrop(true);  // Enable again

πŸ”§ Extra Configuration

  • Prevent auto-pickup for an item:

    <noAutoLoot>

NoAutoLoot-300x126

  • Assign a drop sound to an item:

    <lootDropSound:SoundName> 

    Replace SoundName with the name of the SE file.

  • Assign a pickup sound to an item:

    <lootPickUpSound:SoundName> 

    Replace SoundName with the name of the SE file.

πŸ’‘ PRO Version: Enables more customization of visual drop behavior via plugin parameters.

Highlight for Visual Drop

  • Go to "Plugin Parameters β†’ Visual Drop -> Highlight Key"
  • Set the key to highlight the names of the items that are dropped visually.

highlightAll

Manual pickup items around the player

  • Go to "Plugin Parameters β†’ Visual Drop -> Pick Up Key"
  • Set the key to pick up items around the player.
  • You can also set the pickup radius in the plugin parameters (see Pick Up Radius below or Pick Up Radius (Variable ID)).

takeAllmanually


🎲 Random Loot System

🧾 Chance-Based Drop Comments

Place these above the Change Item event command:

  • Fixed Chance:

    chance:50 // 50% chance
    
  • Switch-Based Chance:

    chance:3|S // 100% if switch #3 is ON
    
  • Variable-Based Chance:

    chance:12|V // Uses value from variable #12 as percent
    
  • Check if drop succeeded:

    CH_IsGood(); // Returns true if drop succeeded

βž• Give Item with Special Conditions

  • Basic syntax:

    add:Z:X:Y
    
    • Z: item, weapon, armor or i, w, a
    • X: ID (or X|V for variable)
    • Y: Count (or Y|V for variable)

    Examples:

    add:armor:2:1
    add:w:100|V:1
    
  • Give one random from a list:

    add:Z:[X, X, ...]:Y
    

    Examples:

    add:w:[1, 2, 3, 4]:1
    add:item:[1, 100|V]:8|V
    
  • Add item with inline chance:

    add:Z:X:Y:withChance:C
    
    • C: chance value, or C|V (variable), or C|S (switch)

    Examples:

    add:item:2:1:withChance:50
    add:weapon:[1, 2, 3]:2:withChance:433|V
    

🌈 Rarity System

πŸ”” Activation

  • Go to Plugin Parameters β†’ Rarity System
  • Set to TRUE to enable item rarity.

🧩 How to Configure

  1. Define rarity levels under Plugin Parameters β†’ Items Rarity Levels

  2. Assign a rarity level to an item using a notetag:

    <pRarity:X>
    • Replace X with the rarity level number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment